Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121898
b: refs/heads/master
c: 54a30c9
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 20, 2008
1 parent 5bf25ab commit d5ecf4e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4456e7bdf74c9f27e2312a6f197b2da467541433
refs/heads/master: 54a30c975b6b27c0c9268461b647576b146d39bb
19 changes: 12 additions & 7 deletions trunk/drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,17 +361,22 @@ static const struct ethtool_ops macvlan_ethtool_ops = {
.get_flags = macvlan_ethtool_get_flags,
};

static const struct net_device_ops macvlan_netdev_ops = {
.ndo_init = macvlan_init,
.ndo_open = macvlan_open,
.ndo_stop = macvlan_stop,
.ndo_change_mtu = macvlan_change_mtu,
.ndo_change_rx_flags = macvlan_change_rx_flags,
.ndo_set_mac_address = macvlan_set_mac_address,
.ndo_set_multicast_list = macvlan_set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
};

static void macvlan_setup(struct net_device *dev)
{
ether_setup(dev);

dev->init = macvlan_init;
dev->open = macvlan_open;
dev->stop = macvlan_stop;
dev->change_mtu = macvlan_change_mtu;
dev->change_rx_flags = macvlan_change_rx_flags;
dev->set_mac_address = macvlan_set_mac_address;
dev->set_multicast_list = macvlan_set_multicast_list;
dev->netdev_ops = &macvlan_netdev_ops;
dev->hard_start_xmit = macvlan_hard_start_xmit;
dev->destructor = free_netdev;
dev->header_ops = &macvlan_hard_header_ops,
Expand Down

0 comments on commit d5ecf4e

Please sign in to comment.