Date: Fri, 22 May 2009 22:09:00 +0000 (UTC) From: Marko Zec <zec@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_vimage.c src/sys/net if.c if_var.h src/sys/sys vimage.h Message-ID: <200905222209.n4MM9RHk096011@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
zec 2009-05-22 22:09:00 UTC
FreeBSD src repository
Modified files:
sys/kern kern_vimage.c
sys/net if.c if_var.h
sys/sys vimage.h
Log:
SVN rev 192605 on 2009-05-22 22:09:00Z by zec
Introduce the if_vmove() function, which will be used in the future
for reassigning ifnets from one vnet to another.
if_vmove() works by calling a restricted subset of actions normally
executed by if_detach() on an ifnet in the current vnet, and then
switches to the target vnet and executes an appropriate subset of
if_attach() actions there.
if_attach() and if_detach() have become wrapper functions around
if_attach_internal() and if_detach_internal(), where the later
variants have an additional argument, a flag indicating whether a
full attach or detach sequence is to be executed, or only a
restricted subset suitable for moving an ifnet from one vnet to
another. Hence, if_vmove() will not call if_detach() and if_attach()
directly, but will call the if_detach_internal() and
if_attach_internal() variants instead, with the vmove flag set.
While here, staticize ifnet_setbyindex() since it is not referenced
from outside of sys/net/if.c.
Also rename ifccnt field in struct vimage to ifcnt, and do some minor
whitespace garbage collection where appropriate.
This change should have no functional impact on nooptions VIMAGE kernel
builds.
Reviewed by: bz, rwatson, brooks?
Approved by: julian (mentor)
Revision Changes Path
1.7 +1 -1 src/sys/kern/kern_vimage.c
1.329 +177 -82 src/sys/net/if.c
1.140 +1 -1 src/sys/net/if_var.h
1.24 +1 -1 src/sys/sys/vimage.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905222209.n4MM9RHk096011>
