Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135300
b: refs/heads/master
c: 8fd17f2
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2009
1 parent 7f59548 commit baa599c
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 225ddf498cc99ead1d11ed1aaf1887e24e1007fa
refs/heads/master: 8fd17f2e6c973efdb2e3fcb5026d204441dd01fd
18 changes: 11 additions & 7 deletions trunk/drivers/net/sunvnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,16 @@ static int __devinit vnet_port_alloc_tx_bufs(struct vnet_port *port)
static LIST_HEAD(vnet_list);
static DEFINE_MUTEX(vnet_list_mutex);

static const struct net_device_ops vnet_ops = {
.ndo_open = vnet_open,
.ndo_stop = vnet_close,
.ndo_set_multicast_list = vnet_set_rx_mode,
.ndo_set_mac_address = vnet_set_mac_addr,
.ndo_tx_timeout = vnet_tx_timeout,
.ndo_change_mtu = vnet_change_mtu,
.ndo_start_xmit = vnet_start_xmit,
};

static struct vnet * __devinit vnet_new(const u64 *local_mac)
{
struct net_device *dev;
Expand Down Expand Up @@ -1040,15 +1050,9 @@ static struct vnet * __devinit vnet_new(const u64 *local_mac)
INIT_LIST_HEAD(&vp->list);
vp->local_mac = *local_mac;

dev->open = vnet_open;
dev->stop = vnet_close;
dev->set_multicast_list = vnet_set_rx_mode;
dev->set_mac_address = vnet_set_mac_addr;
dev->tx_timeout = vnet_tx_timeout;
dev->netdev_ops = &vnet_ops;
dev->ethtool_ops = &vnet_ethtool_ops;
dev->watchdog_timeo = VNET_TX_TIMEOUT;
dev->change_mtu = vnet_change_mtu;
dev->hard_start_xmit = vnet_start_xmit;

err = register_netdev(dev);
if (err) {
Expand Down

0 comments on commit baa599c

Please sign in to comment.