aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/claw.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c
index f5e618562c5f..3cb387f45b61 100644
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -2816,22 +2816,26 @@ claw_free_netdevice(struct net_device * dev, int free_dev)
2816 * Initialize everything of the net device except the name and the 2816 * Initialize everything of the net device except the name and the
2817 * channel structs. 2817 * channel structs.
2818 */ 2818 */
2819static const struct net_device_ops claw_netdev_ops = {
2820 .ndo_open = claw_open,
2821 .ndo_stop = claw_release,
2822 .ndo_get_stats = claw_stats,
2823 .ndo_start_xmit = claw_tx,
2824 .ndo_change_mtu = claw_change_mtu,
2825};
2826
2819static void 2827static void
2820claw_init_netdevice(struct net_device * dev) 2828claw_init_netdevice(struct net_device * dev)
2821{ 2829{
2822 CLAW_DBF_TEXT(2, setup, "init_dev"); 2830 CLAW_DBF_TEXT(2, setup, "init_dev");
2823 CLAW_DBF_TEXT_(2, setup, "%s", dev->name); 2831 CLAW_DBF_TEXT_(2, setup, "%s", dev->name);
2824 dev->mtu = CLAW_DEFAULT_MTU_SIZE; 2832 dev->mtu = CLAW_DEFAULT_MTU_SIZE;
2825 dev->hard_start_xmit = claw_tx;
2826 dev->open = claw_open;
2827 dev->stop = claw_release;
2828 dev->get_stats = claw_stats;
2829 dev->change_mtu = claw_change_mtu;
2830 dev->hard_header_len = 0; 2833 dev->hard_header_len = 0;
2831 dev->addr_len = 0; 2834 dev->addr_len = 0;
2832 dev->type = ARPHRD_SLIP; 2835 dev->type = ARPHRD_SLIP;
2833 dev->tx_queue_len = 1300; 2836 dev->tx_queue_len = 1300;
2834 dev->flags = IFF_POINTOPOINT | IFF_NOARP; 2837 dev->flags = IFF_POINTOPOINT | IFF_NOARP;
2838 dev->netdev_ops = &claw_netdev_ops;
2835 CLAW_DBF_TEXT(2, setup, "initok"); 2839 CLAW_DBF_TEXT(2, setup, "initok");
2836 return; 2840 return;
2837} 2841}