svn commit: r248417 - head/sys/sys

2013-03-17 Thread Gleb Smirnoff
Author: glebius Date: Sun Mar 17 07:39:45 2013 New Revision: 248417 URL: http://svnweb.freebsd.org/changeset/base/248417 Log: Add MEXT_ALIGN() macro, similar to M_ALIGN() and MH_ALIGN(), but for mbufs with external buffer. Modified: head/sys/sys/mbuf.h Modified: head/sys/sys/mbuf.h

svn commit: r248418 - head/sys/kern

2013-03-17 Thread Gleb Smirnoff
Author: glebius Date: Sun Mar 17 07:41:14 2013 New Revision: 248418 URL: http://svnweb.freebsd.org/changeset/base/248418 Log: In m_align() add assertions that mbuf is virgin, similar to assertions in M_ALIGN(), MH_ALIGN, MEXT_ALIGN() macros. Modified: head/sys/kern/uipc_mbuf.c Modified:

Re: svn commit: r248418 - head/sys/kern

2013-03-17 Thread Gleb Smirnoff
In r248418 and r248417 another change from my tree leaked: - Removing M_FREELIST flag, that comes from historical mbuf allocator predating FreeBSD 5.x. On Sun, Mar 17, 2013 at 07:41:14AM +, Gleb Smirnoff wrote: T Author: glebius T Date: Sun Mar 17 07:41:14 2013 T New Revision: 248418 T

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

2013-03-17 Thread Gleb Smirnoff
On Sun, Mar 17, 2013 at 10:02:09AM +0100, Andre Oppermann wrote: A On 17.03.2013 08:39, Gleb Smirnoff wrote: A Author: glebius A Date: Sun Mar 17 07:39:45 2013 A New Revision: 248417 A URL: http://svnweb.freebsd.org/changeset/base/248417 A A Log: A Add MEXT_ALIGN() macro, similar

svn commit: r248489 - head/lib/libc/sys

2013-03-18 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 19 05:44:25 2013 New Revision: 248489 URL: http://svnweb.freebsd.org/changeset/base/248489 Log: There are actually two different cases when mlock(2) returns ENOMEM. Clarify this, taking text from SUS. Reviewed by: kib Modified: head/lib/libc/sys/mlock.2

Re: svn commit: r248478 - in head: share/man/man4 sys/dev/atkbdc sys/sys usr.sbin/moused

2013-03-19 Thread Gleb Smirnoff
On Mon, Mar 18, 2013 at 11:22:47PM +, Jung-uk Kim wrote: J Author: jkim J Date: Mon Mar 18 23:22:47 2013 J New Revision: 248478 J URL: http://svnweb.freebsd.org/changeset/base/248478 J J Log: J Add preliminary support for IBM/Lenovo TrackPoint. J J PR:kern/147237 (based

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

2013-03-19 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 19 13:43:55 2013 New Revision: 248507 URL: http://svnweb.freebsd.org/changeset/base/248507 Log: iwn(4) doesn't support adhoc mode. PR: misc/177106 Submitted by: Hiren Panchasara hiren.panchasara gmail.com Modified: head/share/man/man4/iwn.4

Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys

2013-03-20 Thread Gleb Smirnoff
On Tue, Mar 19, 2013 at 08:58:18PM +, Jilles Tjoelker wrote: J Author: jilles J Date: Tue Mar 19 20:58:17 2013 J New Revision: 248534 J URL: http://svnweb.freebsd.org/changeset/base/248534 J J Log: J Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC. J J This change allows

svn commit: r248570 - head/sys/netgraph

2013-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 21 08:36:15 2013 New Revision: 248570 URL: http://svnweb.freebsd.org/changeset/base/248570 Log: Add NGM_NAT_LIBALIAS_INFO command, that reports internal stats of libalias instance. To be used in the mpd5 daemon. Submitted by: Dmitry Luhtionov dmitryluhtionov

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

2013-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 21 13:02:43 2013 New Revision: 248582 URL: http://svnweb.freebsd.org/changeset/base/248582 Log: Document NGM_NAT_LIBALIAS_INFO. Submitted by: Dmitry Luhtionov dmitryluhtionov gmail.com Modified: head/share/man/man4/ng_nat.4 Modified:

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

2013-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 21 16:04:34 2013 New Revision: 248586 URL: http://svnweb.freebsd.org/changeset/base/248586 Log: Document uma_find_refcnt(). Modified: head/share/man/man9/zone.9 Modified: head/share/man/man9/zone.9

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

2013-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 21 16:19:46 2013 New Revision: 248588 URL: http://svnweb.freebsd.org/changeset/base/248588 Log: Document some flags to the uma_zcreate(). Not all flags are documented, only those that at least are used in the kernel, or that definitely work. Modified:

svn commit: r248621 - head/sys/net

2013-03-22 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 22 20:44:16 2013 New Revision: 248621 URL: http://svnweb.freebsd.org/changeset/base/248621 Log: Remove __FreeBSD_version ifdefs. Modified: head/sys/net/if_arcsubr.c head/sys/net/if_lagg.c head/sys/net/if_lagg.h Modified: head/sys/net/if_arcsubr.c

svn commit: r248724 - head/sys/netgraph/netflow

2013-03-26 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 26 14:05:37 2013 New Revision: 248724 URL: http://svnweb.freebsd.org/changeset/base/248724 Log: Cleanup: wrap long lines, cleanup comments, etc. Modified: head/sys/netgraph/netflow/netflow.c head/sys/netgraph/netflow/ng_netflow.c Modified:

svn commit: r248725 - head/sys/netgraph/netflow

2013-03-26 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 26 14:08:14 2013 New Revision: 248725 URL: http://svnweb.freebsd.org/changeset/base/248725 Log: Return ENOMEM if malloc() fails. Modified: head/sys/netgraph/netflow/netflow.c Modified: head/sys/netgraph/netflow/netflow.c

Re: svn commit: r248836 - head/gnu/usr.bin/gdb/kgdb

2013-03-29 Thread Gleb Smirnoff
On Thu, Mar 28, 2013 at 05:04:59PM +, Will Andrews wrote: W Author: will W Date: Thu Mar 28 17:04:59 2013 W New Revision: 248836 W URL: http://svnweb.freebsd.org/changeset/base/248836 W W Log: W KGDB: Allow modules to be loaded from the specified kernel's directory. W W When looking up

svn commit: r248882 - head/sys/netgraph

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 13:51:01 2013 New Revision: 248882 URL: http://svnweb.freebsd.org/changeset/base/248882 Log: Non-functional cleanup of ng_ksocket_incoming2(). Modified: head/sys/netgraph/ng_ksocket.c Modified: head/sys/netgraph/ng_ksocket.c

svn commit: r248883 - head/sys/netgraph

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 13:53:14 2013 New Revision: 248883 URL: http://svnweb.freebsd.org/changeset/base/248883 Log: Whitespace. Modified: head/sys/netgraph/ng_ksocket.c Modified: head/sys/netgraph/ng_ksocket.c

svn commit: r248884 - head/sys/kern

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 13:57:55 2013 New Revision: 248884 URL: http://svnweb.freebsd.org/changeset/base/248884 Log: When soreceive_generic() hands off an mbuf from buffer, clear its pointer to next record, since next record belongs to the buffer, and shouldn't be leaked. The

svn commit: r248885 - head/sys/netgraph

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 14:04:26 2013 New Revision: 248885 URL: http://svnweb.freebsd.org/changeset/base/248885 Log: Revamp mbuf handling in ng_ksocket_incoming2(): - Clear code that workarounded a bug in FreeBSD 3, and even predated import of netgraph(4). - Clear workaround

svn commit: r248886 - head/sys/kern

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 14:06:04 2013 New Revision: 248886 URL: http://svnweb.freebsd.org/changeset/base/248886 Log: Once ng_ksocket(4) is fixed, re-apply r194662. See this revision for longer description. Discussed with: andre, rwatson Sponsored by: Nginx, Inc.

svn commit: r248887 - head/sys/kern

2013-03-29 Thread Gleb Smirnoff
Author: glebius Date: Fri Mar 29 14:10:40 2013 New Revision: 248887 URL: http://svnweb.freebsd.org/changeset/base/248887 Log: Fix bug in m_split() in a case when split len matches len of the first mbuf, and the first mbuf is M_PKTHDR. PR: kern/176144 Submitted by: Jacques

svn commit: r249022 - head/sys/modules/ctl

2013-04-02 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 2 13:52:09 2013 New Revision: 249022 URL: http://svnweb.freebsd.org/changeset/base/249022 Log: - Remove extra $FreeBSD$ - Touch options headers to make module buildable. Reviewed by: trasz Modified: head/sys/modules/ctl/Makefile Modified:

Re: svn commit: r249096 - head/sys/rpc/rpcsec_gss

2013-04-04 Thread Gleb Smirnoff
George, Rick, On Thu, Apr 04, 2013 at 03:16:54PM +, George V. Neville-Neil wrote: G Modified: head/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c G == G --- head/sys/rpc/rpcsec_gss/rpcsec_gss_prot.cThu Apr 4

svn commit: r249168 - head/sys/kern

2013-04-05 Thread Gleb Smirnoff
Author: glebius Date: Fri Apr 5 20:24:51 2013 New Revision: 249168 URL: http://svnweb.freebsd.org/changeset/base/249168 Log: Fix memory leak in coredump(). Reviewed by: kib Modified: head/sys/kern/kern_sig.c Modified: head/sys/kern/kern_sig.c

svn commit: r249189 - head/sys/sys

2013-04-06 Thread Gleb Smirnoff
Author: glebius Date: Sat Apr 6 08:23:38 2013 New Revision: 249189 URL: http://svnweb.freebsd.org/changeset/base/249189 Log: Move CRITICAL_ASSERT() macro to systm.h, where the critical(9) functions are declared. Modified: head/sys/sys/proc.h head/sys/sys/systm.h Modified:

