]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/net/ifb.c
netdev: add more functions to netdevice ops
[mirror_ubuntu-bionic-kernel.git] / drivers / net / ifb.c
index 363a166df8fb8239f83b82dfd05d651f8cf1b8f9..60a263001933a53e48e32d28f7adc7dc8914d437 100644 (file)
@@ -138,15 +138,15 @@ resched:
 }
 
 static const struct net_device_ops ifb_netdev_ops = {
-       .ndo_validate_addr = eth_validate_addr,
        .ndo_open       = ifb_open,
        .ndo_stop       = ifb_close,
+       .ndo_start_xmit = ifb_xmit,
+       .ndo_validate_addr = eth_validate_addr,
 };
 
 static void ifb_setup(struct net_device *dev)
 {
        /* Initialize the device structure. */
-       dev->hard_start_xmit = ifb_xmit;
        dev->destructor = free_netdev;
        dev->netdev_ops = &ifb_netdev_ops;