diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-20 00:51:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 01:42:40 -0500 |
commit | 54a30c975b6b27c0c9268461b647576b146d39bb (patch) | |
tree | d1b6264dec1e8ab3e9ad37557d3c57a6a81f946b /drivers/net/macvlan.c | |
parent | 4456e7bdf74c9f27e2312a6f197b2da467541433 (diff) |
macvlan: convert to net_device_ops
Convert to net_device_ops function table.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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, |