]> git.puffer.fish Git - mirror/frr.git/commit
zebra: speed ioctl read() with interfaces from various NETNS
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 29 Jan 2018 15:14:46 +0000 (16:14 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit0268f30e3cab287bb10e84f7663098ed9cbd50c7
treeb8283401dfc5824b08bc56dc7b303524634999fb
parentf62abc7d6577a44a67111b25a70d40170e2790af
zebra: speed ioctl read() with interfaces from various NETNS

When interfaces are located on different NETNS ( different VRF), then a
switch from netns context is necessary when calling setns(). The VRF
apis to switch and switch back are called, so that the ioctl will work
accordingly.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/if_netlink.c