summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorDaniel Borkmann2016-08-05 00:11:11 +0200
committerDavid S. Miller2016-08-08 22:11:43 +0200
commita2bfe6bf09a5f38df2bd0b1734f5fdee76f9366f (patch)
tree34883fdb605c5876fcd002c33cdba8a890087d7c /include/linux/skbuff.h
parentnet/ethernet: tundra: fix dump_eth_one warning in tsi108_eth (diff)
downloadkernel-qcow2-linux-a2bfe6bf09a5f38df2bd0b1734f5fdee76f9366f.tar.gz
kernel-qcow2-linux-a2bfe6bf09a5f38df2bd0b1734f5fdee76f9366f.tar.xz
kernel-qcow2-linux-a2bfe6bf09a5f38df2bd0b1734f5fdee76f9366f.zip
bpf: also call skb_postpush_rcsum on xmit occasions
Follow-up to commit f8ffad69c9f8 ("bpf: add skb_postpush_rcsum and fix dev_forward_skb occasions") to fix an issue for dev_queue_xmit() redirect locations which need CHECKSUM_COMPLETE fixups on ingress. For the same reasons as described in f8ffad69c9f8 already, we of course also need this here, since dev_queue_xmit() on a veth device will let us end up in the dev_forward_skb() helper again to cross namespaces. Latter then calls into skb_postpull_rcsum() to pull out L2 header, so that netif_rx_internal() sees CHECKSUM_COMPLETE as it is expected. That is, CHECKSUM_COMPLETE on ingress covering L2 _payload_, not L2 headers. Also here we have to address bpf_redirect() and bpf_clone_redirect(). Fixes: 3896d655f4d4 ("bpf: introduce bpf_clone_redirect() helper") Fixes: 27b29f63058d ("bpf: add bpf_redirect() helper") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
0 files changed, 0 insertions, 0 deletions