diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index cabde9ab0e4a..d00ea444e0a3 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -361,17 +361,22 @@ static const struct ethtool_ops macvlan_ethtool_ops = { | |||
361 | .get_flags = macvlan_ethtool_get_flags, | 361 | .get_flags = macvlan_ethtool_get_flags, |
362 | }; | 362 | }; |
363 | 363 | ||
364 | static const struct net_device_ops macvlan_netdev_ops = { | ||
365 | .ndo_init = macvlan_init, | ||
366 | .ndo_open = macvlan_open, | ||
367 | .ndo_stop = macvlan_stop, | ||
368 | .ndo_change_mtu = macvlan_change_mtu, | ||
369 | .ndo_change_rx_flags = macvlan_change_rx_flags, | ||
370 | .ndo_set_mac_address = macvlan_set_mac_address, | ||
371 | .ndo_set_multicast_list = macvlan_set_multicast_list, | ||
372 | .ndo_validate_addr = eth_validate_addr, | ||
373 | }; | ||
374 | |||
364 | static void macvlan_setup(struct net_device *dev) | 375 | static void macvlan_setup(struct net_device *dev) |
365 | { | 376 | { |
366 | ether_setup(dev); | 377 | ether_setup(dev); |
367 | 378 | ||
368 | dev->init = macvlan_init; | 379 | dev->netdev_ops = &macvlan_netdev_ops; |
369 | dev->open = macvlan_open; | ||
370 | dev->stop = macvlan_stop; | ||
371 | dev->change_mtu = macvlan_change_mtu; | ||
372 | dev->change_rx_flags = macvlan_change_rx_flags; | ||
373 | dev->set_mac_address = macvlan_set_mac_address; | ||
374 | dev->set_multicast_list = macvlan_set_multicast_list; | ||
375 | dev->hard_start_xmit = macvlan_hard_start_xmit; | 380 | dev->hard_start_xmit = macvlan_hard_start_xmit; |
376 | dev->destructor = free_netdev; | 381 | dev->destructor = free_netdev; |
377 | dev->header_ops = &macvlan_hard_header_ops, | 382 | dev->header_ops = &macvlan_hard_header_ops, |