svn commit: r241922 - head/sys/netipsec

2012-10-23 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 23 08:22:01 2012 New Revision: 241922 URL: http://svn.freebsd.org/changeset/base/241922 Log: - Fix one more miss from r241913. - Add XXX comment about necessity of the entire block, that "fixes up" the IP header. Modified: head/sys/netipsec/ipsec_input.c M

Re: svn commit: r241922 - head/sys/netipsec

2012-10-23 Thread Gleb Smirnoff
On Tue, Oct 23, 2012 at 08:22:02AM +, Gleb Smirnoff wrote: T> Author: glebius T> Date: Tue Oct 23 08:22:01 2012 T> New Revision: 241922 T> URL: http://svn.freebsd.org/changeset/base/241922 T> T> Log: T> - Fix one more miss from r241913. T> - Add XXX comment about necessity of the entire bl

svn commit: r241923 - in head/sys: netinet netipsec

2012-10-23 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 23 08:33:13 2012 New Revision: 241923 URL: http://svn.freebsd.org/changeset/base/241923 Log: Do not reduce ip_len by size of IP header in the ip_input() before passing a packet to protocol input routines. For several protocols this mean that now protocol nee

Re: svn commit: r241823 - in head: . etc etc/atf etc/mtree lib lib/atf lib/atf/libatf-c lib/atf/libatf-c++ libexec libexec/atf libexec/atf/atf-check share share/atf share/doc share/doc/atf share/examp

