Changeset 33506


Ignore:
Timestamp:
2012-09-22T14:29:23+02:00 (5 years ago)
Author:
hauke
Message:

[packages] switch: warn if ndo_do_ioctl is not implemented in the Ethernet driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/src/switch-robo.c

    r33464 r33506  
    268268        if ((robo.dev = dev_get_by_name(&init_net, devname)) == NULL) { 
    269269                printk("No such device\n"); 
     270                return 1; 
     271        } 
     272        if (!robo.dev->netdev_ops || !robo.dev->netdev_ops->ndo_do_ioctl) { 
     273                printk("ndo_do_ioctl not implemented in ethernet driver\n"); 
    270274                return 1; 
    271275        } 
Note: See TracChangeset for help on using the changeset viewer.