diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-05-25 04:53:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-25 04:53:53 -0400 |
commit | e3804cbebb67887879102925961d41b503f7fbe3 (patch) | |
tree | 0c2290608f511bf97978767e159121e3009c56e3 /include/linux/netdevice.h | |
parent | c649c0e31d5736a4b7c5c3454182091dda4bbe62 (diff) |
net: remove COMPAT_NET_DEV_OPS
All drivers are already converted to new net_device_ops API
and nobody uses old API anymore.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index f8574e76b743..ae3c2099a04b 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -901,44 +901,6 @@ struct net_device | |||
901 | /* max exchange id for FCoE LRO by ddp */ | 901 | /* max exchange id for FCoE LRO by ddp */ |
902 | unsigned int fcoe_ddp_xid; | 902 | unsigned int fcoe_ddp_xid; |
903 | #endif | 903 | #endif |
904 | |||
905 | #ifdef CONFIG_COMPAT_NET_DEV_OPS | ||
906 | struct { | ||
907 | int (*init)(struct net_device *dev); | ||
908 | void (*uninit)(struct net_device *dev); | ||
909 | int (*open)(struct net_device *dev); | ||
910 | int (*stop)(struct net_device *dev); | ||
911 | int (*hard_start_xmit) (struct sk_buff *skb, | ||
912 | struct net_device *dev); | ||
913 | u16 (*select_queue)(struct net_device *dev, | ||
914 | struct sk_buff *skb); | ||
915 | void (*change_rx_flags)(struct net_device *dev, | ||
916 | int flags); | ||
917 | void (*set_rx_mode)(struct net_device *dev); | ||
918 | void (*set_multicast_list)(struct net_device *dev); | ||
919 | int (*set_mac_address)(struct net_device *dev, | ||
920 | void *addr); | ||
921 | int (*validate_addr)(struct net_device *dev); | ||
922 | int (*do_ioctl)(struct net_device *dev, | ||
923 | struct ifreq *ifr, int cmd); | ||
924 | int (*set_config)(struct net_device *dev, | ||
925 | struct ifmap *map); | ||
926 | int (*change_mtu)(struct net_device *dev, int new_mtu); | ||
927 | int (*neigh_setup)(struct net_device *dev, | ||
928 | struct neigh_parms *); | ||
929 | void (*tx_timeout) (struct net_device *dev); | ||
930 | struct net_device_stats* (*get_stats)(struct net_device *dev); | ||
931 | void (*vlan_rx_register)(struct net_device *dev, | ||
932 | struct vlan_group *grp); | ||
933 | void (*vlan_rx_add_vid)(struct net_device *dev, | ||
934 | unsigned short vid); | ||
935 | void (*vlan_rx_kill_vid)(struct net_device *dev, | ||
936 | unsigned short vid); | ||
937 | #ifdef CONFIG_NET_POLL_CONTROLLER | ||
938 | void (*poll_controller)(struct net_device *dev); | ||
939 | #endif | ||
940 | }; | ||
941 | #endif | ||
942 | }; | 904 | }; |
943 | #define to_net_dev(d) container_of(d, struct net_device, dev) | 905 | #define to_net_dev(d) container_of(d, struct net_device, dev) |
944 | 906 | ||