2012-10-23 Thread Dimitry Andric
On 2012-10-22 16:58, Jan Beich wrote: Dimitry Andric writes: On 2012-10-22 09:00, Jan Beich wrote: ... undefined reference to `std::__1::basic_ios >::clear(unsigned int)' clang++: error: linker command failed with exit code 1 (use -v to see invocation) Strange, for me it compiles (with a bun

Re: svn commit: r241923 - in head/sys: netinet netipsec

2012-10-23 Thread Andre Oppermann
On 23.10.2012 10:33, Gleb Smirnoff wrote: Author: glebius Date: Tue Oct 23 08:33:13 2012 New Revision: 241923 URL: http://svn.freebsd.org/changeset/base/241923 Log: Do not reduce ip_len by size of IP header in the ip_input() before passing a packet to protocol input routines. For se

Re: svn commit: r241923 - in head/sys: netinet netipsec

2012-10-23 Thread Gleb Smirnoff
On Tue, Oct 23, 2012 at 11:12:00AM +0200, Andre Oppermann wrote: A> On 23.10.2012 10:33, Gleb Smirnoff wrote: A> > Author: glebius A> > Date: Tue Oct 23 08:33:13 2012 A> > New Revision: 241923 A> > URL: http://svn.freebsd.org/changeset/base/241923 A> > A> > Log: A> > Do not reduce ip_len by si

svn commit: r241925 - head/sys/netinet

2012-10-23 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 23 10:29:31 2012 New Revision: 241925 URL: http://svn.freebsd.org/changeset/base/241925 Log: Simplify ip_stripoptions() reducing number of intermediate variables. Modified: head/sys/netinet/ip_options.c Modified: head/sys/netinet/ip_options.c ===

svn commit: r241926 - head/sys/netinet

2012-10-23 Thread Gleb Smirnoff
Author: glebius Date: Tue Oct 23 10:30:09 2012 New Revision: 241926 URL: http://svn.freebsd.org/changeset/base/241926 Log: Use ip_stripoptions() instead of handrolled version. Modified: head/sys/netinet/ip_icmp.c Modified: head/sys/netinet/ip_icmp.c

svn commit: r241927 - head

2012-10-23 Thread Konstantin Belousov
Author: kib Date: Tue Oct 23 12:03:32 2012 New Revision: 241927 URL: http://svn.freebsd.org/changeset/base/241927 Log: Add the VFS_UNLOCK_GIANT.9.gz hardlink to ObsoleteFiles list too. Noted by: pluknet Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc ==

svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Andre Oppermann
Author: andre Date: Tue Oct 23 14:19:44 2012 New Revision: 241931 URL: http://svn.freebsd.org/changeset/base/241931 Log: Replace the ill-named ZERO_COPY_SOCKET kernel option with two more appropriate named kernel options for the very distinct send and receive path. "options SOCKET_SEND_

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

2012-10-23 Thread Andre Oppermann
Author: andre Date: Tue Oct 23 14:25:37 2012 New Revision: 241932 URL: http://svn.freebsd.org/changeset/base/241932 Log: Update zero_copy(9) man page to note the renamed kernel options and to warn about unsafeness of COW based sends. Modified: head/share/man/man9/zero_copy.9 Modified: head

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Gleb Smirnoff
On Tue, Oct 23, 2012 at 02:19:45PM +, Andre Oppermann wrote: A> Author: andre A> Date: Tue Oct 23 14:19:44 2012 A> New Revision: 241931 A> URL: http://svn.freebsd.org/changeset/base/241931 A> A> Log: A> Replace the ill-named ZERO_COPY_SOCKET kernel option with two A> more appropriate named

svn commit: r241933 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 14:58:24 2012 New Revision: 241933 URL: http://svn.freebsd.org/changeset/base/241933 Log: Start a clean-room implementation of files.mips. This is sufficient for SWARM64 and SWARM64_SMP to compile. Other kernels will be layered in. Modified: head/sys/conf/fi

svn commit: r241934 - head/games/fortune/datfiles

2012-10-23 Thread Eitan Adler
Author: eadler Date: Tue Oct 23 15:03:25 2012 New Revision: 241934 URL: http://svn.freebsd.org/changeset/base/241934 Log: Remove extra word: Submitted by: many Approved by: cperciva (implicit) MFC after:3 days Modified: head/games/fortune/datfiles/freebsd-tips Modified: head/ga

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Andre Oppermann
On 23.10.2012 16:42, Gleb Smirnoff wrote: On Tue, Oct 23, 2012 at 02:19:45PM +, Andre Oppermann wrote: A> Author: andre A> Date: Tue Oct 23 14:19:44 2012 A> New Revision: 241931 A> URL: http://svn.freebsd.org/changeset/base/241931 A> A> Log: A> Replace the ill-named ZERO_COPY_SOCKET kernel

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread David Chisnall
On 23 Oct 2012, at 16:05, Andre Oppermann wrote: > For zero copy send we're trying to come up with a sendfile-like > approach where the page is simply wired into kernel space. The > application then is not allowed to touch it until the socket > buffer has released it again. The main issue here i

svn commit: r241936 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 15:16:40 2012 New Revision: 241936 URL: http://svn.freebsd.org/changeset/base/241936 Log: Add support for syscons (we should consider moving most of this into files, another day). Modified: head/sys/conf/files.mips Modified: head/sys/conf/files.mips ===

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Bryan Drewery
On 10/23/2012 10:05 AM, Andre Oppermann wrote: > There shouldn't be any users. Zero copy send is broken and > responsible for random kernel crashes. Zero copy receive isn't > supported by any modern driver. Both are useless to dangerous. I enabled this a few weeks ago, not knowing it was useles

svn commit: r241942 - head/sys/mips/rt305x

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 15:25:48 2012 New Revision: 241942 URL: http://svn.freebsd.org/changeset/base/241942 Log: Add RT305x specific devices here. Modified: head/sys/mips/rt305x/files.rt305x Modified: head/sys/mips/rt305x/files.rt305x ===

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Andre Oppermann
On 23.10.2012 17:11, David Chisnall wrote: On 23 Oct 2012, at 16:05, Andre Oppermann wrote: For zero copy send we're trying to come up with a sendfile-like approach where the page is simply wired into kernel space. The application then is not allowed to touch it until the socket buffer has rel

svn commit: r241946 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 15:33:40 2012 New Revision: 241946 URL: http://svn.freebsd.org/changeset/base/241946 Log: intr_machdep.c and trap.c can be replaced with ports' own versions, so remove the standard ones from here. Modified: head/sys/conf/files.mips Modified: head/sys/conf/files

svn commit: r241952 - head/sys/cam/scsi

2012-10-23 Thread Alexander Motin
Author: mav Date: Tue Oct 23 16:03:00 2012 New Revision: 241952 URL: http://svn.freebsd.org/changeset/base/241952 Log: Remove two more 'periph == NULL' checks missed in r241404. This condition can never be true as functions are called from single place and the checks just pollute the code an

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Gleb Smirnoff
On Tue, Oct 23, 2012 at 05:05:48PM +0200, Andre Oppermann wrote: A> There shouldn't be any users. Zero copy send is broken and A> responsible for random kernel crashes. Zero copy receive isn't A> supported by any modern driver. Both are useless to dangerous. A> A> The main problem with ZERO_COP

svn commit: r241953 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 16:07:41 2012 New Revision: 241953 URL: http://svn.freebsd.org/changeset/base/241953 Log: Add in MD specific support for FDT. Need to refactor this a bit. Modified: head/sys/conf/files.mips Modified: head/sys/conf/files.mips =

svn commit: r241954 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 16:12:17 2012 New Revision: 241954 URL: http://svn.freebsd.org/changeset/base/241954 Log: Add in the crypto support from the generic versions. Modified: head/sys/conf/files.mips Modified: head/sys/conf/files.mips ==

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Alan Cox
On 10/23/2012 11:05, Gleb Smirnoff wrote: On Tue, Oct 23, 2012 at 05:05:48PM +0200, Andre Oppermann wrote: A> There shouldn't be any users. Zero copy send is broken and A> responsible for random kernel crashes. Zero copy receive isn't A> supported by any modern driver. Both are useless to d

Re: svn commit: r241923 - in head/sys: netinet netipsec

2012-10-23 Thread Garrett Cooper
On Tue, Oct 23, 2012 at 3:16 AM, Gleb Smirnoff wrote: > On Tue, Oct 23, 2012 at 11:12:00AM +0200, Andre Oppermann wrote: > A> On 23.10.2012 10:33, Gleb Smirnoff wrote: > A> > Author: glebius > A> > Date: Tue Oct 23 08:33:13 2012 > A> > New Revision: 241923 > A> > URL: http://svn.freebsd.org/change

svn commit: r241955 - head

2012-10-23 Thread Andre Oppermann
alse' /etc/malloc.conf".) 20121023: + The ZERO_COPY_SOCKET kernel option has been removed and + split into SOCKET_SEND_COW and SOCKET_RECV_PFLIP. + NB: SOCKET_SEND_COW uses the VM page based copy-on-write + mechanism which is not safe and may result in kernel cras

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Andre Oppermann
On 23.10.2012 17:21, Bryan Drewery wrote: On 10/23/2012 10:05 AM, Andre Oppermann wrote: There shouldn't be any users. Zero copy send is broken and responsible for random kernel crashes. Zero copy receive isn't supported by any modern driver. Both are useless to dangerous. I enabled this a

Re: svn commit: r241931 - in head/sys: conf kern

2012-10-23 Thread Andre Oppermann
On 23.10.2012 18:05, Gleb Smirnoff wrote: On Tue, Oct 23, 2012 at 05:05:48PM +0200, Andre Oppermann wrote: A> There shouldn't be any users. Zero copy send is broken and A> responsible for random kernel crashes. Zero copy receive isn't A> supported by any modern driver. Both are useless to dang

Re: svn commit: r241916 - in head/sys: netinet netinet6

2012-10-23 Thread Michael Tuexen
On Oct 23, 2012, at 6:23 AM, Bruce Evans wrote: > On Mon, 22 Oct 2012, Xin LI wrote: > >> Log: >> Remove __P. > > This was a chance to remove style bugs in the prototypes. At least it > didn't create so many new ones, unlike the original __P axing. It > still enlarged about a hundred by changi

Re: svn commit: r241625 - head/usr.sbin/cron/cron

2012-10-23 Thread Konstantin Belousov
On Mon, Oct 22, 2012 at 09:10:17AM -0700, Maxim Sobolev wrote: > Guys, > > The latest version of the patch against current HEAD is available here: > > http://sobomax.sippysoft.com/cron.diff > > Any comments/suggestions are appreciated. This version should default to > previous behaviour of waki

Re: svn commit: r241916 - in head/sys: netinet netinet6

2012-10-23 Thread Bruce Evans
On Tue, 23 Oct 2012, Michael Tuexen wrote: On Oct 23, 2012, at 6:23 AM, Bruce Evans wrote: On Mon, 22 Oct 2012, Xin LI wrote: Log: Remove __P. This was a chance to remove style bugs in the prototypes. At least it didn't create so many new ones, unlike the original __P axing. It still enl

svn commit: r241957 - in head/contrib/libstdc++: config/os/bsd/freebsd include/bits include/std

2012-10-23 Thread Dimitry Andric
Author: dim Date: Tue Oct 23 18:36:07 2012 New Revision: 241957 URL: http://svn.freebsd.org/changeset/base/241957 Log: Fix several clang warnings in libstdc++, which were exposed by the recent atf import. These changes are purely cosmetic, no functional change. MFC after:1 week Mo

svn commit: r241958 - in head/contrib/atf: atf-report atf-run

2012-10-23 Thread Dimitry Andric
Author: dim Date: Tue Oct 23 18:38:04 2012 New Revision: 241958 URL: http://svn.freebsd.org/changeset/base/241958 Log: Fix two clang warnings in the recent atf import. These have also been sent upstream. Tested by:Garrett Cooper Modified: head/contrib/atf/atf-report/atf-report.cp

Re: svn commit: r241916 - in head/sys: netinet netinet6

2012-10-23 Thread Michael Tuexen
On Oct 23, 2012, at 8:28 PM, Bruce Evans wrote: > On Tue, 23 Oct 2012, Michael Tuexen wrote: > >> On Oct 23, 2012, at 6:23 AM, Bruce Evans wrote: >> >>> On Mon, 22 Oct 2012, Xin LI wrote: >>> Log: Remove __P. >>> >>> This was a chance to remove style bugs in the prototypes. At least

svn commit: r241959 - in head/contrib/libstdc++: include/debug include/ext libsupc++ src

2012-10-23 Thread Dimitry Andric
Author: dim Date: Tue Oct 23 18:45:32 2012 New Revision: 241959 URL: http://svn.freebsd.org/changeset/base/241959 Log: Fix a number of other clang warnings in libstdc++, which could appear when building other C++ software with it. Also fix one actual bug in libsupc++, which was exposed by s

svn commit: r241960 - in head/gnu/lib: libstdc++ libsupc++

2012-10-23 Thread Dimitry Andric
Author: dim Date: Tue Oct 23 18:57:20 2012 New Revision: 241960 URL: http://svn.freebsd.org/changeset/base/241960 Log: For building GNU libstdc++ and libsupc++, filter out libc++-specific and -std= flags above c++98 or gnu++98 from CXXFLAGS *after* including bsd.lib.mk, otherwise some additi

Re: svn commit: r241896 - in head: . cddl/contrib/opensolaris/lib/libzpool/common/sys share/man/man9 sys/cam/ctl sys/cddl/compat/opensolaris/kern sys/cddl/compat/opensolaris/sys sys/cddl/contrib/opens

2012-10-23 Thread Pawel Jakub Dawidek
On Mon, Oct 22, 2012 at 05:50:55PM +, Konstantin Belousov wrote: > Author: kib > Date: Mon Oct 22 17:50:54 2012 > New Revision: 241896 > URL: http://svn.freebsd.org/changeset/base/241896 > > Log: > Remove the support for using non-mpsafe filesystem modules. > > In particular, do not loc

svn commit: r241964 - in head/sys: conf mips/rt305x

2012-10-23 Thread Warner Losh
Author: imp Date: Tue Oct 23 19:17:43 2012 New Revision: 241964 URL: http://svn.freebsd.org/changeset/base/241964 Log: Turns out the nvram env was common, so move it back up to get PB92 working. Modified: head/sys/conf/files.mips head/sys/mips/rt305x/files.rt305x Modified: head/sys/conf/fi

svn commit: r241970 - head/sys/mips/conf

2012-10-23 Thread Andrew Thompson
Author: thompsa Date: Tue Oct 23 22:58:25 2012 New Revision: 241970 URL: http://svn.freebsd.org/changeset/base/241970 Log: Fix spelling of NFSCL option. Modified: head/sys/mips/conf/AR71XX_BASE head/sys/mips/conf/AR724X_BASE Modified: head/sys/mips/conf/AR71XX_BASE

svn commit: r241971 - head/sys/conf

2012-10-23 Thread Andre Oppermann
Author: andre Date: Tue Oct 23 23:13:44 2012 New Revision: 241971 URL: http://svn.freebsd.org/changeset/base/241971 Log: Change the dependency of kern/uipc_cow.c from zero_copy_sockets to socket_send_cow. Missed in r241931. Submitted by: pluknet Modified: head/sys/conf/files Modified

svn commit: r241972 - head/usr.bin/script

2012-10-23 Thread David E. O'Brien
Author: obrien Date: Tue Oct 23 23:36:29 2012 New Revision: 241972 URL: http://svn.freebsd.org/changeset/base/241972 Log: Don't include both & . Modified: head/usr.bin/script/script.c Modified: head/usr.bin/script/script.c

svn commit: r241974 - in head: lib/libpmc sys/dev/hwpmc

2012-10-23 Thread Sean Bruno
Author: sbruno Date: Wed Oct 24 01:26:29 2012 New Revision: 241974 URL: http://svn.freebsd.org/changeset/base/241974 Log: Cleanup and rename some variables in libpmc and hwpmc. Submitted by: hiren panchasara Reviewed by: jimharris@ sbruno@ Obtained from:Yahoo! Inc. MFC after

svn commit: r241975 - head/usr.sbin/pkg_install/add

2012-10-23 Thread Ken Smith
Author: kensmith Date: Wed Oct 24 01:42:46 2012 New Revision: 241975 URL: http://svn.freebsd.org/changeset/base/241975 Log: Add the release package directory for 9.1-RELEASE. Modified: head/usr.sbin/pkg_install/add/main.c Modified: head/usr.sbin/pkg_install/add/main.c ===

svn commit: r241983 - head/sys/dev/bge

2012-10-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 24 05:00:56 2012 New Revision: 241983 URL: http://svn.freebsd.org/changeset/base/241983 Log: Do not hardcode phy address. Multi-port controllers use different phy address. Modified: head/sys/dev/bge/if_bge.c head/sys/dev/bge/if_bgereg.h Modified: head/sys/de

svn commit: r241984 - head/sys/dev/bge

2012-10-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 24 05:22:41 2012 New Revision: 241984 URL: http://svn.freebsd.org/changeset/base/241984 Log: Ethernet@WireSpeed is defined for 1000baseT adapter to establish a link at a lower speed so enabling it for fiber adapters is wrong. Fix the issue by setting BGE_PHY_NO_

svn commit: r241985 - head/sys/dev/bge

2012-10-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Oct 24 05:54:17 2012 New Revision: 241985 URL: http://svn.freebsd.org/changeset/base/241985 Log: For fast ethernet controllers, Ethernet@WireSpeed is not defined so explicitly set BGE_PHY_NO_WIRESPEED flag. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/de

svn commit: r241986 - head/sys/conf

2012-10-23 Thread Warner Losh
Author: imp Date: Wed Oct 24 06:10:09 2012 New Revision: 241986 URL: http://svn.freebsd.org/changeset/base/241986 Log: Add back hwpmc support. Modified: head/sys/conf/files.mips Modified: head/sys/conf/files.mips ==