]> git.baikalelectronics.ru Git - kernel.git/commit
net: add skb_pop_rcv_encapsulation
authorTom Herbert <therbert@google.com>
Sun, 15 Jun 2014 06:24:28 +0000 (23:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jun 2014 08:00:50 +0000 (01:00 -0700)
commit33e0c89967a1a251422732408192090207d75a8e
tree8ad2ebd487bfd56a49f680061c078dff2f196af2
parent49363ff61a40bb845f63924847e02031e423a321
net: add skb_pop_rcv_encapsulation

This function is used by UDP encapsulation protocols in RX when
crossing encapsulation boundary. If ip_summed is set to
CHECKSUM_UNNECESSARY and encapsulation is not set, change to
CHECKSUM_NONE since the checksum has not been validated within the
encapsulation. Clears csum_valid by the same rationale.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h