diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 21:44:59 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 21:44:59 -0500 |
| commit | 15b0669072127f282896b3bef2e9df4ec5d7264f (patch) | |
| tree | 8480e09bbc7c26cd5c9ef048b734664cb6fe76be /include/linux/netdevice.h | |
| parent | c155b914651753f843445d2f860bc00137df5d52 (diff) | |
| parent | 3537d54c0c39de5738bba8d19f128478b0b96a71 (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: (44 commits)
qlge: Fix sparse warnings for tx ring indexes.
qlge: Fix sparse warning regarding rx buffer queues.
qlge: Fix sparse endian warning in ql_hw_csum_setup().
qlge: Fix sparse endian warning for inbound packet control block flags.
qlge: Fix sparse warnings for byte swapping in qlge_ethool.c
myri10ge: print MAC and serial number on probe failure
pkt_sched: cls_u32: Fix locking in u32_change()
iucv: fix cpu hotplug
af_iucv: Free iucv path/socket in path_pending callback
af_iucv: avoid left over IUCV connections from failing connects
af_iucv: New error return codes for connect()
net/ehea: bitops work on unsigned longs
Revert "net: Fix for initial link state in 2.6.28"
tcp: Kill extraneous SPLICE_F_NONBLOCK checks.
tcp: don't mask EOF and socket errors on nonblocking splice receive
dccp: Integrate the TFRC library with DCCP
dccp: Clean up ccid.c after integration of CCID plugins
dccp: Lockless integration of CCID congestion-control plugins
qeth: get rid of extra argument after printk to dev_* conversion
qeth: No large send using EDDP for HiperSockets.
...
Diffstat (limited to 'include/linux/netdevice.h')
| -rw-r--r-- | include/linux/netdevice.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 41e1224651c..c28bbba3c23 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -313,10 +313,11 @@ struct napi_struct { | |||
| 313 | #ifdef CONFIG_NETPOLL | 313 | #ifdef CONFIG_NETPOLL |
| 314 | spinlock_t poll_lock; | 314 | spinlock_t poll_lock; |
| 315 | int poll_owner; | 315 | int poll_owner; |
| 316 | struct net_device *dev; | ||
| 317 | #endif | 316 | #endif |
| 317 | struct net_device *dev; | ||
| 318 | struct list_head dev_list; | 318 | struct list_head dev_list; |
| 319 | struct sk_buff *gro_list; | 319 | struct sk_buff *gro_list; |
| 320 | struct sk_buff *skb; | ||
| 320 | }; | 321 | }; |
| 321 | 322 | ||
| 322 | enum | 323 | enum |
| @@ -990,6 +991,9 @@ struct napi_gro_cb { | |||
| 990 | 991 | ||
| 991 | /* Number of segments aggregated. */ | 992 | /* Number of segments aggregated. */ |
| 992 | int count; | 993 | int count; |
| 994 | |||
| 995 | /* Free the skb? */ | ||
| 996 | int free; | ||
| 993 | }; | 997 | }; |
| 994 | 998 | ||
| 995 | #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) | 999 | #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) |
| @@ -1011,6 +1015,14 @@ struct packet_type { | |||
| 1011 | struct list_head list; | 1015 | struct list_head list; |
| 1012 | }; | 1016 | }; |
| 1013 | 1017 | ||
| 1018 | struct napi_gro_fraginfo { | ||
| 1019 | skb_frag_t frags[MAX_SKB_FRAGS]; | ||
| 1020 | unsigned int nr_frags; | ||
| 1021 | unsigned int ip_summed; | ||
| 1022 | unsigned int len; | ||
| 1023 | __wsum csum; | ||
| 1024 | }; | ||
| 1025 | |||
| 1014 | #include <linux/interrupt.h> | 1026 | #include <linux/interrupt.h> |
| 1015 | #include <linux/notifier.h> | 1027 | #include <linux/notifier.h> |
| 1016 | 1028 | ||
| @@ -1363,6 +1375,8 @@ extern int netif_receive_skb(struct sk_buff *skb); | |||
| 1363 | extern void napi_gro_flush(struct napi_struct *napi); | 1375 | extern void napi_gro_flush(struct napi_struct *napi); |
| 1364 | extern int napi_gro_receive(struct napi_struct *napi, | 1376 | extern int napi_gro_receive(struct napi_struct *napi, |
| 1365 | struct sk_buff *skb); | 1377 | struct sk_buff *skb); |
| 1378 | extern int napi_gro_frags(struct napi_struct *napi, | ||
| 1379 | struct napi_gro_fraginfo *info); | ||
| 1366 | extern void netif_nit_deliver(struct sk_buff *skb); | 1380 | extern void netif_nit_deliver(struct sk_buff *skb); |
| 1367 | extern int dev_valid_name(const char *name); | 1381 | extern int dev_valid_name(const char *name); |
| 1368 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); | 1382 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); |
