summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Further refine the handling of stop signals in the NFS client. Thejhb2013-02-2111-41/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | changes in r246417 were incomplete as they did not add explicit calls to sigdeferstop() around all the places that previously passed SBDRY to _sleep(). In addition, nfs_getcacheblk() could trigger a write RPC from getblk() resulting in sigdeferstop() recursing. Rather than manually deferring stop signals in specific places, change the VFS_*() and VOP_*() methods to defer stop signals for filesystems which request this behavior via a new VFCF_SBDRY flag. Note that this has to be a VFC flag rather than a MNTK flag so that it works properly with VFS_MOUNT() when the mount is not yet fully constructed. For now, only the NFS clients are set this new flag in VFS_SET(). A few other related changes: - Add an assertion to ensure that TDF_SBDRY doesn't leak to userland. - When a lookup request uses VOP_READLINK() to follow a symlink, mark the request as being on behalf of the thread performing the lookup (cnp_thread) rather than using a NULL thread pointer. This causes NFS to properly handle signals during this VOP on an interruptible mount. PR: kern/176179 Reported by: Russell Cattelan (sigdeferstop() recursion) Reviewed by: kib MFC after: 1 month
* splsoftvm() is no longer in the tree. gc.imp2013-02-211-1/+0
|
* bus_dmamap_load_ccb doesn't exist on earlier versions of FreeBSD orimp2013-02-211-3/+1
| | | | | | | DragonFlyBSD, so it certainly doesn't need splsoftvm(). Remove it. # I doubt this driver will now compile on older FreeBSD versions or DFBSD # We should consider unifdefing it since that code seems unmaintained.
* Remove splsoftclock() since it is now gone.imp2013-02-211-1/+0
|
* Fix tcp_lro_rx_ipv4() for drivers that do not set CSUM_IP_CHECKED.gallatin2013-02-211-1/+1
| | | | | | | | | | | Specifcially, in_cksum_hdr() returns 0 (not 0xffff) when the IPv4 checksum is correct. Without this fix, the tcp_lro code will reject good IPv4 traffic from drivers that do not implement IPv4 header harder csum offload. Sponsored by: Myricom Inc. MFC after: 7 days
* In the EXAMPLES section: append the subsystem regular expression with apluknet2013-02-211-2/+2
| | | | | | typical interface name pattern as devd(8) uses full string match. Discussed with: avg, glebius
* Use critical_enter/critical_exit around the time sensitive part ofimp2013-02-211-4/+12
| | | | | | | | | | | | | this code to depessimize the worst case we've lived with silently and uneventfully for the past 12 years. Add a comment about a refinement for those needing more assurance of accuracy. Fix ddb's show rtc command deadlock potential when debugging rtc code by not taking the lock if we're in the debugger. If you need a thumb to count the number of people that have encountered this, I'd be surprised. Submitted by: bde
* Fix build.glebius2013-02-211-1/+0
|
* Fix build.glebius2013-02-211-2/+2
|
* Be slightly more paranoid with the TX DMA buffer maximum threshold.adrian2013-02-212-2/+23
| | | | | | | | | | Specifically - never jack the TX FIFO threshold up to the absolute maximum; always leave enough space for two DMA transactions to appear. This is a paranoia from the Linux ath9k driver. It can't hurt. Obtained from: Linux ath9k
* Remove incorrect comment about splsoftclock.imp2013-02-211-1/+0
|
* Locking for todr got pushed down into inittodr and the clientimp2013-02-211-10/+2
| | | | | | | libraries it calls (although some might not be doing it right). We are serialized right now by giant as well. This means the splsoftclock are now an anachronism that has no benefit, even marking where locking needs to happen. Remove them.
* Add an option to allow the minimum number of delimiters to be tweaked.adrian2013-02-214-2/+18
| | | | | | | | This is primarily for debugging purposes. Tested: * AR5416, STA mode
* Correct comment about use of pmtimer, and the real reason it isn'timp2013-02-211-3/+4
| | | | used or desirable for amd64.
* Add a new option to limit the maximum size of aggregates.adrian2013-02-215-2/+32
| | | | | | | | | | | The default is to limit them to what the hardware is capable of. Add sysctl twiddles for both the non-RTS and RTS protected aggregate generation. Whilst here, add some comments about stuff that I've discovered during my exploration of the TX aggregate / delimiter setup path from the reference driver.
* Remove this unneeded printf(), sorry!adrian2013-02-211-4/+0
|
* The request queue is already locked, so we don't need the splsofclock/splximp2013-02-211-3/+1
| | | | here to note future work.
* Don't worry if a module is already loaded when looking for a fstype to mountjamie2013-02-211-2/+6
| | | | | | | (possible in a race condition). Reviewed by: kib MFC after: 1 week
* Most other giant locked storage drivers in the tree don't useimp2013-02-211-5/+0
| | | | | splsoftclock to note the need for future locking, so remove it from here.
* The other giant locked storage drivers have removed splbio(), for theimp2013-02-211-7/+0
| | | | | most part, so remove it here too. Anybody locking this driver will need far more than locks where splbio() were, so remove these nops.
* Fix broken usage of splhigh() by removing it.imp2013-02-211-6/+2
|
* Kill now-bogus splhigh() -- it is a nopimp2013-02-211-1/+0
|
* Replace splhigh() with critical_enter()/leave() to ensure we write theimp2013-02-211-13/+30
| | | | | config mode unlock sequence quickly enough. This likely isn't too critical, since splhigh() has been a noop for a decade...
* No longer need splhigh() since locking was done, delete it andimp2013-02-211-9/+1
| | | | comments about it.
* Refresh on the shared code for the E1000 drivers.jfv2013-02-2123-2089/+2521
| | | | | | | | | | | | | | | | | | | | - bear with me, there are lots of white space changes, I would not do them, but I am a mere consumer of this stuff and if these drivers are to stay in shape they need to be taken. em driver changes: support for the new i217/i218 interfaces igb driver changes: - TX mq start has a quick turnaround to the stack - Link/media handling improvement - When link status changes happen the current flow control state will now be displayed. - A few white space/style changes. lem driver changes: - the shared code uncovered a bogus write to the RLPML register (which does not exist in this hardware) in the vlan code,this is removed.
* cxgbe(4): Assume that CSUM_TSO in the transmit path implies CSUM_IP andnp2013-02-201-6/+8
| | | | | | | | | | CSUM_TCP too. They are all set explicitly by the kernel usually. While here, fix an unrelated bug where hardware L4 checksum calculation was accidentally disabled for some IPv6 packets. Reported by: alfred@ MFC after: 3 days
* When porting XTS-related code from OpenBSD I forgot to update copyright (onlypjd2013-02-202-2/+8
| | | | | | | OpenBSD was credited in one of two commits). Fix it. Reported by: Theo de Raadt <deraadt@cvs.openbsd.org> Reviewed by: Damien Miller <djm@mindrot.org>
* Do not use deprecated functions from libarchivebapt2013-02-201-2/+2
|
* Remove the unused spl functions: spl0, splsoftcam, splsofttty,imp2013-02-201-5/+0
| | | | | | splsofttq and splstatclock. Other used spl functions to follow.
* revert 247035des2013-02-201-16/+18
|
* Fix parallel build race with DEBUG_FLAGSemaste2013-02-201-7/+9
| | | | | Reported by: Jan Beich on freebsd-current Tested by: markj
* Support hardlinks in manifest files by the same logic as the treewalkbrooks2013-02-203-2/+21
| | | | | | | code. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Sort sections.joel2013-02-201-6/+6
|
* Various improvements to the qsort(3) usage example:keramida2013-02-201-14/+8
| | | | | | | | | | | | | | | - Remove unused #include. - Do not cast away const. - Use the canonical idiom to compare two numbers. - Use proper type for sizes, i.e. size_t instead of int. - Correct indentation. - Simplify printf("\n") to puts(""). - Use return instead of exit() in main(). Submitted by: Christoph Mallon, christoph.mallon at gmx.de Approved by: gjb (mentor) Reviewed by: stefanf MFC after: 1 week
* Avoid panic when tearing down the DTrace pid provider for agibbs2013-02-201-7/+6
| | | | | | | | | | | | | | | | | | | | process that has crashed. sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c: In fasttrap_pid_disable(), we cannot PHOLD the proc structure for a process that no longer exists, but we still have other, fasttrap specific, state that must be cleaned up for probes that existed in the dead process. Instead of returning early if the process related to our probes isn't found, conditionalize the locking and carry on with a NULL proc pointer. The rest of the fasttrap code already understands that a NULL proc is possible and does the right things in this case. Sponsored by: Spectra Logic Corporation Reviewed by: rpaulo, gnn MFC after: 1 week
* Orphaned processes that are being traced are killed by thegibbs2013-02-201-0/+7
| | | | | | | | | | | | | | | | | kernel. Properly restore, continue, and detach from processes being DTraced when DTrace exits with an error so the program being inspected is not terminated. cddl/contrib/opensolaris/cmd/dtrace/dtrace.c: In fatal(), the generic error handler, close the DTrace handle as is done in the "probe/script" error handler dfatal(). fatal() can be invoked after DTrace attaches to processes (e.g. a script specified by command line argument can't be found) and closing the handle will release them. Submitted by: Spectra Logic Corporation Reviewed by: rpaulo, gnn
* Convert machine/elf.h, machine/frame.h, machine/sigframe.h,kib2013-02-2016-816/+793
| | | | | | | | | | | | | | machine/signal.h and machine/ucontext.h into common x86 includes, copying from amd64 and merging with i386. Kernel-only compat definitions are kept in the i386/include/sigframe.h and i386/include/signal.h, to reduce amd64 kernel namespace pollution. The amd64 compat uses its own definitions so far. The _MACHINE_ELF_WANT_32BIT definition is to allow the sys/boot/userboot/userboot/elf32_freebsd.c to use i386 ELF definitions on the amd64 compile host. The same hack could be usefully abused by other code too.
* Initialize vm_max_kernel_address on non-FDT platforms. (This should havealc2013-02-2013-24/+32
| | | | | | | | been included in r246926.) The second parameter to pmap_bootstrap() is redundant. Eliminate it. Reviewed by: andrew
* Fix "fdt addr" to accept literal addresses rather than va offsets.kientzle2013-02-201-18/+40
| | | | | | | | When initializing the fdt, query U-Boot as well. With this change, it is now feasible to have U-Boot load the FDT, ubldr will pull it from U-Boot and hand it to the kernel.
* ip_savecontrol() style fixes. No functional changes.pluknet2013-02-201-17/+17
| | | | | | | | | - fix indentation - put the operator at the end of the line for long statements - remove spaces between the type and the variable in a cast - remove excessive parentheses Tested by: md5
* Allow '.' components in manifest paths. They are always the firstbrooks2013-02-201-6/+6
| | | | | | | component of mtree -C and install -M output and are easily skipped. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Fix the -N option in manifest mode by using pwcache(3). This alsobrooks2013-02-201-10/+8
| | | | | | | speeds up image creation appreciably. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Add a -D flag that causes duplicate entries in an mtree manifest to bebrooks2013-02-204-4/+18
| | | | | | | treated as warnings rather than errors. Reviewed by: marcel Sponsored by: DARPA, AFRL
* Fix several new & old style issues.melifaro2013-02-203-14/+12
| | | | | Pointed by: ae, pluknet, zont MFC with: r247036
* Add interface name filtering via 'match' cmd.melifaro2013-02-203-25/+162
| | | | | | | Add 'pps' cmd for switching beetween interface packets/bytes statistics. Submitted by: vsevolod MFC after: 2 weeks
* Reduce excessive nesting.des2013-02-201-18/+16
|
* Check if the -sec option is given without an argument.pluknet2013-02-201-1/+1
| | | | | | PR: bin/170413 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Configure larger TX FIFO default and maximum level values.adrian2013-02-201-2/+18
| | | | | | | | | | This has reduced the number of TX delimiter and data underruns when doing large UDP transfers (>100mbit). This stops any HAL_INT_TXURN interrupts from occuring, which is a good sign! Obtained from: Qualcomm Atheros
* If any of the TX queues have underrun reporting enabled, enableadrian2013-02-201-0/+2
| | | | | | HAL_INT_TXURN in the interrupt mask register. This should now allow for TXURN interrupts to be posted.
* A couple of quick tidyups:adrian2013-02-201-6/+1
| | | | | | | | | * Delete this debugging print - I used it when debugging the initial TX descriptor chaining code. It now works, so let's toss it. It just confuses people if they enable TX descriptor debugging as they get two slightly different versions of the same descriptor. * Indenting.
OpenPOWER on IntegriCloud