Up to [DragonFly] / src / sys / net / ip6fw
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Parallelize ifnet.if_addrhead accessing by duplicating the list itself on each CPU, each list element points to ifaddr: - Add SI_SUB_PRE_DRIVERS before SI_SUB_DRIVERS, so action could be taken before drivers' initialization (mainly before NIC driver's if_attach()) - Move netisr_init() to the FIRST of SI_SUB_PRE_DRIVERS, so that netmsg_service_port_init() could be called in earlier stage of system initialization. - Create one thread on each CPU to propagate changes to ifnet.if_addrhead. Their thread ports are registered with netmsg_service_port_init() for port syncing operation. - Change to ifnet.if_addrhead begins in netisr0, i.e. serial of changes to ifnet.if_addrhead are serialized by netisr0 - ifaddr's refcnt is moved to its list elements, i.e. per-CPU refcnt. They are initialized to 1 instead of 0. - A magic field is added to ifaddr list element to make sure that IFAREF and IFAFREE are called on valid ifaddr list element. This field is initialized to a magic value and is wiped out once the list element's refcnt drops to 0 - To close the gap between testing and freeing, once the ifaddr list element's refcnt drops to 0, ifa_portfn(0) (a thread's port on CPU0) is poked to check whether ifaddr is referenced on other CPUs, if not, then ifaddr is freed on ifa_portfn(0) Reviewed-by: dillon@ (earlier version)
Rename printf -> kprintf in sys/ and add some defines where necessary (files which are used in userland, too).
Rename sprintf -> ksprintf Rename snprintf -> knsprintf Make allowances for source files that are compiled for both userland and the kernel.
rename sscanf -> ksscanf rename vsscanf -> kvsscanf rename fnmatch -> kfnmatch rename qsort -> kqsort
Rename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 1
* Remove (void) casts for discarded return values. * Put function types on separate lines. * Ansify function definitions. In-collaboration-with: Alexey Slynko <email@example.com>
Convert to critical sections.
GCC supports two pseudo variables to get the function name, __FUNCTION__ and __func__. The latter is C99, prefer that.
FreeBSD PR: kern/54874 ip6fw does not recognize ESP packets correctly when the packets are specified as protocol 50 (or "ESP") by the ip6fw command. For example, even if the following line is installed: add pass esp from any to any The kernel does not apply this rule to IPv6 ESP packets. Instead, we need to specify like this: add pass all from any to any ipv6options esp Submitted by: Hiroki Sato <firstname.lastname@example.org> Obtained from: FreeBSD rev 184.108.40.206 commit by email@example.com from submisssion by JINMEI Tatuya <firstname.lastname@example.org>
Change (almost) all references to tqh_first and tqe_next and tqe_prev to the correct TAILQ macros. Exceptions are contrib/ipfilter, which will be handled separately, and dev/misc/labpc, which makes some very wiered things and therefore needs much more care.
Remove usage of NTOHS / NTOHL / HTONS / HTONL. Discussed-with: hmp
Change mbug allocation flags from M_ to MB_ to avoid confusion with malloc flags. Requested by: Jeffrey Hsu
M_NOWAIT -> M_WAITOK or M_INTWAIT conversions. There is a whole lot of net code that is improperly using M_NOWAIT. Also remove now unneeded NULL checks since malloc will panic rather then return NULL when M_NULLOK is not set. Use M_INTWAIT|M_NULLOK in some cases (such as route table allocation) in order to allow malloc to return NULL when the limit for the malloc type is reached.
if_xname support Part 2/2: Convert remaining netif devices and implement full support for if_xname. Restructure struct ifnet in net/if_var.h, pulling in a few minor additional changes from current including making if_dunit an int, and making if_flags an int. Submitted-by: Max Laier <email@example.com>
kernel tree reorganization stage 1: Major cvs repository work (not logged as commits) plus a major reworking of the #include's to accomodate the relocations. * CVS repository files manually moved. Old directories left intact and empty (temporary). * Reorganize all filesystems into vfs/, most devices into dev/, sub-divide devices by function. * Begin to move device-specific architecture files to the device subdirs rather then throwing them all into, e.g. i386/include * Reorganize files related to system busses, placing the related code in a new bus/ directory. Also move cam to bus/cam though this may not have been the best idea in retrospect. * Reorganize emulation code and place it in a new emulation/ directory. * Remove the -I- compiler option in order to allow #include file localization, rename all config generated X.h files to use_X.h to clean up the conflicts. * Remove /usr/src/include (or /usr/include) dependancies during the kernel build, beyond what is normally needed to compile helper programs. * Make config create 'machine' softlinks for architecture specific directories outside of the standard <arch>/include. * Bump the config rev. WARNING! after this commit /usr/include and /usr/src/sys/compile/* should be regenerated from scratch.
Kernel Police: - Fix Mbuf/Malloc flag misuse. - Remove redundant memset() redifiniton (ng_l2tp.c)
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most ids have been removed from !lint sections and moved into comment sections.
import from FreeBSD RELENG_4 220.127.116.11