Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149750
b: refs/heads/master
c: e7090e3
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent a7dc346 commit c8a863a
Show file tree
Hide file tree
Showing 2 changed files with 14 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: c2775360e82760be3ad7339a7a1442c45c35b395
refs/heads/master: e7090e347ad8bce0de35f9fe2b95e22e4ae8fbab
19 changes: 13 additions & 6 deletions trunk/drivers/net/ixp2000/ixpdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,18 @@ static int ixpdev_close(struct net_device *dev)
return 0;
}

static const struct net_device_ops ixpdev_netdev_ops = {
.ndo_open = ixpdev_open,
.ndo_stop = ixpdev_close,
.ndo_start_xmit = ixpdev_xmit,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = ixpdev_poll_controller,
#endif
};

struct net_device *ixpdev_alloc(int channel, int sizeof_priv)
{
struct net_device *dev;
Expand All @@ -279,12 +291,7 @@ struct net_device *ixpdev_alloc(int channel, int sizeof_priv)
if (dev == NULL)
return NULL;

dev->hard_start_xmit = ixpdev_xmit;
dev->open = ixpdev_open;
dev->stop = ixpdev_close;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = ixpdev_poll_controller;
#endif
dev->netdev_ops = &ixpdev_netdev_ops;

dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;

Expand Down

0 comments on commit c8a863a

Please sign in to comment.