]> git.baikalelectronics.ru Git - kernel.git/commit
vrf: ndo_add|del_slave drop unnecessary checks
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 19 Aug 2015 03:27:10 +0000 (06:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 20:01:57 +0000 (13:01 -0700)
commit05fc310090c1f4126fa2f49801e7c4480123a91d
tree31469786ba4ba2c8999290fe13d6a000e8a7a2ac
parentb2124300cbd1b7a84ddb1caf1230ebe61134b6ad
vrf: ndo_add|del_slave drop unnecessary checks

When ndo_add|del_slave ops are used, they're taken from the respective
master device's netdev ops, so if the master device is a VRF only then
the VRF ops will get called thus no need to check the type of the
master.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c