Commit 2171dc18 authored by Frank Blaschka's avatar Frank Blaschka Committed by David S. Miller

claw: convert to net_device_ops

claw convert to net_device_ops.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4edd73b5
...@@ -2816,22 +2816,26 @@ claw_free_netdevice(struct net_device * dev, int free_dev) ...@@ -2816,22 +2816,26 @@ claw_free_netdevice(struct net_device * dev, int free_dev)
* Initialize everything of the net device except the name and the * Initialize everything of the net device except the name and the
* channel structs. * channel structs.
*/ */
static const struct net_device_ops claw_netdev_ops = {
.ndo_open = claw_open,
.ndo_stop = claw_release,
.ndo_get_stats = claw_stats,
.ndo_start_xmit = claw_tx,
.ndo_change_mtu = claw_change_mtu,
};
static void static void
claw_init_netdevice(struct net_device * dev) claw_init_netdevice(struct net_device * dev)
{ {
CLAW_DBF_TEXT(2, setup, "init_dev"); CLAW_DBF_TEXT(2, setup, "init_dev");
CLAW_DBF_TEXT_(2, setup, "%s", dev->name); CLAW_DBF_TEXT_(2, setup, "%s", dev->name);
dev->mtu = CLAW_DEFAULT_MTU_SIZE; dev->mtu = CLAW_DEFAULT_MTU_SIZE;
dev->hard_start_xmit = claw_tx;
dev->open = claw_open;
dev->stop = claw_release;
dev->get_stats = claw_stats;
dev->change_mtu = claw_change_mtu;
dev->hard_header_len = 0; dev->hard_header_len = 0;
dev->addr_len = 0; dev->addr_len = 0;
dev->type = ARPHRD_SLIP; dev->type = ARPHRD_SLIP;
dev->tx_queue_len = 1300; dev->tx_queue_len = 1300;
dev->flags = IFF_POINTOPOINT | IFF_NOARP; dev->flags = IFF_POINTOPOINT | IFF_NOARP;
dev->netdev_ops = &claw_netdev_ops;
CLAW_DBF_TEXT(2, setup, "initok"); CLAW_DBF_TEXT(2, setup, "initok");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment