net: vrf: Add l3mdev rules on first device create
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 8 Jun 2016 17:55:40 +0000 (10:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jun 2016 18:36:02 +0000 (11:36 -0700)
commit1aa6c4f6b8cd84b8b36ebf43c6861ca87eab4da0
treed131da3350f06982ff304714bdb40415c1db3184
parent96c63fa7393d0a346acfe5a91e0c7d4c7782641b
net: vrf: Add l3mdev rules on first device create

Add l3mdev rule per address family when the first VRF device is
created. The rules are installed with a default preference of 1000.
Users can replace the default rule as desired.

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