diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 612e0731142d..1df38bdae2ee 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -1471,11 +1471,17 @@ int macvlan_link_register(struct rtnl_link_ops *ops) | |||
1471 | }; | 1471 | }; |
1472 | EXPORT_SYMBOL_GPL(macvlan_link_register); | 1472 | EXPORT_SYMBOL_GPL(macvlan_link_register); |
1473 | 1473 | ||
1474 | static struct net *macvlan_get_link_net(const struct net_device *dev) | ||
1475 | { | ||
1476 | return dev_net(macvlan_dev_real_dev(dev)); | ||
1477 | } | ||
1478 | |||
1474 | static struct rtnl_link_ops macvlan_link_ops = { | 1479 | static struct rtnl_link_ops macvlan_link_ops = { |
1475 | .kind = "macvlan", | 1480 | .kind = "macvlan", |
1476 | .setup = macvlan_setup, | 1481 | .setup = macvlan_setup, |
1477 | .newlink = macvlan_newlink, | 1482 | .newlink = macvlan_newlink, |
1478 | .dellink = macvlan_dellink, | 1483 | .dellink = macvlan_dellink, |
1484 | .get_link_net = macvlan_get_link_net, | ||
1479 | }; | 1485 | }; |
1480 | 1486 | ||
1481 | static int macvlan_device_event(struct notifier_block *unused, | 1487 | static int macvlan_device_event(struct notifier_block *unused, |