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