iplink: implement support for selecting a master interface
authorJan Luebbe <jluebbe@debian.org>
Wed, 14 Feb 2018 13:05:27 +0000 (14:05 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 20 Feb 2018 18:43:32 +0000 (19:43 +0100)
commite789c3bea18181723c4ae7d761ec30926d182cfb
treea1d5abfc03412982db4d538c0ad424a46c91f4ac
parent79cda9522ad390f1bdb7ba1025b1c81bbd1613e6
iplink: implement support for selecting a master interface

Attaching an interface to a VRF is done by setting the interface's
master. Besides VRF, this can also be used for bridges.

function                                             old     new   delta
set_master                                             -     142    +142
do_iplink                                           1262    1357     +95
packed_usage                                       32546   32539      -7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 237/-7)            Total: 230 bytes

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ip.c
networking/libiproute/iplink.c
networking/tcpudp.c