diff options
| -rw-r--r-- | drivers/net/macvlan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 60406b01f9eb..5360f73c9817 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
| @@ -338,6 +338,8 @@ static const struct header_ops macvlan_hard_header_ops = { | |||
| 338 | .cache_update = eth_header_cache_update, | 338 | .cache_update = eth_header_cache_update, |
| 339 | }; | 339 | }; |
| 340 | 340 | ||
| 341 | static struct rtnl_link_ops macvlan_link_ops; | ||
| 342 | |||
| 341 | static int macvlan_open(struct net_device *dev) | 343 | static int macvlan_open(struct net_device *dev) |
| 342 | { | 344 | { |
| 343 | struct macvlan_dev *vlan = netdev_priv(dev); | 345 | struct macvlan_dev *vlan = netdev_priv(dev); |
| @@ -353,7 +355,8 @@ static int macvlan_open(struct net_device *dev) | |||
| 353 | goto hash_add; | 355 | goto hash_add; |
| 354 | } | 356 | } |
| 355 | 357 | ||
| 356 | if (lowerdev->features & NETIF_F_HW_L2FW_DOFFLOAD) { | 358 | if (lowerdev->features & NETIF_F_HW_L2FW_DOFFLOAD && |
| 359 | dev->rtnl_link_ops == &macvlan_link_ops) { | ||
| 357 | vlan->fwd_priv = | 360 | vlan->fwd_priv = |
| 358 | lowerdev->netdev_ops->ndo_dfwd_add_station(lowerdev, dev); | 361 | lowerdev->netdev_ops->ndo_dfwd_add_station(lowerdev, dev); |
| 359 | 362 | ||
