]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
Merge r204497, r204499 from head to stable/8:
authorrwatson <rwatson@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Jan 2011 19:46:36 +0000 (19:46 +0000)
committerrwatson <rwatson@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Jan 2011 19:46:36 +0000 (19:46 +0000)
commit678909e511bac8e39b1320eb77e75f549f6618e3
tree68c544598bd09a9067cee2ed0c5f1fd5352793a5
parenta6d9242a8245d53cc834e1353ad080f0d44b65b2
Merge r204497, r204499 from head to stable/8:

  Changes to support crashdump analysis of netisr:

  - Rename the netisr protocol registration array, 'np' to 'netisr_proto',
    in order to reduce the chances of symbol name collisions.  It remains
    statically defined, but it will be looked up by netstat(1).

  - Move certain internal structure definitions from netisr.c to
    netisr_internal.h so that netstat(1) can find them.  They remain
    private, and should not be used for any other purpose (for example,
    they should not be used by kernel modules, which must instead use the
    public interfaces in netisr.h).

  - Store a kernel-compiled version of NETISR_MAXPROT in the global variable
    netisr_maxprot, and export via a sysctl, so that it is available for use
    by netstat(1).  This is especially important for crashdump
    interpretation, where the size of the workstream structure is determined
    by the maximum number of protocols compiled into the kernel.

  Sponsored by:   Juniper Networks

  Whitespace tweak.

git-svn-id: svn://svn.freebsd.org/base/stable/8@217457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/netisr.c
sys/net/netisr_internal.h [new file with mode: 0644]