svn commit: r220878 - in head/sys/netinet: . ipfw

2011-04-20 Thread Bjoern A. Zeeb
Author: bz Date: Wed Apr 20 07:55:33 2011 New Revision: 220878 URL: http://svn.freebsd.org/changeset/base/220878 Log: MFp4 CH=191466: Move fw_one_pass to where it belongs: it is a property of ipfw, not of ip_input. Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored

svn commit: r220879 - head/sys/netinet

2011-04-20 Thread Bjoern A. Zeeb
Author: bz Date: Wed Apr 20 08:00:29 2011 New Revision: 220879 URL: http://svn.freebsd.org/changeset/base/220879 Log: MFp4 CH=191470: Move the ipport_tick_callout and related functions from ip_input.c to in_pcb.c. The random source port allocation code has been merged and is now local

svn commit: r220880 - head/sys/netinet

2011-04-20 Thread Bjoern A. Zeeb
Author: bz Date: Wed Apr 20 08:03:22 2011 New Revision: 220880 URL: http://svn.freebsd.org/changeset/base/220880 Log: MFp4 CH=191760: When compiling out INET we still need the initialization routines as well as the tuning and montoring sysctls shared with IPv6. Move the two

svn commit: r220881 - head/sys/netinet6

2011-04-20 Thread Bjoern A. Zeeb
Author: bz Date: Wed Apr 20 08:05:23 2011 New Revision: 220881 URL: http://svn.freebsd.org/changeset/base/220881 Log: MFp4 CH=191760,191770: Not compiling in and not initializing from inetsw from in_proto.c for IPv6 only, we need to initialize upper layer protocols from inet6sw. Make

svn commit: r220883 - stable/8/sys/boot/forth

2011-04-20 Thread Sergey Kandaurov
Author: pluknet Date: Wed Apr 20 11:15:17 2011 New Revision: 220883 URL: http://svn.freebsd.org/changeset/base/220883 Log: MFC r220594: Remove the now defunct kern.ipc.nmbufs tunable. PR: kern/132497 (part) Modified: stable/8/sys/boot/forth/loader.conf Directory

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Rick Macklem
+ tmp_off = uio-uio_offset + uio-uio_resid; + mtx_lock(nmp-nm_mtx); + if (tmp_off nmp-nm_maxfilesize || tmp_off uio-uio_offset) { + mtx_unlock(nmp-nm_mtx); return (EFBIG); + } + mtx_unlock(nmp-nm_mtx); I don't think you need the lock to protect nm_maxfilesize. Can it

Re: svn commit: r220885 - head/sys/conf

2011-04-20 Thread Bjoern A. Zeeb
On Wed, 20 Apr 2011, Bjoern A. Zeeb wrote: Author: bz Date: Wed Apr 20 12:58:30 2011 New Revision: 220885 URL: http://svn.freebsd.org/changeset/base/220885 Log: Compile in in_cksum* implementations for both IPv6 and IPv6. IPv4 and IPv6 as Erwin noticed. While in_pseudo() etc. is often

svn commit: r220887 - head/sbin/camcontrol

2011-04-20 Thread Alexander Motin
Author: mav Date: Wed Apr 20 14:16:22 2011 New Revision: 220887 URL: http://svn.freebsd.org/changeset/base/220887 Log: When calling XPT_REL_SIMQ to ajust number of openings, do not try to really release device. We haven't frozen the device before and attempt to release it will at least

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Pawel Jakub Dawidek
On Wed, Apr 20, 2011 at 08:09:32AM -0400, Rick Macklem wrote: + tmp_off = uio-uio_offset + uio-uio_resid; + mtx_lock(nmp-nm_mtx); + if (tmp_off nmp-nm_maxfilesize || tmp_off uio-uio_offset) { + mtx_unlock(nmp-nm_mtx); return (EFBIG); + } + mtx_unlock(nmp-nm_mtx);

svn commit: r220889 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 16:36:59 2011 New Revision: 220889 URL: http://svn.freebsd.org/changeset/base/220889 Log: Timeout must be positive. MFC after:1 week Modified: head/sbin/hastd/parse.y Modified: head/sbin/hastd/parse.y

svn commit: r220890 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 16:38:05 2011 New Revision: 220890 URL: http://svn.freebsd.org/changeset/base/220890 Log: If we act in different role than requested by the remote node, log it as a warning and not an error. MFC after:1 week Modified: head/sbin/hastd/hastd.c Modified:

svn commit: r220891 - head/sys/dev/iwn

2011-04-20 Thread Bernhard Schmidt
Author: bschmidt Date: Wed Apr 20 16:59:27 2011 New Revision: 220891 URL: http://svn.freebsd.org/changeset/base/220891 Log: Add basic support for advanced bluetooth coexistence required for 6005 gen2b (1030/6030) adapters. Modified: head/sys/dev/iwn/if_iwn.c head/sys/dev/iwn/if_iwnreg.h

svn commit: r220894 - head/sys/dev/iwn

2011-04-20 Thread Bernhard Schmidt
Author: bschmidt Date: Wed Apr 20 17:43:20 2011 New Revision: 220894 URL: http://svn.freebsd.org/changeset/base/220894 Log: The 6000 series gen2 adapters have 2 firmware images, one with advanced btcoex support and one without. Modified: head/sys/dev/iwn/if_iwn.c Modified:

svn commit: r220895 - head/sys/dev/iwn

2011-04-20 Thread Bernhard Schmidt
Author: bschmidt Date: Wed Apr 20 17:49:05 2011 New Revision: 220895 URL: http://svn.freebsd.org/changeset/base/220895 Log: Now that all bits are in for 1030/6230 adapters enable those. While here pull the adapter names from the Linux driver and sort the list by ID. Modified:

svn commit: r220896 - head/share/man/man4

2011-04-20 Thread Bernhard Schmidt
Author: bschmidt Date: Wed Apr 20 17:53:39 2011 New Revision: 220896 URL: http://svn.freebsd.org/changeset/base/220896 Log: Add ref to the latest firmware additions. Modified: head/share/man/man4/iwnfw.4 Modified: head/share/man/man4/iwnfw.4

svn commit: r220897 - head/sys/dev/cxgbe

2011-04-20 Thread Navdeep Parhar
Author: np Date: Wed Apr 20 18:04:34 2011 New Revision: 220897 URL: http://svn.freebsd.org/changeset/base/220897 Log: Use the correct free routine when destroying a control queue. X-MFC after: r220873 Modified: head/sys/dev/cxgbe/t4_sge.c Modified: head/sys/dev/cxgbe/t4_sge.c

svn commit: r220898 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 18:43:28 2011 New Revision: 220898 URL: http://svn.freebsd.org/changeset/base/220898 Log: When we become primary, we connect to the remote and expect it to be in secondary role. It is possible that the remote node is primary, but only because there was a role

svn commit: r220899 - head/sbin/hastd

2011-04-20 Thread Pawel Jakub Dawidek
Author: pjd Date: Wed Apr 20 18:49:12 2011 New Revision: 220899 URL: http://svn.freebsd.org/changeset/base/220899 Log: Correct comment. MFC after:1 week Modified: head/sbin/hastd/hastd.c Modified: head/sbin/hastd/hastd.c

svn commit: r220900 - head/sys/dev/sound/usb

2011-04-20 Thread Hans Petter Selasky
Author: hselasky Date: Wed Apr 20 19:41:08 2011 New Revision: 220900 URL: http://svn.freebsd.org/changeset/base/220900 Log: Only set the sample rate if the USB audio channel reports that it supports the frequency control request. MFC after:7 days Approved by: thompsa (mentor)

svn commit: r220901 - releng/7.3 releng/7.3/sys/conf releng/7.3/usr.sbin/mountd releng/7.4 releng/7.4/sys/conf releng/7.4/usr.sbin/mountd releng/8.1 releng/8.1/sys/conf releng/8.1/usr.sbin/mountd r...

2011-04-20 Thread Colin Percival
Author: cperciva Date: Wed Apr 20 21:00:24 2011 New Revision: 220901 URL: http://svn.freebsd.org/changeset/base/220901 Log: Fix CIDR parsing bug in mountd ACLs. Approved by: so (cperciva) Security: FreeBSD-SA-11:01.mountd Modified: stable/7/usr.sbin/mountd/mountd.c Changes in

svn commit: r220901 - releng/7.3 releng/7.3/sys/conf releng/7.3/usr.sbin/mountd releng/7.4 releng/7.4/sys/conf releng/7.4/usr.sbin/mountd releng/8.1 releng/8.1/sys/conf releng/8.1/usr.sbin/mountd r...

2011-04-20 Thread Colin Percival
Author: cperciva Date: Wed Apr 20 21:00:24 2011 New Revision: 220901 URL: http://svn.freebsd.org/changeset/base/220901 Log: Fix CIDR parsing bug in mountd ACLs. Approved by: so (cperciva) Security: FreeBSD-SA-11:01.mountd Modified: stable/8/usr.sbin/mountd/mountd.c Changes in

svn commit: r220901 - releng/7.3 releng/7.3/sys/conf releng/7.3/usr.sbin/mountd releng/7.4 releng/7.4/sys/conf releng/7.4/usr.sbin/mountd releng/8.1 releng/8.1/sys/conf releng/8.1/usr.sbin/mountd r...

2011-04-20 Thread Colin Percival
:41:08 2011(r220900) +++ releng/7.3/UPDATING Wed Apr 20 21:00:24 2011(r220901) @@ -8,6 +8,9 @@ Items affecting the ports and packages s /usr/ports/UPDATING. Please read that file before running portupgrade. +20110420: p5 FreeBSD-SA-11:01.mountd + Fix CIDR parsing

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Rick Macklem
This is not that easy, I'm afraid. You need to ask yourself a question what you are trying to protect from. Here, the mutex only guarantees to have consistent view of the nm_maxfilesize field. For example if this field modification wouldn't be atomic you would need the mutex to ensure

svn commit: r220904 - svnadmin/conf

2011-04-20 Thread Ed Maste
Author: emaste Date: Wed Apr 20 23:17:17 2011 New Revision: 220904 URL: http://svn.freebsd.org/changeset/base/220904 Log: Release Ryan Stone (rstone@) from mentorship. I've taught him what I can. Congratulations, and good luck! Modified: svnadmin/conf/mentors Modified:

svn commit: r220905 - head/sys/dev/cxgbe

2011-04-20 Thread Navdeep Parhar
Author: np Date: Wed Apr 20 23:20:00 2011 New Revision: 220905 URL: http://svn.freebsd.org/changeset/base/220905 Log: Ring the freelist doorbell from within refill_fl. While here, fix a bug that could have allowed the hardware pidx to reach the cidx even though the freelist isn't empty.

svn commit: r220906 - head/sys/fs/nfsclient

2011-04-20 Thread Rick Macklem
Author: rmacklem Date: Wed Apr 20 23:25:18 2011 New Revision: 220906 URL: http://svn.freebsd.org/changeset/base/220906 Log: Add a check for VI_DOOMED at the beginning of nfscl_request() so that it won't try and use vp-v_mount to do an RPC during a forced dismount. There needs to be at least

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Bruce Evans
On Wed, 20 Apr 2011, Pawel Jakub Dawidek wrote: On Wed, Apr 20, 2011 at 08:09:32AM -0400, Rick Macklem wrote: + tmp_off = uio-uio_offset + uio-uio_resid; + mtx_lock(nmp-nm_mtx); + if (tmp_off nmp-nm_maxfilesize || tmp_off uio-uio_offset) { + mtx_unlock(nmp-nm_mtx); return

Re: svn commit: r220877 - head/sys/fs/nfsclient

2011-04-20 Thread Bruce Evans
On Wed, 20 Apr 2011, Rick Macklem wrote: Well, its value will be consistent, but not necessarily the up to date value set by another thread, if I understood alc@'s recent post. If you haven't yet read it, take a look at his post today on freebsd-hackers@ under the Subject Re: SMP question

svn commit: r220907 - in head: sbin/ifconfig sys/net80211

2011-04-20 Thread Adrian Chadd
Author: adrian Date: Thu Apr 21 03:47:40 2011 New Revision: 220907 URL: http://svn.freebsd.org/changeset/base/220907 Log: Change the MIMO userland export ABI to include flags, number of radio chains, extended EVM statistics and EXT channel data. ifconfig still displays 3 chains worth of