summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sh: Import arithmetic expression code from dash.jilles2011-02-087-516/+716
| | | | | | | | | | | | | | | | New features: * proper lazy evaluation of || and && * ?: ternary operator * executable is considerably smaller (8K on i386) because lex and yacc are no longer used Differences from dash: * arith_t instead of intmax_t * imaxdiv() not used * unset or null variables default to 0 * let/exp builtin (undocumented, will probably be removed later) Obtained from: dash
* Explicitly include <sys/types.h> as suggested by getpid(2) and don't rely onpjd2011-02-081-0/+1
| | | | | | <sys/un.h> including what's needed. MFC after: 1 week
* Unlink UNIX domain socket file only if:pjd2011-02-081-5/+16
| | | | | | | | | 1. The descriptor is the one we are listening on (not the one when we connect as a client and not the one which is created on accept(2)). 2. Descriptor was created by us (PID matches with the PID stored on bind(2)). Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* Improve the error interrupt handler. In particular, read themarcel2011-02-081-9/+14
| | | | | | | error address on a decoding error to unlatch it and to allow us to print a better diagnostics message. This also has the side effect of clearing the condition, which prevents an interrupt storm.
* Take advantage of accessing the kernel TSB via ASI_ATOMIC_QUAD_LDD_PHYSmarius2011-02-081-1/+2
| | | | on SPARC64-V, too. Tested by: Michael Moll
* net80211 really doesn't want A_MPDU to appear on non-11n station node mbufs.adrian2011-02-081-0/+9
| | | | | | | | Revert back to the previous method of doing it for where a node can be identified and it's an 11n node. I'll have to do some further research into exactly what is being messed up with the sequence number matching and I'll then revisit this.
* Commit some missing bits to the sample rate module to (more) correctly ↵adrian2011-02-081-6/+14
| | | | | | | | calculate 802.11n packet duration. This doesn't yet take into account HT40 packet durations as the node info (needed to know if it's a HT20 or HT40 node) isn't available everywhere it needs to be.
* I missed this commit - enable 4k transaction support for the ar5416+ar9160.adrian2011-02-081-0/+1
|
* After reading a bitmap block for i-nodes or blocks, recheck the count ofjhb2011-02-081-0/+18
| | | | | | | free i-nodes or blocks to handle a race where another thread might have allocated the last i-node or block while we were waiting for the buffer. Tested by: dougb
* There's apparently a bug with Merlin (AR9280) and later chipsets whereadrian2011-02-086-5/+8
| | | | | | | | | | | | putting descriptors (not buffers) across a 4k page boundary can cause issues. I've not seen it in production myself but it apparently can cause problems. So, in preparation for addressing this workaround, (re)-expose the particular HAL capability bit which marks whether the chipset has support for cross-4k- boundary transactions or not. A subsequent commit will modify the descriptor allocation to avoid allocating descriptor entries that straddle a 4k page boundary.
* Don't consider ioctl returning error as a fatal error and move on to nextdelphij2011-02-081-8/+18
| | | | | | | | disk. When multiple devices are specified, a non-supporting ioctl will cause diskinfo(8) to stop at the point which does not seem to be necessary. Ok'ed by: phk MFC after: 1 month
* In arm_get_next_irq(), use the last IRQ argument in order to preventmarcel2011-02-081-11/+23
| | | | | | | | a hard hang due to an interrupt storm or stuck interrupt pin. We return the next IRQ that is larger than the last one returned and in doing so give all interrupts a fair chance of being handled. Consequently, we're able to break into the kernel debugger in such an event.
* o Make sure to mask off timer1 interrupts. It's not necessarilymarcel2011-02-081-1/+2
| | | | | | | | | masked-off by the firmware. o In DELAY(). Make sure we have an inner-loop body that the compiler cannot eliminate. While timing does not have to be perfect, the loops must be there to have at least some notion of delay. Obtained from: Juniper Networks
* Remove the uio_yield prototype and symbol. This function has beenmdf2011-02-084-9/+8
| | | | | | | | | misnamed since it was introduced and should not be globally exposed with this name. The equivalent functionality is now available using kern_yield(curthread->td_user_pri). The function remains undocumented. Bump __FreeBSD_version.
* Based on discussions on the svn-src mailing list, rework r218195:mdf2011-02-0812-40/+49
| | | | | | | | | | | | | | | | | | | | | | - entirely eliminate some calls to uio_yeild() as being unnecessary, such as in a sysctl handler. - move should_yield() and maybe_yield() to kern_synch.c and move the prototypes from sys/uio.h to sys/proc.h - add a slightly more generic kern_yield() that can replace the functionality of uio_yield(). - replace source uses of uio_yield() with the functional equivalent, or in some cases do not change the thread priority when switching. - fix a logic inversion bug in vlrureclaim(), pointed out by bde@. - instead of using the per-cpu last switched ticks, use a per thread variable for should_yield(). With PREEMPTION, the only reasonable use of this is to determine if a lock has been held a long time and relinquish it. Without PREEMPTION, this is essentially the same as the per-cpu variable.
* - Added systcls for header splitting, RX/TX buffer count, interruptdavidch2011-02-072-703/+1112
| | | | | | | | | | | | | coalescing, strict RX MTU, verbose output, and shared memory debug. - Added additional debug counters (VLAN tags and split header frames). - Updated debug counters to 64 bit definitions. - Updated l2fhdr bit definitions. - Combined RX buffer sizing into a single function. - Added buffer size and interrupt coalescing settings to adapter info printout. Submitted by: davidch MFC after: 2 weeks
* Curitel UM150 needs a quirk to stop it from detaching straight aftern_hibma2011-02-072-0/+2
| | | | | | | attach (resetting actually). Submitted by: Oleg Nauman MFC after: 1 week
* Update manpage to remove CRT reference.gjb2011-02-071-2/+2
| | | | | | | | PR: 154441 Submitted by: Ben Haga (bhaga of absoludicrous com) Suggestion by: pluknet Approved by: keramida (mentor) MFC after: 3 days
* Add in some AR9280 specific board configuration options.adrian2011-02-073-39/+119
| | | | | | | | | | | | * The existing radio config code was for the AR5416/AR9160 and missed out on some of the AR9280 specific stuff. Include said stuff from ath9k. * Refactor out the gain control settings into a new function, again pilfered from ath9k. * Use the analog register RMW macro when touching analog registers. Obtained from: Linux ath9k
* Bring over some AR9280-specific v14 additions that exist in ath9k.adrian2011-02-072-3/+6
| | | | Obtained from: Linux ath9k
* Fix the previous commit of pthread_getthreadid_np(3).jkim2011-02-071-57/+0
|
* Use analog delay macro for modifying an analog register.adrian2011-02-071-1/+1
|
* Add a new RMW macro for analog register writes which implements the neededadrian2011-02-071-0/+4
| | | | wait period between operations.
* Introduce a non-portable function pthread_getthreadid_np(3) to retrievejkim2011-02-0710-2/+171
| | | | | | | calling thread's unique integral ID, which is similar to AIX function of the same name. Bump __FreeBSD_version to note its introduction. Reviewed by: kib
* - Use LINE_MAX from limits.h as the maximum line length instead ofjh2011-02-071-6/+12
| | | | | | | | | BUFSIZ. Use LINE_MAX * 2 as the buffer size (BSIZE). - Error out if we encounter a line longer than LINE_MAX. The previous behavior was to silently split long lines and produce corrupted output. PR: bin/151384
* Handle EOF when skipping lines.jh2011-02-071-1/+4
|
* Fix typo in SIFS setupadrian2011-02-071-1/+1
|
* Add in a per phy error sysctl.adrian2011-02-071-0/+20
|
* Fix bugs related to M_FLOWID:tuexen2011-02-075-13/+37
| | | | | | | | * Store the flowid when receiving an SCTP/IPv6 packet. * Store the flowid when receiving an SCTP packet with wrong CRC. * Initilize flowid correctly. * Put test code under INVARIANTS. MFC after: 3 months.
* Minor grammar fix. s/cores'/core's/gjb2011-02-071-1/+1
| | | | | Approved by: keramida (mentor) MFC after: 3 days
* Add "iface name" and "iface description" commands.brian2011-02-078-24/+177
| | | | | | PR: 151400 Submitted by: Aragon Gouveia - aragon at phat dot za dot net with minor fixes MFC after: 3 weeks
* If not set (due to some error Michael is working onrrs2011-02-071-0/+12
| | | | | | fixing) set it for the net. MFC after: 3 months
* 1) Track when flowid does get set.rrs2011-02-073-2/+4
| | | | MFC after: 3 months
* MFi386: revision 218329nyan2011-02-071-0/+6
| | | | Fix linking of the kernel without device npx.
* MFi386: revision 218327nyan2011-02-071-1/+17
| | | | | | | Clear the padding when returning context to the usermode, for MI ucontext_t and x86 MD parts. Kernel allocates the structures on the stack, and not clearing reserved fields and paddings causes leakage.
* MFi386: revision 217886nyan2011-02-071-3/+5
| | | | Set td_kstack_pages for thread0.
* Remove use_high from the softc and simply check the number of GPIOmarcel2011-02-071-7/+3
| | | | | | pins to determine whether there's a high register set or not. This allows platform_gpio_init() to work without duplicating the work done in the attach method.
* unbreak mutlicast hash creation for the second time.ticso2011-02-071-2/+12
| | | | at91_emac hardware is *not* using ether_crc32_be algorithm!
* Make it impossible to clear the MNT_NFS4ACLS flag on ZFS filesystemtrasz2011-02-061-1/+3
| | | | | | | by using "mount -uw". Reviewed by: pjd MFC after: 2 weeks
* rfork_thread(3): Mark deprecated in favor of pthread_create(3).jilles2011-02-061-2/+10
|
* Update to BIND 9.6.3, the latest from ISC on the 9.6 branch.dougb2011-02-06148-8077/+9846
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All 9.6 users with DNSSEC validation enabled should upgrade to this version, or the latest version in the 9.7 branch, prior to 2011-03-31 in order to avoid validation failures for names in .COM as described here: https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record In addition the fixes for this and other bugs, there are also the following: * Various fixes to kerberos support, including GSS-TSIG * Various fixes to avoid leaking memory, and to problems that could prevent a clean shutdown of named
| * Vendor import of BIND 9.6.3dougb2011-02-05142-8071/+9812
| |
* | o) Cavium Octeon doesn't need nop barriers.jmallett2011-02-061-0/+42
| | | | | | | | | | | | | | | | o) Have mips_wblush just do syncw, not sync on Cavium Octeon. o) Add support for reading and writing some Octeon-specific registers. NB: Some of these are not entirely Octeon-specific. Submitted by: Bhanu Prakash
* | Comment-out FLOWTABLE. It causes a kernel panic due to a misaligned memorymarcel2011-02-061-1/+2
| | | | | | | | | | | | access related to an IPv6 route update. PR: kern/148018
* | Just tag all RX packets as needing reorder processing for now.adrian2011-02-061-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes two problems - * All packets need to be processed here, not just aggregate ones - as any received frames (AMPDU or otherwise) in the given TID (traffic class id) will update the sequence number and, implied with that, update the window; * It seems there's situations where packets aren't matching a current node but somehow need to be tracked. Thus just tag them all for now; I'll figure out the why later. Whilst I'm here, bump the stats counters whilst I'm at it. This fixes AMPDU RX in my tests; the main problems now stem from what look like PHY level error/retransmits which are impeding general throughput, incl. AMPDU.
* | Only tag packets with the A-MPDU bit if they were part of an A-MPDU RX.adrian2011-02-062-11/+9
| | | | | | | | Whilst I'm here, add a counter to count said packets.
* | Now that we break the loop on fstat(2) failure we no longer need to satisfypjd2011-02-061-2/+0
| | | | | | | | | | | | gcc's imperfections. MFC after: 1 week
* | Add (void) cast before snprintf(3)s for which we are not interested in returnpjd2011-02-061-13/+13
| | | | | | | | | | | | values. MFC after: 1 week
* | Treat fstat(2) failure (different than EBADF) as fatal error.pjd2011-02-061-0/+1
| | | | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* | Open syslog when logging sysconf(3) failure.pjd2011-02-061-0/+4
| | | | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
OpenPOWER on IntegriCloud