]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: vrf: Make add_fib_rules per network namespace flag
authorDavid Ahern <dsahern@gmail.com>
Thu, 8 Jun 2017 17:31:11 +0000 (11:31 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 23:27:42 +0000 (19:27 -0400)
commit097d3c9508dc58286344e4a22b300098cf0c1566
tree41113cd0f626f9aa313c269868da2131996b283c
parent78a5a93c1eeb4e6933d1f62b33e5496d53b46c5a
net: vrf: Make add_fib_rules per network namespace flag

Commit 1aa6c4f6b8cd8 ("net: vrf: Add l3mdev rules on first device create")
adds the l3mdev FIB rule the first time a VRF device is created. However,
it only creates the rule once and only in the namespace the first device
is created - which may not be init_net. Fix by using the net_generic
capability to make the add_fib_rules flag per network namespace.

Fixes: 1aa6c4f6b8cd8 ("net: vrf: Add l3mdev rules on first device create")
Reported-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c