Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127767
b: refs/heads/master
c: 0a0b9d2
h: refs/heads/master
i:
  127765: 27b5c67
  127763: 9bd9770
  127759: 774b303
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 6, 2009
1 parent 58d3e76 commit 8c26de5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: 76288b4e573e06318fda65678052cfbde98fed1d
refs/heads/master: 0a0b9d2edc3d7b56386dd980f7d17eaaad15cf6a
17 changes: 12 additions & 5 deletions trunk/drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,16 @@ static void xennet_uninit(struct net_device *dev)
gnttab_free_grant_references(np->gref_rx_head);
}

static const struct net_device_ops xennet_netdev_ops = {
.ndo_open = xennet_open,
.ndo_uninit = xennet_uninit,
.ndo_stop = xennet_close,
.ndo_start_xmit = xennet_start_xmit,
.ndo_change_mtu = xennet_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev)
{
int i, err;
Expand Down Expand Up @@ -1161,12 +1171,9 @@ static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev
goto exit_free_tx;
}

netdev->open = xennet_open;
netdev->hard_start_xmit = xennet_start_xmit;
netdev->stop = xennet_close;
netdev->netdev_ops = &xennet_netdev_ops;

netif_napi_add(netdev, &np->napi, xennet_poll, 64);
netdev->uninit = xennet_uninit;
netdev->change_mtu = xennet_change_mtu;
netdev->features = NETIF_F_IP_CSUM;

SET_ETHTOOL_OPS(netdev, &xennet_ethtool_ops);
Expand Down

0 comments on commit 8c26de5

Please sign in to comment.