svn commit: r193030 - in head: share/man/man9 sys/kern sys/net sys/security/mac sys/sys

2009-05-29 Thread Robert Watson
Author: rwatson Date: Fri May 29 10:52:37 2009 New Revision: 193030 URL: http://svn.freebsd.org/changeset/base/193030 Log: Make the rmlock(9) interface a bit more like the rwlock(9) interface: - Add rm_init_flags() and accept extended options only for that variation. - Add a flags space

Re: svn commit: r193030 - in head: share/man/man9 sys/kern sys/net sys/security/mac sys/sys

2009-05-29 Thread Robert Watson
On Fri, 29 May 2009, Attilio Rao wrote: Make the rmlock(9) interface a bit more like the rwlock(9) interface: - Add rm_init_flags() and accept extended options only for that variation. - Add a flags space specifically for rm_init_flags(), rather than borrowing the lock_init() flag space.

svn commit: r193038 - head/sys/kern

2009-05-29 Thread Robert Watson
Author: rwatson Date: Fri May 29 14:20:10 2009 New Revision: 193038 URL: http://svn.freebsd.org/changeset/base/193038 Log: Since sched_pin() and sched_unpin() are already inlined, don't manually inline in rmlocks. Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c

svn commit: r193039 - head/sys/kern

2009-05-29 Thread Robert Watson
Author: rwatson Date: Fri May 29 14:25:51 2009 New Revision: 193039 URL: http://svn.freebsd.org/changeset/base/193039 Log: Minor style tweak. Modified: head/sys/kern/kern_rmlock.c Modified: head/sys/kern/kern_rmlock.c

Re: svn commit: r193041 - head/sys/sys

2009-05-29 Thread Robert Watson
On Fri, 29 May 2009, Attilio Rao wrote: 2009/5/29 Scott Long sco...@samsco.org: Occasionally it's useful to be able to run older binaries on newer kernels. One particularly useful place is for making releases. Does this change to struct mount break that? If so, could there be any other way

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

2009-05-31 Thread Robert Watson
@@ This manual page was written by .An Robert Watson Aq rwat...@freebsd.org . .Sh BUGS The -.Nm -facility in -.Fx -is considered experimental, and production deployment should occur only after -careful consideration of the risks of deploying experimental software. -.Pp -The .Fx kernel does not fully

svn commit: r193219 - in head/sys: kern net netatalk netinet netinet6 netipsec netipx netnatm sys

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 10:41:38 2009 New Revision: 193219 URL: http://svn.freebsd.org/changeset/base/193219 Log: Reimplement the netisr framework in order to support parallel netisr threads: - Support up to one netisr thread per CPU, each processings its own workstream, or

svn commit: r193230 - head/sys/net

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 15:03:58 2009 New Revision: 193230 URL: http://svn.freebsd.org/changeset/base/193230 Log: Garbage collect NETISR_POLL and NETISR_POLLMORE, which are no longer required for options DEVICE_POLLING. De-fragment the NETISR_ constant space and lower

svn commit: r193233 - head

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 16:00:36 2009 New Revision: 193233 URL: http://svn.freebsd.org/changeset/base/193233 Log: Update UPDATING for NETISR2 merge, fix a typo in another UPDATING entry. Modified: head/UPDATING Modified: head/UPDATING

svn commit: r193234 - in head/sys: kern sys

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 16:13:06 2009 New Revision: 193234 URL: http://svn.freebsd.org/changeset/base/193234 Log: Add 'sy_flags', a currently unused per-syscall entry flags field that will see future use in 9-CURRENT and 8-STABLE for features such as the capability-mode enable flag

svn commit: r193243 - head/sys/net

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 18:38:36 2009 New Revision: 193243 URL: http://svn.freebsd.org/changeset/base/193243 Log: Revert a recent netisr2 change: when billing packets to the current CPU, don't lock the workstream, as its mutexes may not have been initialized if there are fewer

svn commit: r193255 - in head/sys: kern sys

2009-06-01 Thread Robert Watson
Author: rwatson Date: Mon Jun 1 20:26:51 2009 New Revision: 193255 URL: http://svn.freebsd.org/changeset/base/193255 Log: Add a flags field to struct ucred, and export that via kinfo_proc, consuming one of its spare fields. The cr_flags field is currently unused, but will be used for

svn commit: r193305 - head/sys/dev/puc

2009-06-02 Thread Robert Watson
Author: rwatson Date: Tue Jun 2 09:58:17 2009 New Revision: 193305 URL: http://svn.freebsd.org/changeset/base/193305 Log: Add support for the four PUC serial interfaces found on IBM SurePOS 300 series POS terminals. MFC after:3 days Submitted by: Marc Balmer marc at msys.ch

svn commit: r193309 - head/sys/kern

2009-06-02 Thread Robert Watson
Author: rwatson Date: Tue Jun 2 15:59:46 2009 New Revision: 193309 URL: http://svn.freebsd.org/changeset/base/193309 Log: Remove unneeded include. MFC after:3 days Modified: head/sys/kern/uipc_mbuf.c Modified: head/sys/kern/uipc_mbuf.c

svn commit: r193332 - in head/sys: kern netatalk netinet rpc security/mac

2009-06-02 Thread Robert Watson
Author: rwatson Date: Tue Jun 2 18:26:17 2009 New Revision: 193332 URL: http://svn.freebsd.org/changeset/base/193332 Log: Add internal 'mac_policy_count' counter to the MAC Framework, which is a count of the number of registered policies. Rather than unconditionally locking sockets

svn commit: r193334 - in head/sys: amd64/conf i386/conf ia64/conf pc98/conf powerpc/conf sparc64/conf sun4v/conf

2009-06-02 Thread Robert Watson
Author: rwatson Date: Tue Jun 2 18:31:08 2009 New Revision: 193334 URL: http://svn.freebsd.org/changeset/base/193334 Log: Remove MAC kernel config files and add options MAC to GENERIC, with the goal of shipping 8.0 with MAC support in the default kernel. No policies will be compiled in or

svn commit: r193355 - head/sys/security/mac

2009-06-02 Thread Robert Watson
Author: rwatson Date: Tue Jun 2 22:22:09 2009 New Revision: 193355 URL: http://svn.freebsd.org/changeset/base/193355 Log: Mark MAC Framework sx and rm locks as NOWITNESS to suppress warnings that might arise from WITNESS not understanding its locking protocol, which should be

svn commit: r193371 - head/sys/security/mac_biba

2009-06-03 Thread Robert Watson
Author: rwatson Date: Wed Jun 3 08:49:44 2009 New Revision: 193371 URL: http://svn.freebsd.org/changeset/base/193371 Log: By default, label all network interfaces as biba/equal on attach. This makes it easier for first-time users to configure and work with biba as remote acess is still

Re: svn commit: r193332 - in head/sys: kern netatalk netinet rpc security/mac

2009-06-03 Thread Robert Watson
On Wed, 3 Jun 2009, Pawel Jakub Dawidek wrote: Add internal 'mac_policy_count' counter to the MAC Framework, which is a count of the number of registered policies. Rather than unconditionally locking sockets before passing them into MAC, lock them in the MAC entry points only if

svn commit: r193391 - in head/sys: netinet security/mac security/mac_biba security/mac_lomac security/mac_mls security/mac_stub security/mac_test

2009-06-03 Thread Robert Watson
Author: rwatson Date: Wed Jun 3 18:46:28 2009 New Revision: 193391 URL: http://svn.freebsd.org/changeset/base/193391 Log: Continue work to optimize performance of options MAC when no MAC policy modules are loaded by avoiding mbuf label lookups when policies aren't loaded, pushing further

svn commit: r193393 - head/sys/security/mac

2009-06-03 Thread Robert Watson
Author: rwatson Date: Wed Jun 3 19:41:12 2009 New Revision: 193393 URL: http://svn.freebsd.org/changeset/base/193393 Log: Add one further check with mac_policy_count to an mbuf copying case (limited to netatalk) to avoid MAC label lookup on both mbufs if no policies are registered.

svn commit: r193504 - head/sys/net80211

2009-06-05 Thread Robert Watson
Author: rwatson Date: Fri Jun 5 13:55:33 2009 New Revision: 193504 URL: http://svn.freebsd.org/changeset/base/193504 Log: Fix spelling of MAC check for 8.x version of MAC Framework, not noticed due to a lack of an opt_mac.h include, which I won't add for now as options MAC will soon move

svn commit: r193507 - head/sys/fs/nfs

2009-06-05 Thread Robert Watson
Author: rwatson Date: Fri Jun 5 14:15:00 2009 New Revision: 193507 URL: http://svn.freebsd.org/changeset/base/193507 Log: Don't check MAC in the NFS server ACL set path, right now we aren't enforcing MAC for NFS clients. Modified: head/sys/fs/nfs/nfs_commonacl.c Modified:

svn commit: r193509 - head/sys/rpc

2009-06-05 Thread Robert Watson
Author: rwatson Date: Fri Jun 5 14:29:49 2009 New Revision: 193509 URL: http://svn.freebsd.org/changeset/base/193509 Log: Correct MAC compile problems resulting from the new RPC code copying and pasting code from the general socket code without also bringing along required opt_mac.h

svn commit: r193571 - head/sys/fs/udf

2009-06-06 Thread Robert Watson
Author: rwatson Date: Sat Jun 6 07:13:57 2009 New Revision: 193571 URL: http://svn.freebsd.org/changeset/base/193571 Log: Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific behavior for unicode support in UDF so as not to conflict with the MAC Framework. Note

svn commit: r193588 - in head/sys/modules: cxgb/tom firewire/fwip ibcs2 if_gif if_ppp if_stf if_tun ip6_mroute_mod ip_mroute_mod ipfw linux mac_lomac nfsserver pf pseudofs sem svr4 sysvipc/sysvmsg ...

2009-06-06 Thread Robert Watson
Author: rwatson Date: Sat Jun 6 17:01:44 2009 New Revision: 193588 URL: http://svn.freebsd.org/changeset/base/193588 Log: Remove opt_mac.h generation for various kernel modules that no longer require it. Submitted by: pjd Modified: head/sys/modules/cxgb/tom/Makefile

svn commit: r193650 - head/sys/rpc

2009-06-07 Thread Robert Watson
Author: rwatson Date: Sun Jun 7 20:51:31 2009 New Revision: 193650 URL: http://svn.freebsd.org/changeset/base/193650 Log: Add a temporary workaround for panics being seen on NFS servers with ZFS, where an improperly initialized prison field could lead to a panic. This is not the correct

svn commit: r193652 - head/share/man/man9

2009-06-07 Thread Robert Watson
Author: rwatson Date: Sun Jun 7 21:31:06 2009 New Revision: 193652 URL: http://svn.freebsd.org/changeset/base/193652 Log: Add beginnings of a netisr(9) man page. Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile

svn commit: r193653 - head/share/man/man9

2009-06-07 Thread Robert Watson
Author: rwatson Date: Sun Jun 7 21:32:01 2009 New Revision: 193653 URL: http://svn.freebsd.org/changeset/base/193653 Log: Try again to add beginnings of netisr(8) man page: this time add netisr.9. Added: head/share/man/man9/netisr.9 (contents, props changed) Added:

svn commit: r193723 - head/sys/kern

2009-06-08 Thread Robert Watson
Author: rwatson Date: Mon Jun 8 15:26:09 2009 New Revision: 193723 URL: http://svn.freebsd.org/changeset/base/193723 Log: Move zombie-reaping code out of kern_wait() and into its own function, proc_reap(). Reviewed by: jhb MFC after:3 days Sponsored by: Google, Inc. Modified:

Re: svn commit: r193941 - head/sys/netinet

2009-06-10 Thread Robert Watson
On Wed, 10 Jun 2009, John Baldwin wrote: Change a few members of tcpcb that store cached copies of ticks to be ints instead of unsigned longs. This fixes a few overflow edge cases on 64-bit platforms. Specifically, if an idle connection receives a packet shortly before 2^31 clock ticks

Re: svn commit: r194262 - in head: include lib/libc/sys sys/compat/freebsd32 sys/kern tools/regression/file/closefrom

2009-06-15 Thread Robert Watson
On Tue, 16 Jun 2009, Kostik Belousov wrote: Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe. ... + FILEDESC_SLOCK(fdp); + for (fd = uap-lowfd; fd

Re: svn commit: r189828 - in head: include sys/sys

2009-03-20 Thread Robert Watson
On Fri, 20 Mar 2009, Coleman Kane wrote: I've found that many of the GNU apps are notorious for this. I really can't say that I know why libassuan or gnupg explicitly require GNU pth, rather than first attempting to use POSIX pthread API. Their configure scripts both want to search for and

svn commit: r190220 - head/sys/nfsclient

2009-03-21 Thread Robert Watson
Author: rwatson Date: Sat Mar 21 21:49:07 2009 New Revision: 190220 URL: http://svn.freebsd.org/changeset/base/190220 Log: In nfs_request(), always exit using the nfsmout label once we're definitely doing an NFSv2 or NFSv3 RPC, rather than sometimes doing so and sometimes not. This makes

svn commit: r190293 - in head/sys: cddl/dev/dtnfsclient modules/dtrace modules/dtrace/dtnfsclient modules/dtrace/dtraceall nfsclient sys

2009-03-22 Thread Robert Watson
Author: rwatson Date: Sun Mar 22 22:07:52 2009 New Revision: 190293 URL: http://svn.freebsd.org/changeset/base/190293 Log: Add dtnfsclient, a first cut at an NFSv2/v3 client reuest DTrace provider. The NFS client exposes 'start' and 'done' probes for NFSv2 and NFSv3 RPCs when using the new

Re: svn commit: r190293 - in head/sys: cddl/dev/dtnfsclient modules/dtrace modules/dtrace/dtnfsclient modules/dtrace/dtraceall nfsclient sys

2009-03-22 Thread Robert Watson
On Sun, 22 Mar 2009, Robert Watson wrote: Add dtnfsclient, a first cut at an NFSv2/v3 client reuest DTrace provider. The NFS client exposes 'start' and 'done' probes for NFSv2 and NFSv3 RPCs when using the new RPC implementation, passing in the vnode, mbuf chain, credential, and NFSv2

Re: svn commit: r190357 - in stable/7: gnu/usr.bin/grep include lib/libelf sbin/fsck sbin/fsck_ffs sbin/mount usr.bin/gprof usr.bin/make usr.sbin/crunch usr.sbin/sade usr.sbin/sysinstall

2009-03-24 Thread Robert Watson
On Tue, 24 Mar 2009, M. Warner Losh wrote: In message: 20090324043624.gb34...@dragon.nuxi.org David O'Brien obr...@freebsd.org writes: : On Mon, Mar 23, 2009 at 07:25:41PM -0700, Sam Leffler wrote: : David E. O'Brien wrote: : Author: obrien : Date: Tue Mar 24 01:51:42 2009 : New

svn commit: r190380 - in head/sys: cddl/dev/dtnfsclient nfsclient sys

2009-03-24 Thread Robert Watson
Author: rwatson Date: Tue Mar 24 17:14:34 2009 New Revision: 190380 URL: http://svn.freebsd.org/changeset/base/190380 Log: Add DTrace probes to the NFS access and attribute caches. Access cache events are: nfsclient:accesscache:flush:done nfsclient:accesscache:get:hit

Re: svn commit: r190380 - in head/sys: cddl/dev/dtnfsclient nfsclient sys

2009-03-24 Thread Robert Watson
On Tue, 24 Mar 2009, Robert Watson wrote: Add DTrace probes to the NFS access and attribute caches. Access cache events are: nfsclient:accesscache:flush:done nfsclient:accesscache:get:hit nfsclient:accesscache:get:miss nfsclient:accesscache:load:done They pass the vnode, uid

svn commit: r190396 - head/sys/nfsclient

2009-03-24 Thread Robert Watson
Author: rwatson Date: Tue Mar 24 23:16:48 2009 New Revision: 190396 URL: http://svn.freebsd.org/changeset/base/190396 Log: Fix two bugs in DTrace tracing of accesscache and attrcache load events: - Trace non-error loads into the access cache once, not zero times or twice. - Sometimes

svn commit: r190419 - in head/sys: cddl/dev/dtnfsclient modules/dtrace/dtnfsclient nfsclient

2009-03-25 Thread Robert Watson
Author: rwatson Date: Wed Mar 25 17:47:22 2009 New Revision: 190419 URL: http://svn.freebsd.org/changeset/base/190419 Log: Move dtnfsclient.c in the cddl tree to nfs_kdtrace.c in the nfsclient directory, since it's under a BSD license, and this keeps NFS internals- aware tracing parts close

svn commit: r190442 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb netinet

2009-03-26 Thread Robert Watson
Author: rwatson Date: Thu Mar 26 14:20:16 2009 New Revision: 190442 URL: http://svn.freebsd.org/changeset/base/190442 Log: Merge r189657 from head to stable/7: Add INP_INHASHLIST flag for inpcb-inp_flags to indicate whether or not the inpcb is currenty on various hash lookup lists,

svn commit: r190506 - stable/7/sys/netinet

2009-03-28 Thread Robert Watson
Author: rwatson Date: Sat Mar 28 16:12:32 2009 New Revision: 190506 URL: http://svn.freebsd.org/changeset/base/190506 Log: Enable soreceive_dgram() use by UDP by default in 7.x. This can lead to a significant performance improvement for multi-threaded UDP socket receive, such as found in

svn commit: r190518 - head/sys/tools

2009-03-28 Thread Robert Watson
Author: rwatson Date: Sun Mar 29 03:30:15 2009 New Revision: 190518 URL: http://svn.freebsd.org/changeset/base/190518 Log: Add SDT DTrace probes for VFS vnode operations in the vfs:vop provider namespace. These are inserted dynamically into the VOP_..._AP() functions created from

svn commit: r190523 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb netinet

2009-03-29 Thread Robert Watson
Author: rwatson Date: Sun Mar 29 17:42:30 2009 New Revision: 190523 URL: http://svn.freebsd.org/changeset/base/190523 Log: Merge r185858 from head to stable/7: Remove inconsistent white space from in_pcballoc(). Approved by: re (kib) Modified: stable/7/sys/ (props changed)

svn commit: r190556 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb netinet

2009-03-30 Thread Robert Watson
Author: rwatson Date: Mon Mar 30 14:11:37 2009 New Revision: 190556 URL: http://svn.freebsd.org/changeset/base/190556 Log: Merge r189196 from head to stable/7: Remove unreachable code for generating RST segments from tcp_twcheck(); this code became stale when T/TCP support was

Re: svn commit: r190758 - head/sbin/route

2009-04-06 Thread Robert Watson
On Mon, 6 Apr 2009, Randall Stewart wrote: Author: rrs Date: Mon Apr 6 10:09:20 2009 New Revision: 190758 URL: http://svn.freebsd.org/changeset/base/190758 Log: Class based addressing went out in the early 90's. Basically if a entry is not route add -net xxx/bits then we should use the

svn commit: r190796 - svnadmin/conf

2009-04-07 Thread Robert Watson
Author: rwatson Date: Tue Apr 7 12:39:55 2009 New Revision: 190796 URL: http://svn.freebsd.org/changeset/base/190796 Log: Free the captive trasz from the chains of mentorship. Modified: svnadmin/conf/mentors Modified: svnadmin/conf/mentors

Re: svn commit: r190758 - head/sbin/route

2009-04-07 Thread Robert Watson
On Tue, 7 Apr 2009, Dag-Erling Smørgrav wrote: Robert Watson rwat...@freebsd.org writes: Does this maintain compatibility for people who may still mysteriously be specifying class-based IPs and netmasks in configuration files? If not, this should not be MFC'd... Here's the really ugly part

svn commit: r190829 - head/sys/kern

2009-04-07 Thread Robert Watson
Author: rwatson Date: Tue Apr 7 20:58:56 2009 New Revision: 190829 URL: http://svn.freebsd.org/changeset/base/190829 Log: Nul-terminate strings in the VFS name cache, which negligibly change the size and cost of name cache entries, but make adding debugging and tracing easier. Add SDT

Re: svn commit: r190837 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-08 Thread Robert Watson
On Wed, 8 Apr 2009, Stephen McKay wrote: Author: mckay Date: Wed Apr 8 04:30:16 2009 New Revision: 190837 URL: http://svn.freebsd.org/changeset/base/190837 Log: MFC r187460: Add a limit on namecache entries. Obviously, having a limit is a good idea, but I wonder if we should use some more

Re: svn commit: r190837 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-08 Thread Robert Watson
On Wed, 8 Apr 2009, Attilio Rao wrote: Finally, I think it would be a good idea to do a bit of real-world profiling on memory efficiency of the name cache: how much memory is wasted when assumptions about short/long are wrong, and could we retune lengths, limits, hash bucket counts, etc, to

Re: svn commit: r190837 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-08 Thread Robert Watson
On Wed, 8 Apr 2009, Robert Watson wrote: While the probes I've added could be used to do this very easily, that's not the thrust of the work I'm currently doing. A useful starting point for someone interested in this problem would be a dtrace script like the following

Re: svn commit: r190837 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-08 Thread Robert Watson
On Wed, 8 Apr 2009, Maxim Konovalov wrote: While the probes I've added could be used to do this very easily, that's not the thrust of the work I'm currently doing. A useful starting point for someone interested in this problem would be a dtrace script like the following:

Re: svn commit: r190837 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-08 Thread Robert Watson
On Wed, 8 Apr 2009, Robert Watson wrote: While the probes I've added could be used to do this very easily, that's not the thrust of the work I'm currently doing. A useful starting point for someone interested in this problem would be a dtrace script like the following

Re: svn commit: r190865 - in head: sbin/ipfw sys/netinet

2009-04-09 Thread Robert Watson
On Thu, 9 Apr 2009, Luigi Rizzo wrote: Note- this commit changes the userland/kernel ABI for pipes (but not for ordinary firewall rules) so you need to rebuild kernel and /sbin/ipfw to use dummynet features. Please check the manpage for details on the new feature. The MFC would be

svn commit: r190888 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/devfs fs/fifofs fs/unionfs kern nfs4client nfsclient sys ufs/ffs

2009-04-10 Thread Robert Watson
Author: rwatson Date: Fri Apr 10 10:52:19 2009 New Revision: 190888 URL: http://svn.freebsd.org/changeset/base/190888 Log: Remove VOP_LEASE and supporting functions. This hasn't been used since the removal of NQNFS, but was left in in case it was required for NFSv4. Since our new NFSv4

svn commit: r190889 - head/share/man/man9

2009-04-10 Thread Robert Watson
Author: rwatson Date: Fri Apr 10 10:59:48 2009 New Revision: 190889 URL: http://svn.freebsd.org/changeset/base/190889 Log: Remove VOP_LEASE(9) man page, as we no longer have a VOP_LEASE() in the kernel. Deleted: head/share/man/man9/VOP_LEASE.9 Modified: head/share/man/man9/Makefile

svn commit: r190947 - head/sys/kern

2009-04-11 Thread Robert Watson
Author: rwatson Date: Sat Apr 11 22:01:40 2009 New Revision: 190947 URL: http://svn.freebsd.org/changeset/base/190947 Log: Remove conditionally compiled time counter statistics; tools like DTrace, kernel profiling, etc, can provide this information without the overhead. MFC after:3

svn commit: r190948 - in head/sys: contrib/pf/net dev/cxgb/ulp/tom netinet

2009-04-11 Thread Robert Watson
Author: rwatson Date: Sat Apr 11 22:07:19 2009 New Revision: 190948 URL: http://svn.freebsd.org/changeset/base/190948 Log: Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() and TCPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it

svn commit: r190951 - in head/sys: contrib/pf/net net netinet

2009-04-11 Thread Robert Watson
Author: rwatson Date: Sat Apr 11 23:35:20 2009 New Revision: 190951 URL: http://svn.freebsd.org/changeset/base/190951 Log: Update stats in struct ipstat using four new macros, IPSTAT_ADD(), IPSTAT_INC(), IPSTAT_SUB(), and IPSTAT_DEC(), rather than directly manipulating the fields across the

svn commit: r190962 - in head/sys: contrib/pf/net netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 11:42:40 2009 New Revision: 190962 URL: http://svn.freebsd.org/changeset/base/190962 Log: Update stats in struct udpstat using two new macros, UDPSTAT_ADD() and UDPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it

svn commit: r190963 - head/sys/netinet6

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 11:53:12 2009 New Revision: 190963 URL: http://svn.freebsd.org/changeset/base/190963 Log: Commit file omitted in r190962: Update stats in struct udpstat using two new macros, UDPSTAT_ADD() and UDPSTAT_INC(), rather than directly manipulating the fields

svn commit: r190964 - in head/sys: contrib/pf/net netinet netinet6

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 13:22:33 2009 New Revision: 190964 URL: http://svn.freebsd.org/changeset/base/190964 Log: Update stats in struct icmpstat and icmp6stat using four new macros: ICMPSTAT_ADD(), ICMPSTAT_INC(), ICMP6STAT_ADD(), and ICMP6STAT_INC(), rather than directly

svn commit: r190968 - head/sys/netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 14:19:37 2009 New Revision: 190968 URL: http://svn.freebsd.org/changeset/base/190968 Log: Update stats in struct carpstats using two new macros: CARPSTATS_ADD() and CARPSTATS_INC(), rather than directly manipulating the fields of the structure. This will

svn commit: r190965 - head/sys/netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 13:41:13 2009 New Revision: 190965 URL: http://svn.freebsd.org/changeset/base/190965 Log: Update stats in struct igmpstat using two new macros: IGMPSTAT_ADD() and IGMPSTAT_INC(), rather than directly manipulating the fields of the structure. This will make

svn commit: r190966 - head/sys/netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 14:00:36 2009 New Revision: 190966 URL: http://svn.freebsd.org/changeset/base/190966 Log: Update stats in struct mrtstat using two new macros: MRTSTAT_ADD() and MRTSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it

svn commit: r190967 - head/sys/netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 14:06:26 2009 New Revision: 190967 URL: http://svn.freebsd.org/changeset/base/190967 Log: Update stats in struct pimstat using two new macros: PIMSTAT_ADD() and PIMSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it

Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)

2009-04-12 Thread Robert Watson
On Sun, 12 Apr 2009, Robert Watson wrote: As an example, an approach i was considering is replace the existing counters with an index in a global_counters[MAXCPU][] array so the counter update will become something like this: FYI, one other reason to put it all behind per-subsystem macros

Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)

2009-04-12 Thread Robert Watson
On Sun, 12 Apr 2009, Luigi Rizzo wrote: On Sun, Apr 12, 2009 at 02:06:26PM +, Robert Watson wrote: Update stats in struct pimstat using two new macros: PIMSTAT_ADD() and PIMSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it easier to change

Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)

2009-04-12 Thread Robert Watson
On Sun, 12 Apr 2009, Poul-Henning Kamp wrote: In message alpine.bsf.2.00.0904121525540.19...@fledge.watson.org, Robert Wats on writes: I have a project along these lines in progress, and will post the proposal to arch@ once I've finished prototyping it. In particular, it provides common

svn commit: r190978 - head/sys/netinet

2009-04-12 Thread Robert Watson
Author: rwatson Date: Sun Apr 12 21:28:35 2009 New Revision: 190978 URL: http://svn.freebsd.org/changeset/base/190978 Log: Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL. MFC after:3 days Modified: head/sys/netinet/tcp_var.h Modified: head/sys/netinet/tcp_var.h

svn commit: r190997 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-13 Thread Robert Watson
Author: rwatson Date: Mon Apr 13 11:54:22 2009 New Revision: 190997 URL: http://svn.freebsd.org/changeset/base/190997 Log: Merge r190996 from head to stable/7: When writing out updated pollfd records when returning from poll(), only copy out the revents field, not the whole pollfd

Re: svn commit: r190997 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

2009-04-13 Thread Robert Watson
On Mon, 13 Apr 2009, Robert Watson wrote: Author: rwatson Date: Mon Apr 13 11:54:22 2009 New Revision: 190997 URL: http://svn.freebsd.org/changeset/base/190997 Log: Merge r190996 from head to stable/7: Due to a clerical error, this is not the right revision number. The actual merged

Re: svn commit: r191037 - head/sys/net

2009-04-14 Thread Robert Watson
On Tue, 14 Apr 2009, Kip Macy wrote: call default if_qflush on ifq if default method isn't used by the driver ... Modified: head/sys/net/if.c == --- head/sys/net/if.c Tue Apr 14 03:13:05 2009(r191036) +++

Re: svn commit: r191055 - head/lib/libc/string

2009-04-14 Thread Robert Watson
On Tue, 14 Apr 2009, Tim Kientzle wrote: There is no way for strmode(3) to append '+' if the file has ACL, because there is no way to figure that out based on the file mode itself. Make the manual page match reality. Yep, that '+' is why libarchive has a custom strmode() that accepts

svn commit: r191138 - in head/sys: dev/ar dev/ray dev/sr modules modules/ar modules/netgraph/sync_ar modules/netgraph/sync_sr modules/ray modules/sr

2009-04-16 Thread Robert Watson
Author: rwatson Date: Thu Apr 16 11:09:13 2009 New Revision: 191138 URL: http://svn.freebsd.org/changeset/base/191138 Log: Garbage collect unbuildable and unusable non-MPSAFE network device drivers that depended on the historic IFF_NEEDSGIANT compatibility mechanism: ar(4) ray(4)

svn commit: r191139 - head/share/man/man4/man4.i386

2009-04-16 Thread Robert Watson
Author: rwatson Date: Thu Apr 16 11:09:59 2009 New Revision: 191139 URL: http://svn.freebsd.org/changeset/base/191139 Log: Remove man pages ar(4), ray(4), and sr(4) following removal of these non-MPSAFE device drivers. Deleted: head/share/man/man4/man4.i386/ar.4

svn commit: r191143 - head/sys/security/audit

2009-04-16 Thread Robert Watson
Author: rwatson Date: Thu Apr 16 11:57:16 2009 New Revision: 191143 URL: http://svn.freebsd.org/changeset/base/191143 Log: Remove D_NEEDGIANT from audit pipes. I'm actually not sure why this was here, but isn't needed. MFC after:2 weeks Sponsored by: Apple, Inc. Modified:

svn commit: r191144 - in head/usr.sbin: . raycontrol

2009-04-16 Thread Robert Watson
Author: rwatson Date: Thu Apr 16 14:43:59 2009 New Revision: 191144 URL: http://svn.freebsd.org/changeset/base/191144 Log: Garbage collect raycontrol(8), as ray(4) has been removed. Pointed out by: pluknet at gmail.com Deleted: head/usr.sbin/raycontrol/ Modified:

svn commit: r191147 - in head/sys: bsm security/audit

2009-04-16 Thread Robert Watson
Author: rwatson Date: Thu Apr 16 20:17:32 2009 New Revision: 191147 URL: http://svn.freebsd.org/changeset/base/191147 Log: Merge new kernel files from OpenBSM 1.1: audit_fcntl.h and audit_bsm_fcntl.c contain utility routines to map local fcntl commands into BSM constants. Adaptation to the

Re: svn commit: r191037 - head/sys/net

2009-04-16 Thread Robert Watson
On Tue, 14 Apr 2009, Kip Macy wrote: The commit message should perhaps read:  Call default if_qflush on ifq if there are still packets left in the default queue after calling the driver's flush method. However, this seems a bit odd: what if the driver uses if_snd as its queue but implements

svn commit: r191198 - in head/sys: conf legacy/dev/usb

2009-04-17 Thread Robert Watson
Author: rwatson Date: Fri Apr 17 09:42:26 2009 New Revision: 191198 URL: http://svn.freebsd.org/changeset/base/191198 Log: Remove legacy versions of USB network interface drivers relying on IFF_NEEDSGIANT, as that is no longer supported. Deleted: head/sys/legacy/dev/usb/if_aue.c

svn commit: r191199 - head/sys/legacy/dev/usb

2009-04-17 Thread Robert Watson
Author: rwatson Date: Fri Apr 17 09:48:20 2009 New Revision: 191199 URL: http://svn.freebsd.org/changeset/base/191199 Log: Remove kue_fw.h, missed in previous IFF_NEEDSGIANT USB driver garbage collection. Deleted: head/sys/legacy/dev/usb/kue_fw.h

Re: svn commit: r191146 - head

2009-04-17 Thread Robert Watson
On Thu, 16 Apr 2009, Maxim Konovalov wrote: Log: o Reflect ar(4), ray(4), sr(4), raycontrol(8) removal. Thanks! Robert N M Watson Computer Laboratory University of Cambridge Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc

svn commit: r191251 - head/share/man/man9

2009-04-18 Thread Robert Watson
Author: rwatson Date: Sat Apr 18 20:09:43 2009 New Revision: 191251 URL: http://svn.freebsd.org/changeset/base/191251 Log: Garbage collect man page reference to IFF_NEEDSGIANT. Modified: head/share/man/man9/altq.9 Modified: head/share/man/man9/altq.9

svn commit: r191252 - head/sbin/ifconfig

2009-04-18 Thread Robert Watson
Author: rwatson Date: Sat Apr 18 20:10:39 2009 New Revision: 191252 URL: http://svn.freebsd.org/changeset/base/191252 Log: ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag, since it shortly won't be defined at all. Modified: head/sbin/ifconfig/ifconfig.c Modified:

svn commit: r191253 - head/sys/net

2009-04-18 Thread Robert Watson
Author: rwatson Date: Sat Apr 18 20:39:17 2009 New Revision: 191253 URL: http://svn.freebsd.org/changeset/base/191253 Log: Remove IFF_NEEDSGIANT interface flag: we no longer provide ifnet-layer infrastructure to support non-MPSAFE network device drivers. Modified: head/sys/net/if.h

Re: svn commit: r191259 - head/sys/netinet

2009-04-19 Thread Robert Watson
On Sun, 19 Apr 2009, Kip Macy wrote: Author: kmacy Date: Sun Apr 19 04:44:05 2009 New Revision: 191259 URL: http://svn.freebsd.org/changeset/base/191259 Log: - Allocate a small flowtable in ip_input.c (changeable by tuneable) - Use for accelerating ip_output If you anticipate the flowtable

svn commit: r191267 - head/sys/sys

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 11:20:57 2009 New Revision: 191267 URL: http://svn.freebsd.org/changeset/base/191267 Log: Garbage collect now-unused struct malloc_type fields, bump __FreeBSD_version as kernel modules will need to be rebuilt. These fields existed to support binary

svn commit: r191268 - head/sys/kern

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 12:41:37 2009 New Revision: 191268 URL: http://svn.freebsd.org/changeset/base/191268 Log: struct malloc_type has had a 'magic' field statically initialized to M_MAGIC by MALLOC_DEFINE() for a long time; add assertions that malloc_type's passed to malloc(),

svn commit: r191270 - in head/sys: bsm conf security/audit

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 14:53:17 2009 New Revision: 191270 URL: http://svn.freebsd.org/changeset/base/191270 Log: Merge OpenBSM 1.1 changes to the FreeBSD 8.x kernel: - Add and use mapping of fcntl(2) commands to new BSM constant space. - Adopt (int) rather than (long) arguments

svn commit: r191271 - in vendor/openbsm/dist: . bin bin/audit bin/auditd bin/auditfilterd bin/auditreduce bin/praudit bsm config etc libauditd libbsm man modules modules/auditfilter_noop sys sys/bs...

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 15:18:16 2009 New Revision: 191271 URL: http://svn.freebsd.org/changeset/base/191271 Log: Vendor import of OpenBSM 1.1, which incorporates the following changes since the last imported OpenBSM release: OpenBSM 1.1 - Change auditon(2) parameters and

svn commit: r191272 - vendor/openbsm/1.1

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 15:19:26 2009 New Revision: 191272 URL: http://svn.freebsd.org/changeset/base/191272 Log: Tag OpenBSM 1.1 vendor import. Added: vendor/openbsm/1.1/ - copied from r191271, vendor/openbsm/dist/ ___

svn commit: r191273 - in head: contrib/openbsm contrib/openbsm/bin contrib/openbsm/bin/audit contrib/openbsm/bin/auditd contrib/openbsm/bin/auditfilterd contrib/openbsm/bin/auditreduce contrib/open...

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 16:17:13 2009 New Revision: 191273 URL: http://svn.freebsd.org/changeset/base/191273 Log: Merge OpenBSM 1.1 from OpenBSM vendor branch to head. OpenBSM history for imported revision below for reference. MFC after: 2 weeks Sponsored by: Apple,

svn commit: r191276 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 20:19:13 2009 New Revision: 191276 URL: http://svn.freebsd.org/changeset/base/191276 Log: For each architecture, define CACHE_LINE_SHIFT and a derived CACHE_LINE_SIZE constant. These constants are intended to over-estimate the cache line size, and be used

svn commit: r191281 - head/sys/netatalk

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:01:38 2009 New Revision: 191281 URL: http://svn.freebsd.org/changeset/base/191281 Log: Lock interface address list lock around ifaddr inserts and deletes in at_control(). This locking is not yet complete but should prevent some classes of race

svn commit: r191283 - head/sys/netgraph

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:04:29 2009 New Revision: 191283 URL: http://svn.freebsd.org/changeset/base/191283 Log: Lock interface address list when building a reply to NGM_EIFACE_GET_IFADDRS messages in ng_eiface. MFC after:2 weeks Modified: head/sys/netgraph/ng_eiface.c

svn commit: r191284 - head/sys/netgraph

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:05:39 2009 New Revision: 191284 URL: http://svn.freebsd.org/changeset/base/191284 Log: Lock the interface address list while building replies to NGM_CISCO_COOKIE messages in ng_iface. MFC after:2 weeks Modified: head/sys/netgraph/ng_iface.c

svn commit: r191287 - head/sys/netinet

2009-04-19 Thread Robert Watson
Author: rwatson Date: Sun Apr 19 22:29:16 2009 New Revision: 191287 URL: http://svn.freebsd.org/changeset/base/191287 Log: In divert_packet(), lock the interface address list before iterating over it in search of an address. MFC after:2 weeks Modified: head/sys/netinet/ip_divert.c

<    1   2   3   4   5   6   7   8   9   10   >