diff options
author | 2025-03-18 12:46:06 +0100 | |
---|---|---|
committer | 2025-03-25 04:35:41 -0700 | |
commit | 9a45e193c88a55a536d7fd0ebfa29823d588c2cf (patch) | |
tree | ba6229f62c37fc48e9bd8216ddb54940b5c18b22 /scripts/gdb/linux/utils.py | |
parent | net: mvneta: Add metadata support for xdp mode (diff) | |
download | wireguard-linux-9a45e193c88a55a536d7fd0ebfa29823d588c2cf.tar.xz wireguard-linux-9a45e193c88a55a536d7fd0ebfa29823d588c2cf.zip |
net: mvpp2: Add metadata support for xdp mode
Set metadata size building the skb from xdp_buff in mvpp2 driver
mvpp2 driver sets xdp headroom to:
MVPP2_MH_SIZE + MVPP2_SKB_HEADROOM
where
MVPP2_MH_SIZE 2
MVPP2_SKB_HEADROOM min(max(XDP_PACKET_HEADROOM, NET_SKB_PAD), 224)
so the headroom is large enough to contain xdp_frame and xdp metadata.
Please note this patch is just compiled tested.
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250318-mvneta-xdp-meta-v2-2-b6075778f61f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions