diff options
author | Edward Cree | 2017-09-19 19:45:56 +0200 |
---|---|---|
committer | David S. Miller | 2017-09-21 00:44:22 +0200 |
commit | 92dd5452c1be873a1193561f4f691763103d22ac (patch) | |
tree | 664288c91b1120f000c5217c3bfb64595acc1f82 /drivers/net/ethernet | |
parent | net: compat: assert the size of cmsg copied in is as expected (diff) | |
download | kernel-qcow2-linux-92dd5452c1be873a1193561f4f691763103d22ac.tar.gz kernel-qcow2-linux-92dd5452c1be873a1193561f4f691763103d22ac.tar.xz kernel-qcow2-linux-92dd5452c1be873a1193561f4f691763103d22ac.zip |
net: change skb->mac_header when Generic XDP calls adjust_head
Since XDP's view of the packet includes the MAC header, moving the start-
of-packet with bpf_xdp_adjust_head needs to also update the offset of the
MAC header (which is relative to skb->head, not to the skb->data that was
changed).
Without this, tcpdump sees packets starting from the old MAC header rather
than the new one, at least in my tests on the loopback device.
Fixes: b5cdae3291f7 ("net: Generic XDP")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions