diff options
author | Tom Herbert <therbert@google.com> | 2014-08-28 06:26:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-30 05:41:11 +0200 |
commit | 77cffe23c1f88835f6bd7b47bfa0c060c2969828 (patch) | |
tree | 5ba7913e3c831eee16f1c115d83392102d024e67 /drivers/net/vxlan.c | |
parent | net: Allocate a new 16 bits for flags in skbuff (diff) | |
download | linux-77cffe23c1f88835f6bd7b47bfa0c060c2969828.tar.xz linux-77cffe23c1f88835f6bd7b47bfa0c060c2969828.zip |
net: Clarification of CHECKSUM_UNNECESSARY
This patch:
- Clarifies the specific requirements of devices returning
CHECKSUM_UNNECESSARY (comments in skbuff.h).
- Adds csum_level field to skbuff. This is used to express how
many checksums are covered by CHECKSUM_UNNECESSARY (stores n - 1).
This replaces the overloading of skb->encapsulation, that field is
is now only used to indicate inner headers are valid.
- Change __skb_checksum_validate_needed to "consume" each checksum
as indicated by csum_level as layers of the the packet are parsed.
- Remove skb_pop_rcv_encapsulation, no longer needed in the new
csum_level model.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index beb377b2d4b7..67527f3d3be2 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1158,8 +1158,6 @@ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb) if (!vs) goto drop; - skb_pop_rcv_encapsulation(skb); - vs->rcv(vs, skb, vxh->vx_vni); return 0; |