svn commit: r249264 - in head: share/man/man9 sys/vm

2013-04-08 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 8 19:10:45 2013 New Revision: 249264 URL: http://svnweb.freebsd.org/changeset/base/249264 Log: Merge from projects/counters: UMA_ZONE_PCPU zones. These zones have slab size == sizeof(struct pcpu), but request from VM enough pages to fit (uk_slabsize *

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

2013-04-08 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 8 19:19:10 2013 New Revision: 249265 URL: http://svnweb.freebsd.org/changeset/base/249265 Log: Merge from projects/counters: Pad struct pcpu so that its size is denominator of PAGE_SIZE. This is done to reduce memory waste in UMA_PCPU_ZONE zones.

svn commit: r249266 - head/sys/contrib/ipfilter/netinet

2013-04-08 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 8 19:20:27 2013 New Revision: 249266 URL: http://svnweb.freebsd.org/changeset/base/249266 Log: Forcibly defining _KERNEL is bad idea. Toss some code so that ip_var.h isn't included with forced _KERNEL define. Modified:

svn commit: r249268 - in head: share/man/man9 sys/amd64/include sys/arm/include sys/conf sys/i386/include sys/ia64/include sys/kern sys/mips/include sys/pc98/include sys/powerpc/include sys/sparc64...

2013-04-08 Thread Gleb Smirnoff
Gleb Smirnoff gleb...@freebsd.org +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following conditions +.\ are met: +.\ 1. Redistributions of source code must retain the above copyright +.\notice

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

2013-04-08 Thread Gleb Smirnoff
On Mon, Apr 08, 2013 at 03:41:27PM -0400, John Baldwin wrote: J On Monday, April 08, 2013 3:19:10 pm Gleb Smirnoff wrote: J Author: glebius J Date: Mon Apr 8 19:19:10 2013 J New Revision: 249265 J URL: http://svnweb.freebsd.org/changeset/base/249265 J J Log: JMerge from projects

svn commit: r249276 - in head: sys/netinet usr.bin/netstat

2013-04-08 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 8 19:57:21 2013 New Revision: 249276 URL: http://svnweb.freebsd.org/changeset/base/249276 Log: Merge from projects/counters: TCP/IP stats. Convert 'struct ipstat' and 'struct tcpstat' to counter(9). This speeds up IP forwarding at extreme packet

svn commit: r249302 - head/sys/netinet

2013-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 9 09:15:26 2013 New Revision: 249302 URL: http://svnweb.freebsd.org/changeset/base/249302 Log: Fix VIMAGE build. Modified: head/sys/netinet/tcp_input.c Modified: head/sys/netinet/tcp_input.c

svn commit: r249305 - head/sys/vm

2013-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 9 12:20:44 2013 New Revision: 249305 URL: http://svnweb.freebsd.org/changeset/base/249305 Log: Fix KASSERTs: maximum number of items per slab is 256. Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c

svn commit: r249309 - head/sys/vm

2013-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 9 15:15:52 2013 New Revision: 249309 URL: http://svnweb.freebsd.org/changeset/base/249309 Log: Since now we support 256 items per slab, we need more bits for us_freecount. This grows uma_slab_head on 32-bit arches, but growth isn't significant. Taking

svn commit: r249312 - head/sys/vm

2013-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 9 17:25:15 2013 New Revision: 249312 URL: http://svnweb.freebsd.org/changeset/base/249312 Log: Swap us_freecount and us_flags, achieving same structure size as before previous commit. Submitted by: alc Modified: head/sys/vm/uma_int.h Modified:

svn commit: r249313 - head/sys/vm

2013-04-09 Thread Gleb Smirnoff
Author: glebius Date: Tue Apr 9 17:43:48 2013 New Revision: 249313 URL: http://svnweb.freebsd.org/changeset/base/249313 Log: Convert UMA code to C99 uintXX_t types. Modified: head/sys/vm/uma.h head/sys/vm/uma_core.c head/sys/vm/uma_dbg.c head/sys/vm/uma_int.h Modified:

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

2013-04-09 Thread Gleb Smirnoff
On Tue, Apr 09, 2013 at 03:20:25PM -0400, John Baldwin wrote: J J Log: J JMerge from projects/counters: J J J J Pad struct pcpu so that its size is denominator of PAGE_SIZE. This J Jis done to reduce memory waste in UMA_PCPU_ZONE zones. J J J JSponsored by:

Re: svn commit: r249318 - in head/sys: kern net netinet

2013-04-10 Thread Gleb Smirnoff
On Tue, Apr 09, 2013 at 09:02:21PM +, Andre Oppermann wrote: A Author: andre A Date: Tue Apr 9 21:02:20 2013 A New Revision: 249318 A URL: http://svnweb.freebsd.org/changeset/base/249318 A A Log: A Change certain heavily used network related mutexes and rwlocks to A reside on their own

