diff options
author | Davide Caratti <dcaratti@redhat.com> | 2017-05-18 16:44:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-20 02:21:29 +0300 |
commit | 219f1d79871257e9603f504dce0fe8ebf47aad08 (patch) | |
tree | 71816a805b465589c6fc35771307de49bc801354 /include/linux/netdevice.h | |
parent | b72b5bf6a8fc9065f270ae135bbd47abb9d96790 (diff) | |
download | linux-219f1d79871257e9603f504dce0fe8ebf47aad08.tar.xz |
sk_buff: remove support for csum_bad in sk_buff
This bit was introduced with commit 5a21232983aa ("net: Support for
csum_bad in skbuff") to reduce the stack workload when processing RX
packets carrying a wrong Internet Checksum. Up to now, only one driver and
GRO core are setting it.
Suggested-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index abbc72e09f11..c1611ace5336 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2573,9 +2573,7 @@ static inline void skb_gro_incr_csum_unnecessary(struct sk_buff *skb) if (__skb_gro_checksum_validate_needed(skb, zero_okay, check)) \ __ret = __skb_gro_checksum_validate_complete(skb, \ compute_pseudo(skb, proto)); \ - if (__ret) \ - __skb_mark_checksum_bad(skb); \ - else \ + if (!__ret) \ skb_gro_incr_csum_unnecessary(skb); \ __ret; \ }) |