diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-10-30 00:36:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-30 00:36:53 -0400 |
commit | c7c4b3b6e976b95facbb723951bdcd554a3530a4 (patch) | |
tree | 9a53a7f850eec755b3c66d4a129d31ce4a8591da /include/linux/netdevice.h | |
parent | 5b252f0c2f98df21fadf0f6cf189b87a0b938228 (diff) |
gro: Change all receive functions to return GRO result codes
This will allow drivers to adjust their receive path dynamically
based on whether GRO is being applied successfully.
Currently all in-tree callers ignore the return values of these
functions and do not need to be changed.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6e777efe149e..193b637889f9 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1483,17 +1483,17 @@ extern int netif_receive_skb(struct sk_buff *skb); | |||
1483 | extern void napi_gro_flush(struct napi_struct *napi); | 1483 | extern void napi_gro_flush(struct napi_struct *napi); |
1484 | extern gro_result_t dev_gro_receive(struct napi_struct *napi, | 1484 | extern gro_result_t dev_gro_receive(struct napi_struct *napi, |
1485 | struct sk_buff *skb); | 1485 | struct sk_buff *skb); |
1486 | extern int napi_skb_finish(gro_result_t ret, struct sk_buff *skb); | 1486 | extern gro_result_t napi_skb_finish(gro_result_t ret, struct sk_buff *skb); |
1487 | extern int napi_gro_receive(struct napi_struct *napi, | 1487 | extern gro_result_t napi_gro_receive(struct napi_struct *napi, |
1488 | struct sk_buff *skb); | 1488 | struct sk_buff *skb); |
1489 | extern void napi_reuse_skb(struct napi_struct *napi, | 1489 | extern void napi_reuse_skb(struct napi_struct *napi, |
1490 | struct sk_buff *skb); | 1490 | struct sk_buff *skb); |
1491 | extern struct sk_buff * napi_get_frags(struct napi_struct *napi); | 1491 | extern struct sk_buff * napi_get_frags(struct napi_struct *napi); |
1492 | extern int napi_frags_finish(struct napi_struct *napi, | 1492 | extern gro_result_t napi_frags_finish(struct napi_struct *napi, |
1493 | struct sk_buff *skb, | 1493 | struct sk_buff *skb, |
1494 | gro_result_t ret); | 1494 | gro_result_t ret); |
1495 | extern struct sk_buff * napi_frags_skb(struct napi_struct *napi); | 1495 | extern struct sk_buff * napi_frags_skb(struct napi_struct *napi); |
1496 | extern int napi_gro_frags(struct napi_struct *napi); | 1496 | extern gro_result_t napi_gro_frags(struct napi_struct *napi); |
1497 | 1497 | ||
1498 | static inline void napi_free_frags(struct napi_struct *napi) | 1498 | static inline void napi_free_frags(struct napi_struct *napi) |
1499 | { | 1499 | { |