svn commit: r249327 - in head/sys: net netinet sys

2013-04-10 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 10 08:09:25 2013 New Revision: 249327 URL: http://svnweb.freebsd.org/changeset/base/249327 Log: Fix build. Modified: head/sys/net/if_llatbl.h head/sys/net/if_var.h head/sys/netinet/in_var.h head/sys/sys/socketvar.h Modified: head/sys/net/if_llatbl.h

svn commit: r249335 - head/sys/powerpc/include

2013-04-10 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 10 16:09:45 2013 New Revision: 249335 URL: http://svnweb.freebsd.org/changeset/base/249335 Log: Since UMA_ZONE_PCPU zones put a constraint on sizeof(struct pcpu), declared as CTASSERT in MI pcpu.h, stop including all possible mutually exclusive PCPU_MD_FIELDS

svn commit: r249344 - head/lib/libkvm

2013-04-10 Thread Gleb Smirnoff
10 18:59:20 2013(r249343) +++ head/lib/libkvm/kvm_pcpu.c Wed Apr 10 20:26:53 2013(r249344) @@ -1,4 +1,5 @@ /*- + * Copyright (c) 2013 Gleb Smirnoff gleb...@freebsd.org * Copyright (c) 2010 Juniper Networks, Inc. * Copyright (c) 2009 Robert N. M. Watson * Copyright (c) 2009

svn commit: r249345 - head/usr.bin/netstat

2013-04-10 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 10 20:29:23 2013 New Revision: 249345 URL: http://svnweb.freebsd.org/changeset/base/249345 Log: Use kvm_counter_u64_fetch() to fix obtaining ipstat and tcpstat from kernel core files. Sponsored by: Nginx, Inc. Modified: head/usr.bin/netstat/inet.c

Re: svn commit: r249355 - head/lib/libkvm

2013-04-11 Thread Gleb Smirnoff
Bruce, On Thu, Apr 11, 2013 at 05:59:24PM +1000, Bruce Evans wrote: B Modified: B head/lib/libkvm/kvm.h B B Modified: head/lib/libkvm/kvm.h B == B --- head/lib/libkvm/kvm.h Thu Apr 11 07:02:27 2013

Re: svn commit: r249355 - head/lib/libkvm

2013-04-11 Thread Gleb Smirnoff
On Thu, Apr 11, 2013 at 06:49:02PM +1000, Bruce Evans wrote: B On Thu, Apr 11, 2013 at 05:59:24PM +1000, Bruce Evans wrote: B B Modified: B B head/lib/libkvm/kvm.h B B B B Modified: head/lib/libkvm/kvm.h B B

svn commit: r249358 - head/lib/libkvm

2013-04-11 Thread Gleb Smirnoff
Author: glebius Date: Thu Apr 11 10:14:28 2013 New Revision: 249358 URL: http://svnweb.freebsd.org/changeset/base/249358 Log: Fix typo. Modified: head/lib/libkvm/Makefile Modified: head/lib/libkvm/Makefile == ---

Re: svn commit: r249355 - head/lib/libkvm

2013-04-11 Thread Gleb Smirnoff
Juli, On Thu, Apr 11, 2013 at 11:05:28AM -0700, Juli Mallett wrote: J On Thu, Apr 11, 2013 at 09:07:25PM +1000, Bruce Evans wrote: J B Just routine avoidance of namespace pollution. This is easy in such a J B simple header. J J Sorry, with all respect, but I can't call including

svn commit: r249372 - head/sys/netinet

2013-04-11 Thread Gleb Smirnoff
Author: glebius Date: Thu Apr 11 18:23:56 2013 New Revision: 249372 URL: http://svnweb.freebsd.org/changeset/base/249372 Log: Fix tcp_output() so that tcpcb is updated in the same manner when an mbuf allocation fails, as in a case when ip_output() returns error. To achieve that, move

svn commit: r249400 - head/sys/netgraph/netflow

2013-04-12 Thread Gleb Smirnoff
Author: glebius Date: Fri Apr 12 08:52:19 2013 New Revision: 249400 URL: http://svnweb.freebsd.org/changeset/base/249400 Log: Attempt to clean up spacing and long lines. Modified: head/sys/netgraph/netflow/ng_netflow.h Modified: head/sys/netgraph/netflow/ng_netflow.h

svn commit: r249506 - head/sys/net

2013-04-15 Thread Gleb Smirnoff
Author: glebius Date: Mon Apr 15 13:00:42 2013 New Revision: 249506 URL: http://svnweb.freebsd.org/changeset/base/249506 Log: Switch lagg(4) statistics to counter(9). The lagg(4) is often used to bond high speed links, so basic per-packet += on statistics cause cache misses and

svn commit: r249590 - head/sys/kern

2013-04-17 Thread Gleb Smirnoff
Author: glebius Date: Wed Apr 17 18:43:33 2013 New Revision: 249590 URL: http://svnweb.freebsd.org/changeset/base/249590 Log: On non-ACPI i386 mp_ncpus is initialized at SI_SUB_CPU, and this prevents us from creating UMA_ZONE_PCPU zones earlier. As bandaid shift initialization of

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

2012-11-02 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 2 13:51:47 2012 New Revision: 242474 URL: http://svn.freebsd.org/changeset/base/242474 Log: Remove separate paragraph on ASCII messages and instead provide this information along with messages documentation, like this done in manual pages for other netgraph

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

2012-11-02 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 2 13:54:06 2012 New Revision: 242475 URL: http://svn.freebsd.org/changeset/base/242475 Log: - Fix struct and struct fields names. - Remove NGM_ATM_CARRIER_CHANGE, which was removed in r118175. Submitted by: Mamontov Roman mr.xanto gmail.com Modified:

Re: svn commit: r242520 - head/sys/kern

2012-11-03 Thread Gleb Smirnoff
On Sat, Nov 03, 2012 at 01:35:20PM -0700, Alfred Perlstein wrote: A Author: alfred A Date: Sat Nov 3 18:21:40 2012 A New Revision: 242520 A URL: http://svn.freebsd.org/changeset/base/242520 A A Log: A Retire MAXUSERS. A A Approved by: peter, meetBSD This mechanical rename to meaningless

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-11-06 Thread Gleb Smirnoff
On Tue, Nov 06, 2012 at 10:53:01PM +, Attilio Rao wrote: A no, ports/thirdy part should be adjusted on the -CURRENT ABI. btw, shouldn't the fusefs ports be patched, so that sysutils/fusefs-kmod is no longer built and installed on __FreeBSD_version = 121 ? -- Totus tuus, Glebius.

svn commit: r242693 - head/sys/netpfil/pf

2012-11-06 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 7 07:30:40 2012 New Revision: 242693 URL: http://svnweb.freebsd.org/changeset/base/242693 Log: It may happen that pfsync holds the last reference on a state. In this case keys had already been freed. If encountering such state, then just release last

svn commit: r242694 - head/sys/netpfil/pf

2012-11-06 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 7 07:35:05 2012 New Revision: 242694 URL: http://svnweb.freebsd.org/changeset/base/242694 Log: Merge rev. 1.125 from OpenBSD: date: 2009/06/12 02:03:51; author: dlg; state: Exp; lines: +59 -69 rewrite the way states from pfsync are merged into the local

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-11-07 Thread Gleb Smirnoff
On Wed, Nov 07, 2012 at 09:29:35AM +0100, Florian Smeets wrote: F On 07.11.12 08:11, Gleb Smirnoff wrote: F On Tue, Nov 06, 2012 at 10:53:01PM +, Attilio Rao wrote: F A no, ports/thirdy part should be adjusted on the -CURRENT ABI. F F btw, shouldn't the fusefs ports be patched, so

Re: svn commit: r240494 - in head: contrib/pf/man contrib/pf/pfctl include sbin/pfctl sbin/pfctl/missing share/man/man4 share/man/man5 sys/conf sys/contrib/pf sys/modules/dummynet sys/modules/ipfw sys

2012-11-13 Thread Gleb Smirnoff
On Mon, Nov 12, 2012 at 06:11:40PM -0800, David O'Brien wrote: D On Fri, Sep 14, 2012 at 11:51:51AM +, Gleb Smirnoff wrote: D Log: Do Create directory sys/netpfil, where all packet filters should D reside, and move there ipfw(4) and pf(4). Do Move most modified parts of pf out

svn commit: r243019 - head/sbin/route

2012-11-14 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 14 08:05:21 2012 New Revision: 243019 URL: http://svnweb.freebsd.org/changeset/base/243019 Log: Remove remnants of classful addressing. These magic transformations of supplied arguments is not what a modern sysadmin expect. Modified: head/sbin/route/route.c

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

2012-11-14 Thread Gleb Smirnoff
On Wed, Nov 14, 2012 at 10:30:22AM +0100, Andre Oppermann wrote: A On 14.11.2012 09:05, Gleb Smirnoff wrote: A Author: glebius A Date: Wed Nov 14 08:05:21 2012 A New Revision: 243019 A URL: http://svnweb.freebsd.org/changeset/base/243019 A A Log: A Remove remnants of classful addressing

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

2012-11-16 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 16 14:00:27 2012 New Revision: 243151 URL: http://svnweb.freebsd.org/changeset/base/243151 Log: o Remove meaningless PROTOCOLS section. o Describe passing file descriptors as separate section. - Descriptors can be passed through any protocol of the UNIX

svn commit: r243152 - head/sys/kern

2012-11-16 Thread Gleb Smirnoff
Author: glebius Date: Fri Nov 16 14:00:54 2012 New Revision: 243152 URL: http://svnweb.freebsd.org/changeset/base/243152 Log: Update comment. Modified: head/sys/kern/uipc_usrreq.c Modified: head/sys/kern/uipc_usrreq.c

svn commit: r243568 - head/etc

2012-11-26 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 26 19:42:38 2012 New Revision: 243568 URL: http://svnweb.freebsd.org/changeset/base/243568 Log: Fix typo in weekly line which made it to rotated after reaching 1 Kb. PR: conf/173857 Submitted by: Matt Smith matt xtaz.co.uk Modified:

svn commit: r243569 - head/sys/net

2012-11-26 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 26 19:45:01 2012 New Revision: 243569 URL: http://svnweb.freebsd.org/changeset/base/243569 Log: Re-initialize eh pointer after m_adj() Submitted by: Kohji Okuno okuno.kohji jp.panasonic.com Reviewed by: yongari Modified: head/sys/net/if_ethersubr.c

svn commit: r243570 - head/sys/dev/e1000

2012-11-26 Thread Gleb Smirnoff
Author: glebius Date: Mon Nov 26 20:03:57 2012 New Revision: 243570 URL: http://svnweb.freebsd.org/changeset/base/243570 Log: drbr_enqueue() awlays consumes mbuf, no matter did it fail or not. The mbuf pointer is no longer valid, so can't be reused after. Fix igb_mq_start() where

svn commit: r243601 - head/sys/net

2012-11-26 Thread Gleb Smirnoff
Author: glebius Date: Tue Nov 27 06:35:26 2012 New Revision: 243601 URL: http://svnweb.freebsd.org/changeset/base/243601 Log: Better safe than sorry: reinitialize eh after ng_ether(4) and if_bridge(4) processing, since mbuf may be modified there. Submitted by: youngari Modified:

Re: svn commit: r243627 - head/sys/kern

2012-11-28 Thread Gleb Smirnoff
Alfred, On Wed, Nov 28, 2012 at 09:39:15AM -0800, Alfred Perlstein wrote: A Personally I don't think we need any more anchors attached to people's A feet when developing FreeBSD. A A Mistakes will happen, they will happen in head. Slowing down the A process to eliminate mistakes only works

svn commit: r243857 - in head/sys/dev: age alc ale an ath bce bfe bge bm bwi bwn bxe cas ce cm cp cs ctau cx cxgb cxgb/sys cxgbe cxgbe/tom dc de e1000 ed en ep et ex fatm fe firewire fxp gem gxemul...

2012-12-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 4 09:32:43 2012 New Revision: 243857 URL: http://svnweb.freebsd.org/changeset/base/243857 Log: Mechanically substitute flags from historic mbuf allocator with malloc(9) flags in sys/dev. Modified: head/sys/dev/age/if_age.c head/sys/dev/alc/if_alc.c

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

2012-12-04 Thread Gleb Smirnoff
Xin, On Mon, Dec 03, 2012 at 11:47:32AM -0800, Xin LI wrote: X It seems that this commit breaks the following commands like this: X X route add -net 10.8/16 10.2.0.1 Thanks for report. Do you agree with attached patch? -- Totus tuus, Glebius. Index: route.c

svn commit: r243859 - head/sbin/route

2012-12-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 4 10:24:50 2012 New Revision: 243859 URL: http://svnweb.freebsd.org/changeset/base/243859 Log: No need to be root when running with -t or -d. Modified: head/sbin/route/route.c Modified: head/sbin/route/route.c

svn commit: r243860 - head/sbin/route

2012-12-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 4 11:10:01 2012 New Revision: 243860 URL: http://svnweb.freebsd.org/changeset/base/243860 Log: Flush stdout after RTM_IFANNOUNCE message. PR: bin/151600 Submitted by: Eric van Gyzen eric vangyzen.net Modified: head/sbin/route/route.c Modified:

svn commit: r243867 - head/sbin/route

2012-12-04 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 4 20:05:01 2012 New Revision: 243867 URL: http://svnweb.freebsd.org/changeset/base/243867 Log: Fix fallout from r243019, which broke parsing of shortened network prefixes. Reported and tested by: delphij Modified: head/sbin/route/route.c Modified:

svn commit: r243882 - in head/sys: arm/at91 arm/econa arm/lpc arm/ti/cpsw arm/xscale/ixp425 compat/linux compat/ndis fs/nfs fs/nfsclient fs/nfsserver kern mips/adm5120 mips/atheros mips/cavium mips...

2012-12-05 Thread Gleb Smirnoff
Author: glebius Date: Wed Dec 5 08:04:20 2012 New Revision: 243882 URL: http://svnweb.freebsd.org/changeset/base/243882 Log: Mechanically substitute flags from historic mbuf allocator with malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited

svn commit: r243940 - head/sys/netpfil/pf

2012-12-06 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 6 08:22:08 2012 New Revision: 243940 URL: http://svnweb.freebsd.org/changeset/base/243940 Log: Remove extra PFSYNC_LOCK() in pfsync_bulk_update() which lead to lock recursion. Reported by: Ian FREISLICH ianf cloudseed.co.za Modified:

svn commit: r243941 - head/sys/netpfil/pf

2012-12-06 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 6 08:32:28 2012 New Revision: 243941 URL: http://svnweb.freebsd.org/changeset/base/243941 Log: Close possible races between state deletion and sent being sent out from pfsync: - Call into pfsync_delete_state() holding the state lock. - Set the state timeout

svn commit: r243944 - head/sys/netpfil/pf

2012-12-06 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 6 08:38:14 2012 New Revision: 243944 URL: http://svnweb.freebsd.org/changeset/base/243944 Log: Rule memory garbage collecting in new pf scans only states that are on id hash. If a state has been disconnected from id hash, its rule pointers can no longer be

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

2012-12-10 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 10 13:08:14 2012 New Revision: 244082 URL: http://svnweb.freebsd.org/changeset/base/244082 Log: NGM_NETFLOW_SHOW reports IPv6 flows as well. Submitted by: Dmitry Luhtionov dmitryluhtionov gmail.com Modified: head/share/man/man4/ng_netflow.4 Modified:

svn commit: r244113 - head/sys/netpfil/pf

2012-12-11 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 11 08:37:08 2012 New Revision: 244113 URL: http://svnweb.freebsd.org/changeset/base/244113 Log: Merge 1.127 from OpenBSD, that closes a regression from 1.125 (merged as r242694): do better detection of when we have a better version of the tcp sequence

svn commit: r244157 - head/sys/netinet

2012-12-12 Thread Gleb Smirnoff
Author: glebius Date: Wed Dec 12 17:41:21 2012 New Revision: 244157 URL: http://svnweb.freebsd.org/changeset/base/244157 Log: Fix a crash in tcp_input(), that happens when mbuf has a fwd_tag on it, but later after processing and freeing the tag, we need to jump back again to the findpcb

Re: svn commit: r244112 - head/sys/kern

2012-12-13 Thread Gleb Smirnoff
On Wed, Dec 12, 2012 at 04:53:48PM -0800, Alfred Perlstein wrote: A The problem again is that not all the KASSERTS are inviolable, if you A want to do a project to split them, then please do, it would really be A helpful, as for now, they are a mis-mash of death/warnings and there are A at

Re: svn commit: r244112 - head/sys/kern

2012-12-13 Thread Gleb Smirnoff
On Wed, Dec 12, 2012 at 11:16:43PM -0800, Adrian Chadd wrote: A I think the fundamental problem here is we have some pretty different A ideas of what KASSERT should be, versus what it actually is in various A parts of the code. Yep, under we you probably meant you and Alfred. What both of you

svn commit: r244183 - in head/sys: net netinet netinet6

2012-12-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 13 11:11:15 2012 New Revision: 244183 URL: http://svnweb.freebsd.org/changeset/base/244183 Log: Fix problem in r238990. The LLE_LINKED flag should be tested prior to entering llentry_free(), and in case if we lose the race, we should simply perform

svn commit: r244184 - head/sys/netpfil/pf

2012-12-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 13 12:48:57 2012 New Revision: 244184 URL: http://svnweb.freebsd.org/changeset/base/244184 Log: Initialize state id prior to attaching state to key hash. Otherwise a race can happen, when pf_find_state() finds state via key hash, and locks id hash slot 0

svn commit: r244185 - head/sys/netpfil/pf

2012-12-13 Thread Gleb Smirnoff
Author: glebius Date: Thu Dec 13 12:51:22 2012 New Revision: 244185 URL: http://svnweb.freebsd.org/changeset/base/244185 Log: Merge rev. 1.119 from OpenBSD: date: 2009/03/31 01:21:29; author: dlg; state: Exp; lines: +9 -16 ... this also firms up some of the input parsing so

svn commit: r244202 - head/sys/netpfil/pf

2012-12-14 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 14 08:02:35 2012 New Revision: 244202 URL: http://svnweb.freebsd.org/changeset/base/244202 Log: Fix VIMAGE build broken in r244185. Submitted by: Nikolai Lifanov lifanov mail.lifanov.com Modified: head/sys/netpfil/pf/if_pfsync.c Modified:

svn commit: r244210 - head/sys/netpfil/pf

2012-12-14 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 14 13:01:16 2012 New Revision: 244210 URL: http://svnweb.freebsd.org/changeset/base/244210 Log: Fix error in r235991. No-sleep version of IFNET_RLOCK() should be used here, since we may hold the main pf rulesets rwlock. Reported by: Fleuriot Damien ml

Re: svn commit: r244112 - head/sys/kern

2012-12-15 Thread Gleb Smirnoff
On Sat, Dec 15, 2012 at 04:35:25AM -0800, Alfred Perlstein wrote: A People keep beating this drum all invariants/panics are there for a A reason, no, some happen to be bugs, and when I'm shipping code to a A customer, I may need to skip one of these buggy assertions. Yes, if you know any buggy

Re: svn commit: r244112 - head/sys/kern

2012-12-15 Thread Gleb Smirnoff
On Sat, Dec 15, 2012 at 05:29:10AM -0800, Alfred Perlstein wrote: A On 12/15/12 5:01 AM, Gleb Smirnoff wrote: A On Sat, Dec 15, 2012 at 04:35:25AM -0800, Alfred Perlstein wrote: A A People keep beating this drum all invariants/panics are there for a A A reason, no, some happen to be bugs

svn commit: r244386 - head/sys/netinet

2012-12-18 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 18 08:09:44 2012 New Revision: 244386 URL: http://svnweb.freebsd.org/changeset/base/244386 Log: Clear correct flag in INET6 case. Modified: head/sys/netinet/tcp_input.c Modified: head/sys/netinet/tcp_input.c

svn commit: r244387 - head/sys/netinet

2012-12-18 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 18 08:14:16 2012 New Revision: 244387 URL: http://svnweb.freebsd.org/changeset/base/244387 Log: Fix !INET6 build after r244365. Modified: head/sys/netinet/tcp_input.c Modified: head/sys/netinet/tcp_input.c

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

2012-12-18 Thread Gleb Smirnoff
Andrey, On Tue, Dec 18, 2012 at 08:14:16AM +, Gleb Smirnoff wrote: T Author: glebius T Date: Tue Dec 18 08:14:16 2012 T New Revision: 244387 T URL: http://svnweb.freebsd.org/changeset/base/244387 T T Log: T Fix !INET6 build after r244365. T T Modified: T head/sys/netinet/tcp_input.c T

Re: svn commit: r244389 - head/sys/dev/wtap

2012-12-18 Thread Gleb Smirnoff
Monthadar, On Tue, Dec 18, 2012 at 08:44:59AM +, Monthadar Al Jaberi wrote: M Author: monthadar M Date: Tue Dec 18 08:44:59 2012 M New Revision: 244389 M URL: http://svnweb.freebsd.org/changeset/base/244389 M M Log: M wtap should check if ieee80211_vap_setup fails. M M * If

Re: svn commit: r244389 - head/sys/dev/wtap

2012-12-18 Thread Gleb Smirnoff
On Tue, Dec 18, 2012 at 12:30:53PM +0100, Monthadar Al Jaberi wrote: M On Tue, Dec 18, 2012 at 9:53 AM, Gleb Smirnoff gleb...@freebsd.org wrote: MMonthadar, M M On Tue, Dec 18, 2012 at 08:44:59AM +, Monthadar Al Jaberi wrote: M M Author: monthadar M M Date: Tue Dec 18 08:44:59 2012 M

svn commit: r244532 - head/sys/vm

2012-12-21 Thread Gleb Smirnoff
Author: glebius Date: Fri Dec 21 10:09:45 2012 New Revision: 244532 URL: http://svnweb.freebsd.org/changeset/base/244532 Log: Comment fix: there is no ub_ptr, instead explain meaning of uz_count field verbally. Modified: head/sys/vm/uma_int.h Modified: head/sys/vm/uma_int.h

svn commit: r244665 - head/sys/netinet

2012-12-24 Thread Gleb Smirnoff
Author: glebius Date: Mon Dec 24 21:35:48 2012 New Revision: 244665 URL: http://svnweb.freebsd.org/changeset/base/244665 Log: Minor style(9) changes: - Remove declaration in initializer. - Add empty line between logical blocks. Modified: head/sys/netinet/in.c Modified:

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

2012-12-25 Thread Gleb Smirnoff
On Tue, Dec 25, 2012 at 08:38:54AM +0100, Luigi Rizzo wrote: L On Mon, Dec 24, 2012 at 09:35:49PM +, Gleb Smirnoff wrote: L Author: glebius L Date: Mon Dec 24 21:35:48 2012 L New Revision: 244665 L URL: http://svnweb.freebsd.org/changeset/base/244665 L L Log: LMinor style(9) changes

svn commit: r244678 - in head/sys: netinet netinet6

2012-12-25 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 25 13:01:58 2012 New Revision: 244678 URL: http://svnweb.freebsd.org/changeset/base/244678 Log: The SIOCSIFFLAGS ioctl handler runs if_up()/if_down() that notify all interested parties in case if interface flag IFF_UP has changed. However, not only

svn commit: r244680 - head/sys/netinet

2012-12-25 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 25 13:55:21 2012 New Revision: 244680 URL: http://svnweb.freebsd.org/changeset/base/244680 Log: Fix sysctl_handle_int() usage. Either arg1 or arg2 should be supplied, and arg2 doesn't pass size of arg1. Modified: head/sys/netinet/tcp_reass.c

svn commit: r244681 - in head: share/man/man4 sys/netinet

2012-12-25 Thread Gleb Smirnoff
Author: glebius Date: Tue Dec 25 14:08:13 2012 New Revision: 244681 URL: http://svnweb.freebsd.org/changeset/base/244681 Log: Change net.inet.carp.demotion sysctl to add the supplied value to the current demotion factor instead of assigning it. This allows external scripts to control

<    4   5   6   7   8   9   10   11   12   13   >