summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add m_copyup function.. This can be used to help make our ip stack lessjmg2005-03-173-0/+78
| | | | | | | | | | alignment restrictive, and help performance on some ethernet cards which currently copy the entire packet a couple bytes to get the packet aligned properly... Wordsmithing by: dwhite Obtained from: NetBSD (code only) I'll clean it up later: rwatson
* eisa attachment is safe to be in this module, both on eisa andimp2005-03-171-1/+1
| | | | non-eisa configured kernels.
* Now that the Adaptec 2842 has its own probe routine, no need to haveimp2005-03-171-3/+1
| | | | a comment saying its probe routine needs to be fixed.
* Style(9) pass before some planned larger changes.imp2005-03-171-91/+61
| | | | | | | o return (foo); o if (a == NULL) in preference to if (!a) o () and {} reduction o minor indentation fixes
* A further step on the journey of meaking panics and debugging more reliable:rwatson2005-03-171-2/+3
| | | | | | | | | | | | | | | in the window between the beginning of panic() and entering the debugger, it's possible to receive interrupts. If we receive an interrupt, don't preempt if panicstr != NULL, as the system is in the process of failing, and the preempting thread is likely to stumble over the failure. The typical scenario is during the printf() in panic() prior to entering the debugger, but when running with a slower console type such as serial console. It could be that the panic string should be passed to the debugger to print, so that it can run from the debugger's environment rather than a regular kernel printf. Glanced at by: jhb
* Also remember to set the fsid here.phk2005-03-171-0/+1
|
* Forgot to replace code to set fsid in vop_getattr.phk2005-03-172-0/+2
|
* Do not try to free non allocated memory in error case.bz2005-03-174-26/+122
| | | | | | | | | | | | | | | | Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...). Log if we cannot free because memory still in use[1]. Change locking to avoid ''acquiring duplicate lock of same type: "network driver"'' and potential deadlock. Also seems to fix LOR #063. [1] This change does not solve problems if buffers are still in use when unloading if_sk.ko. There is ongoing work which will address jumbogram allocations in a more general way. PR: kern/75677 (with changes, no mii fixes in here) Tested by: net, Antoine Brodin (slightly different version) Approved by: rwatson (mentor) MFC after: 5 days
* * Lower interrupt moderation timer 200->100.bz2005-03-174-2/+130
| | | | | | | | Obtained from: NetBSD if_sk.c rev. 1.11 * Make interrupt moderation configurable via sysctl/tuneable. PR: kern/41220 Approved by: rwatson (mentor)
* * Improve chip identification.bz2005-03-174-64/+284
| | | | | | | | | | | Obtained from: NetBSD if_sk.c rev. 1.11 * Take PHY out of reset for Yukon Lite Rev. A3. Submitted by: postings on net@ in thread "skc0: no PHY found", 2005-02-22 Tested by: net Approved by: rwatson (mentor) MFC after: 5 days
* * When adding/deleting multicast addresses, only whack the address filterbz2005-03-172-12/+30
| | | | | | | | | | | | | | | | if the interface is marked RUNNING. Obtained from: NetBSD if_sk.c rev. 1.12 * Don't initialize the card (and start an autonegotiation) every time the IP address changes. Makes 'dhclient sk0' invocations way faster and more consistant. i.e. one DHCPREQUEST elicits the DHCPACK. Obtained from: OpenBSD if_sk.c rev. 1.56 * Additional locking changes in sk_ioctl. PR: kern/61296 should see improvements by the last two. Approved by: rwatson (mentor) MFC after: 5 days
* Releasing TX/RX descriptor dmamaps during device detachment instead ofavatar2005-03-171-5/+4
| | | | | | | | | | | | | | | | doing that in bfe_stop(). This should fix a panic recently reported on -current occuring when taking device down then up. In the original implementation, an "ifconfig bfe0 down" triggers bfe_stop(), which also destroys all TX/RX descriptor dmamaps. Hence the subsequent "ifconfig bfe0 up" would force the device to use those already-released dmamap and thus panic the kernel. PR: kern/77804 Submitted by: Frank Mayhar <frank at exit dot com> Reviewed by: dmlb, sam (mentor) Tested by: Phil <pcasidy at casidy dot com>, myself MFC after: 1 week
* Kill MAJOR_AUTOphk2005-03-173-11/+3
|
* Prepare for the final onslaught on devices:phk2005-03-174-13/+19
| | | | | | | | Move uid/gid/mode from cdev to cdevsw. Add kind field to use for devd(8) later. Bump both D_VERSION and __FreeBSD_version
* - Don't lock the vnode interlock in vm_object_set_writeable_dirty() ifjeff2005-03-171-2/+4
| | | | | | we've already set the object flags. Reviewed by: alc
* - Lock the clearing of v_data so it is safe to inspect it with thejeff2005-03-171-1/+7
| | | | | | interlock. Sponsored by: Isilon Systems, Inc.
* - Lock the clearing of v_data in ufs_reclaim() to prevent a pagefaultjeff2005-03-171-1/+7
| | | | | | in ffs_lock() when it acesses v_data without the vnlock. Sponsored by: Isilon Systems, Inc.
* There is no longer a KNOWN_DEFECTS file, so don't try to install it.dougb2005-03-171-1/+1
|
* Remove unused variable.phk2005-03-171-6/+0
| | | | Detected by: Coverity (ID#704)
* In stange circumstances we may end up being the last reference to aphk2005-03-173-18/+21
| | | | | | | | | | | session in tprintf(). SESSRELE() needs to properly dispose of the sessions mutex. Add sessrele() which does the proper cleanup and have SESSRELE() call it. Use SESSRELE also in pgdelete(). Found by: Coverity (ID:526)
* Expand and refine a few sections for future referencedougb2005-03-171-5/+11
|
* Delete all aix portsdougb2005-03-171-2/+1
|
* Regenerate for 9.3.1dougb2005-03-175-6/+12
|
* bmake changes to handle the move of dns/sec and related filesdougb2005-03-172-17/+17
|
* This commit was generated by cvs2svn to compensate for changes in r143734,dougb2005-03-1726-16519/+0
| | | | which included commits to RCS files with non-trunk default branches.
* This commit was generated by cvs2svn to compensate for changes in r143731,dougb2005-03-17123-1694/+8350
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.3.1dougb2005-03-17123-1694/+8350
| |
* | Bring back some of the ioctl junk that was removed in rev 1.59 as acognet2005-03-173-2/+126
| | | | | | | | | | | | | | i386-only kernel option, ASR_COMPAT, and under BURN_BRIDGES. It is really ugly, but raidutils depends on it. Discussed with: scottl
* | Use PCIR_BARS instead of PCIR_MAPS.cognet2005-03-172-16/+17
| |
* | Introduce a new function, pmap_wb_page(), which check all userland mappings forcognet2005-03-161-1/+10
| | | | | | | | | | | | | | a given page and, if the pmap is the current pmap, write back the associated cache line. Use pmap_wb_page in pmap_qenter() instead of inconditionally write back/invalidating the data cache.
* | Consumers of nfslockdans() seems to think it should return 0 on success, socognet2005-03-161-1/+1
| | | | | | | | make it so.
* | Spell 'fedisableexcept' correctly.das2005-03-161-1/+1
| |
* | Remove comments relevant only to pc98 as there are no amd64 pc98 machines.imp2005-03-161-11/+1
| |
* | Customize this for the alpha by removing pc98 defines (unused on alpha)imp2005-03-161-17/+1
| | | | | | | | as well as saying that the alpha is wired up in a certain way.
* | Plug memory leak.pjd2005-03-161-2/+1
| | | | | | | | | | | | | | Submitted by: Ted Unangst Found by: Coverity Prevent analysis tool Approved by: phk MFC after: 3 days
* | Eleminate 3 PC98 ifdefs:imp2005-03-161-17/+5
| | | | | | | | | | | | | | | | o Use IP_NPX in preference to hard coded value to write 0 to clear busy# o Use md macro for a full reset of the npx o Use IRQ_NPX in preference to hard coded value for each platform. # The other two ifdefs in this file are hard to remove
* | Define IRQ_NPX for the irq used for the npx. Define macro for a fullimp2005-03-163-0/+33
| | | | | | | | reset of of npx, as appropriate for the platform.
* | correct comparison for null ptrsam2005-03-161-1/+1
| | | | | | | | Noticed by: Coverity Prevent analysis tool
* | avoid potential array index by -1sam2005-03-161-1/+2
| | | | | | | | Noticed by: Coverity Prevent analysis tool
* | eliminate use after free in debug codesam2005-03-161-3/+3
| | | | | | | | Noticed by: Coverity Prevent analysis tool
* | kill dead codesam2005-03-161-2/+1
| | | | | | | | Noticed by: Coverity Prevent analysis tool
* | bus_alloc_resource must obey the same rules asimp2005-03-161-1/+1
| | | | | | | | | | | | rman_resource_resournce_bound wrt end parameter. The end parameter here was the same as the start. However, it should be start + count - 1, so make it that instead.
* | Make it clear nve needs mii, and shorten long comment line.obrien2005-03-162-4/+4
| |
* | - Replace fe[gs]etmask() with feenableexcept(), fedisableexcept(), anddas2005-03-161-12/+31
| | | | | | | | | | | | | | fegetexcept(). - Add additional tests for the above. - Output a separate success message for each of the 8 components of this set of tests.
* | Document feenableexcept(), fedisableexcept(), and fegetexcept().das2005-03-162-1/+101
| |
* | Replace fegetmask() and fesetmask() with feenableexcept(),das2005-03-1610-57/+166
| | | | | | | | | | | | | | | | | | | | fedisableexcept(), and fegetexcept(). These two sets of routines provide the same functionality. I implemented the former as an undocumented internal interface to make the regression test easier to write. However, fe(enable|disable|get)except() is already part of glibc, and I would like to avoid gratuitous differences. The only major flaw in the glibc API is that there's no good way to report errors on processors that don't support all the unmasked exceptions.
* | Unload and destroy the TX DMA maps before destroying the DMA tagmux2005-03-161-4/+3
| | | | | | | | | | | | they're attached to, not after. Spotted by: Coverity via sam
* | Now that there are no users of Lst_ForEach and Lst_ForEachFrom are leftharti2005-03-162-89/+3
| | | | | | | | delete these two macros and all the associated stuff.
* | Replace Lst_ForEach by LST_FOREACH.harti2005-03-162-43/+12
| |
* | Replace another bunch of Lst_ForEachs by LST_FOREACHs and simplify code.harti2005-03-161-145/+99
| |
OpenPOWER on IntegriCloud