aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 011eb89e9582..30f17e42c304 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -60,11 +60,6 @@ struct wireless_dev;
60#define SET_ETHTOOL_OPS(netdev,ops) \ 60#define SET_ETHTOOL_OPS(netdev,ops) \
61 ( (netdev)->ethtool_ops = (ops) ) 61 ( (netdev)->ethtool_ops = (ops) )
62 62
63#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev
64 functions are available. */
65#define HAVE_FREE_NETDEV /* free_netdev() */
66#define HAVE_NETDEV_PRIV /* netdev_priv() */
67
68/* hardware address assignment types */ 63/* hardware address assignment types */
69#define NET_ADDR_PERM 0 /* address is permanent (default) */ 64#define NET_ADDR_PERM 0 /* address is permanent (default) */
70#define NET_ADDR_RANDOM 1 /* address is generated randomly */ 65#define NET_ADDR_RANDOM 1 /* address is generated randomly */
@@ -313,7 +308,6 @@ struct header_ops {
313 const void *saddr, unsigned len); 308 const void *saddr, unsigned len);
314 int (*parse)(const struct sk_buff *skb, unsigned char *haddr); 309 int (*parse)(const struct sk_buff *skb, unsigned char *haddr);
315 int (*rebuild)(struct sk_buff *skb); 310 int (*rebuild)(struct sk_buff *skb);
316#define HAVE_HEADER_CACHE
317 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh); 311 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh);
318 void (*cache_update)(struct hh_cache *hh, 312 void (*cache_update)(struct hh_cache *hh,
319 const struct net_device *dev, 313 const struct net_device *dev,
@@ -887,7 +881,6 @@ struct netdev_tc_txq {
887 * Must return >0 or -errno if it changed dev->features itself. 881 * Must return >0 or -errno if it changed dev->features itself.
888 * 882 *
889 */ 883 */
890#define HAVE_NET_DEVICE_OPS
891struct net_device_ops { 884struct net_device_ops {
892 int (*ndo_init)(struct net_device *dev); 885 int (*ndo_init)(struct net_device *dev);
893 void (*ndo_uninit)(struct net_device *dev); 886 void (*ndo_uninit)(struct net_device *dev);
@@ -1781,8 +1774,6 @@ static inline void input_queue_tail_incr_save(struct softnet_data *sd,
1781 1774
1782DECLARE_PER_CPU_ALIGNED(struct softnet_data, softnet_data); 1775DECLARE_PER_CPU_ALIGNED(struct softnet_data, softnet_data);
1783 1776
1784#define HAVE_NETIF_QUEUE
1785
1786extern void __netif_schedule(struct Qdisc *q); 1777extern void __netif_schedule(struct Qdisc *q);
1787 1778
1788static inline void netif_schedule_queue(struct netdev_queue *txq) 1779static inline void netif_schedule_queue(struct netdev_queue *txq)
@@ -2058,10 +2049,8 @@ extern void dev_kfree_skb_irq(struct sk_buff *skb);
2058 */ 2049 */
2059extern void dev_kfree_skb_any(struct sk_buff *skb); 2050extern void dev_kfree_skb_any(struct sk_buff *skb);
2060 2051
2061#define HAVE_NETIF_RX 1
2062extern int netif_rx(struct sk_buff *skb); 2052extern int netif_rx(struct sk_buff *skb);
2063extern int netif_rx_ni(struct sk_buff *skb); 2053extern int netif_rx_ni(struct sk_buff *skb);
2064#define HAVE_NETIF_RECEIVE_SKB 1
2065extern int netif_receive_skb(struct sk_buff *skb); 2054extern int netif_receive_skb(struct sk_buff *skb);
2066extern gro_result_t dev_gro_receive(struct napi_struct *napi, 2055extern gro_result_t dev_gro_receive(struct napi_struct *napi,
2067 struct sk_buff *skb); 2056 struct sk_buff *skb);
@@ -2241,7 +2230,6 @@ extern void netif_device_attach(struct net_device *dev);
2241/* 2230/*
2242 * Network interface message level settings 2231 * Network interface message level settings
2243 */ 2232 */
2244#define HAVE_NETIF_MSG 1
2245 2233
2246enum { 2234enum {
2247 NETIF_MSG_DRV = 0x0001, 2235 NETIF_MSG_DRV = 0x0001,