Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149749
b: refs/heads/master
c: c277536
h: refs/heads/master
i:
  149747: 6c41b9b
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent f25a096 commit a7dc346
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: a1de966682551debbe690672e760487cc555c05f
refs/heads/master: c2775360e82760be3ad7339a7a1442c45c35b395
17 changes: 11 additions & 6 deletions trunk/drivers/net/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,16 @@ static const struct ethtool_ops ops = {
.get_link = veth_get_link,
};

static const struct net_device_ops veth_netdev_ops = {
.ndo_open = veth_open,
.ndo_stop = veth_close,
.ndo_start_xmit = veth_start_xmit,
.ndo_change_mtu = veth_change_mtu,
.ndo_set_multicast_list = veth_set_multicast_list,
.ndo_set_mac_address = NULL,
.ndo_validate_addr = eth_validate_addr,
};

static struct net_device *veth_probe_one(int vlan,
struct vio_dev *vio_dev)
{
Expand Down Expand Up @@ -1067,12 +1077,7 @@ static struct net_device *veth_probe_one(int vlan,

memcpy(&port->mac_addr, mac_addr, ETH_ALEN);

dev->open = veth_open;
dev->hard_start_xmit = veth_start_xmit;
dev->stop = veth_close;
dev->change_mtu = veth_change_mtu;
dev->set_mac_address = NULL;
dev->set_multicast_list = veth_set_multicast_list;
dev->netdev = &veth_netdev_ops;
SET_ETHTOOL_OPS(dev, &ops);

SET_NETDEV_DEV(dev, vdev);
Expand Down

0 comments on commit a7dc346

Please sign in to comment.