diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 17:25:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-08 17:25:41 -0500 |
commit | 5fbbf5f648a9c4ef99276854f05b2255d1b004d3 (patch) | |
tree | 59c9ae762c3df2800e894001b3de58c5f1972486 /include/linux | |
parent | ce279e6ec91c49f2c5f59f7492e19d39edbf8bbd (diff) | |
parent | 56cf391a9462a4897ea660a6af3662dda5ae8c84 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (84 commits)
wimax: fix kernel-doc for debufs_dentry member of struct wimax_dev
net: convert pegasus driver to net_device_ops
bnx2x: Prevent eeprom set when driver is down
net: switch kaweth driver to netdevops
pcnet32: round off carrier watch timer
i2400m/usb: wrap USB power saving in #ifdef CONFIG_PM
wimax: testing for rfkill support should also test for CONFIG_RFKILL_MODULE
wimax: fix kconfig interactions with rfkill and input layers
wimax: fix '#ifndef CONFIG_BUG' layout to avoid warning
r6040: bump release number to 0.20
r6040: warn about MAC address being unset
r6040: check PHY status when bringing interface up
r6040: make printks consistent with DRV_NAME
gianfar: Fixup use of BUS_ID_SIZE
mlx4_en: Returning real Max in get_ringparam
mlx4_en: Consider inline packets on completion
netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
qeth: convert to net_device_ops
vlan: add neigh_setup
dm9601: warn on invalid mac address
...
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/can/core.h | 2 | ||||
-rw-r--r-- | include/linux/if_vlan.h | 19 | ||||
-rw-r--r-- | include/linux/netdevice.h | 6 |
3 files changed, 26 insertions, 1 deletions
diff --git a/include/linux/can/core.h b/include/linux/can/core.h index f50785ad4781..25085cbadcfc 100644 --- a/include/linux/can/core.h +++ b/include/linux/can/core.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/skbuff.h> | 19 | #include <linux/skbuff.h> |
20 | #include <linux/netdevice.h> | 20 | #include <linux/netdevice.h> |
21 | 21 | ||
22 | #define CAN_VERSION "20081130" | 22 | #define CAN_VERSION "20090105" |
23 | 23 | ||
24 | /* increment this number each time you change some user-space interface */ | 24 | /* increment this number each time you change some user-space interface */ |
25 | #define CAN_ABI_VERSION "8" | 25 | #define CAN_ABI_VERSION "8" |
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index a5cb0c3f6dcf..f8ff918c208f 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -115,6 +115,11 @@ extern u16 vlan_dev_vlan_id(const struct net_device *dev); | |||
115 | extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, | 115 | extern int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, |
116 | u16 vlan_tci, int polling); | 116 | u16 vlan_tci, int polling); |
117 | extern int vlan_hwaccel_do_receive(struct sk_buff *skb); | 117 | extern int vlan_hwaccel_do_receive(struct sk_buff *skb); |
118 | extern int vlan_gro_receive(struct napi_struct *napi, struct vlan_group *grp, | ||
119 | unsigned int vlan_tci, struct sk_buff *skb); | ||
120 | extern int vlan_gro_frags(struct napi_struct *napi, struct vlan_group *grp, | ||
121 | unsigned int vlan_tci, | ||
122 | struct napi_gro_fraginfo *info); | ||
118 | 123 | ||
119 | #else | 124 | #else |
120 | static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev) | 125 | static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev) |
@@ -140,6 +145,20 @@ static inline int vlan_hwaccel_do_receive(struct sk_buff *skb) | |||
140 | { | 145 | { |
141 | return 0; | 146 | return 0; |
142 | } | 147 | } |
148 | |||
149 | static inline int vlan_gro_receive(struct napi_struct *napi, | ||
150 | struct vlan_group *grp, | ||
151 | unsigned int vlan_tci, struct sk_buff *skb) | ||
152 | { | ||
153 | return NET_RX_DROP; | ||
154 | } | ||
155 | |||
156 | static inline int vlan_gro_frags(struct napi_struct *napi, | ||
157 | struct vlan_group *grp, unsigned int vlan_tci, | ||
158 | struct napi_gro_fraginfo *info) | ||
159 | { | ||
160 | return NET_RX_DROP; | ||
161 | } | ||
143 | #endif | 162 | #endif |
144 | 163 | ||
145 | /** | 164 | /** |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c28bbba3c23d..114091be8872 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1373,8 +1373,14 @@ extern int netif_rx_ni(struct sk_buff *skb); | |||
1373 | #define HAVE_NETIF_RECEIVE_SKB 1 | 1373 | #define HAVE_NETIF_RECEIVE_SKB 1 |
1374 | extern int netif_receive_skb(struct sk_buff *skb); | 1374 | extern int netif_receive_skb(struct sk_buff *skb); |
1375 | extern void napi_gro_flush(struct napi_struct *napi); | 1375 | extern void napi_gro_flush(struct napi_struct *napi); |
1376 | extern int dev_gro_receive(struct napi_struct *napi, | ||
1377 | struct sk_buff *skb); | ||
1376 | extern int napi_gro_receive(struct napi_struct *napi, | 1378 | extern int napi_gro_receive(struct napi_struct *napi, |
1377 | struct sk_buff *skb); | 1379 | struct sk_buff *skb); |
1380 | extern void napi_reuse_skb(struct napi_struct *napi, | ||
1381 | struct sk_buff *skb); | ||
1382 | extern struct sk_buff * napi_fraginfo_skb(struct napi_struct *napi, | ||
1383 | struct napi_gro_fraginfo *info); | ||
1378 | extern int napi_gro_frags(struct napi_struct *napi, | 1384 | extern int napi_gro_frags(struct napi_struct *napi, |
1379 | struct napi_gro_fraginfo *info); | 1385 | struct napi_gro_fraginfo *info); |
1380 | extern void netif_nit_deliver(struct sk_buff *skb); | 1386 | extern void netif_nit_deliver(struct sk_buff *skb); |