]> git.baikalelectronics.ru Git - kernel.git/commit
net: use skb->csum_not_inet to identify packets needing crc32c
authorDavide Caratti <dcaratti@redhat.com>
Thu, 18 May 2017 13:44:40 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 23:21:29 +0000 (19:21 -0400)
commit0b36984ff6e853b4882cde12dd094e7ea780d1a3
tree3daa11a9bfb1185e5ad54cbabfd1515d79f42419
parent8016bada4e2800e121a769324f08a6f3123f301d
net: use skb->csum_not_inet to identify packets needing crc32c

skb->csum_not_inet carries the indication on which algorithm is needed to
compute checksum on skb in the transmit path, when skb->ip_summed is equal
to CHECKSUM_PARTIAL. If skb carries a SCTP packet and crc32c hasn't been
yet written in L4 header, skb->csum_not_inet is assigned to 1; otherwise,
assume Internet Checksum is needed and thus set skb->csum_not_inet to 0.

Suggested-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/dev.c
net/sched/act_csum.c
net/sctp/offload.c
net/sctp/output.c