diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9264139bd8df..c57088f575a3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/if_packet.h> | 30 | #include <linux/if_packet.h> |
31 | 31 | ||
32 | #ifdef __KERNEL__ | 32 | #ifdef __KERNEL__ |
33 | #include <linux/timer.h> | ||
33 | #include <asm/atomic.h> | 34 | #include <asm/atomic.h> |
34 | #include <asm/cache.h> | 35 | #include <asm/cache.h> |
35 | #include <asm/byteorder.h> | 36 | #include <asm/byteorder.h> |
@@ -38,7 +39,6 @@ | |||
38 | #include <linux/percpu.h> | 39 | #include <linux/percpu.h> |
39 | #include <linux/dmaengine.h> | 40 | #include <linux/dmaengine.h> |
40 | 41 | ||
41 | struct divert_blk; | ||
42 | struct vlan_group; | 42 | struct vlan_group; |
43 | struct ethtool_ops; | 43 | struct ethtool_ops; |
44 | struct netpoll_info; | 44 | struct netpoll_info; |
@@ -67,6 +67,10 @@ struct netpoll_info; | |||
67 | #define NET_RX_CN_HIGH 4 /* The storm is here */ | 67 | #define NET_RX_CN_HIGH 4 /* The storm is here */ |
68 | #define NET_RX_BAD 5 /* packet dropped due to kernel error */ | 68 | #define NET_RX_BAD 5 /* packet dropped due to kernel error */ |
69 | 69 | ||
70 | /* NET_XMIT_CN is special. It does not guarantee that this packet is lost. It | ||
71 | * indicates that the device will soon be dropping packets, or already drops | ||
72 | * some packets of the same priority; prompting us to send less aggressively. */ | ||
73 | #define net_xmit_eval(e) ((e) == NET_XMIT_CN? 0 : (e)) | ||
70 | #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0) | 74 | #define net_xmit_errno(e) ((e) != NET_XMIT_CN ? -ENOBUFS : 0) |
71 | 75 | ||
72 | #endif | 76 | #endif |
@@ -93,8 +97,10 @@ struct netpoll_info; | |||
93 | #endif | 97 | #endif |
94 | #endif | 98 | #endif |
95 | 99 | ||
96 | #if !defined(CONFIG_NET_IPIP) && \ | 100 | #if !defined(CONFIG_NET_IPIP) && !defined(CONFIG_NET_IPIP_MODULE) && \ |
97 | !defined(CONFIG_IPV6) && !defined(CONFIG_IPV6_MODULE) | 101 | !defined(CONFIG_NET_IPGRE) && !defined(CONFIG_NET_IPGRE_MODULE) && \ |
102 | !defined(CONFIG_IPV6_SIT) && !defined(CONFIG_IPV6_SIT_MODULE) && \ | ||
103 | !defined(CONFIG_IPV6_TUNNEL) && !defined(CONFIG_IPV6_TUNNEL_MODULE) | ||
98 | #define MAX_HEADER LL_MAX_HEADER | 104 | #define MAX_HEADER LL_MAX_HEADER |
99 | #else | 105 | #else |
100 | #define MAX_HEADER (LL_MAX_HEADER + 48) | 106 | #define MAX_HEADER (LL_MAX_HEADER + 48) |
@@ -191,7 +197,7 @@ struct hh_cache | |||
191 | * NOTE: For VLANs, this will be the | 197 | * NOTE: For VLANs, this will be the |
192 | * encapuslated type. --BLG | 198 | * encapuslated type. --BLG |
193 | */ | 199 | */ |
194 | int hh_len; /* length of header */ | 200 | u16 hh_len; /* length of header */ |
195 | int (*hh_output)(struct sk_buff *skb); | 201 | int (*hh_output)(struct sk_buff *skb); |
196 | rwlock_t hh_lock; | 202 | rwlock_t hh_lock; |
197 | 203 | ||
@@ -515,11 +521,6 @@ struct net_device | |||
515 | /* bridge stuff */ | 521 | /* bridge stuff */ |
516 | struct net_bridge_port *br_port; | 522 | struct net_bridge_port *br_port; |
517 | 523 | ||
518 | #ifdef CONFIG_NET_DIVERT | ||
519 | /* this will get initialized at each interface type init routine */ | ||
520 | struct divert_blk *divert; | ||
521 | #endif /* CONFIG_NET_DIVERT */ | ||
522 | |||
523 | /* class/net/name entry */ | 524 | /* class/net/name entry */ |
524 | struct class_device class_dev; | 525 | struct class_device class_dev; |
525 | /* space for optional statistics and wireless sysfs groups */ | 526 | /* space for optional statistics and wireless sysfs groups */ |