diff options
author | Jesper Dangaard Brouer <[email protected]> | 2020-05-14 12:50:49 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-05-14 21:21:55 -0700 |
commit | 88eb0ee17b2ece64fcf6689a4557a5c2e7a89c4b (patch) | |
tree | 587662826d6a0920cf746c4ff3e28a5401eaefff /tools/perf/scripts/python/stackcollapse.py | |
parent | 9ce6146ec7b50718fa5ef5287f1d6561b25a5da8 (diff) |
ixgbe: Fix XDP redirect on archs with PAGE_SIZE above 4K
The ixgbe driver have another memory model when compiled on archs with
PAGE_SIZE above 4096 bytes. In this mode it doesn't split the page in
two halves, but instead increment rx_buffer->page_offset by truesize of
packet (which include headroom and tailroom for skb_shared_info).
This is done correctly in ixgbe_build_skb(), but in ixgbe_rx_buffer_flip
which is currently only called on XDP_TX and XDP_REDIRECT, it forgets
to add the tailroom for skb_shared_info. This breaks XDP_REDIRECT, for
veth and cpumap. Fix by adding size of skb_shared_info tailroom.
Maintainers notice: This fix have been queued to Jeff.
Fixes: 6453073987ba ("ixgbe: add initial support for xdp redirect")
Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Cc: Jeff Kirsher <[email protected]>
Link: https://lore.kernel.org/bpf/158945344946.97035.17031588499266605743.stgit@firesoul
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions