diff options
author | Alexander Lobakin <[email protected]> | 2021-12-08 15:06:58 +0100 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2022-01-31 09:46:05 -0800 |
commit | 45a34ca68070e34e09d5bf4309f7f1f286a27fc7 (patch) | |
tree | cfc1e0aec3b76f930b557ec54751635b39aeb951 /tools/perf/scripts/python/syscall-counts.py | |
parent | dc44572d195e10ec41a03e09b3b5addab4af5cea (diff) |
ice: respect metadata on XSK Rx to skb
For now, if the XDP prog returns XDP_PASS on XSK, the metadata will
be lost as it doesn't get copied to the skb.
Copy it along with the frame headers. Account its size on skb
allocation, and when copying just treat it as a part of the frame
and do a pull after to "move" it to the "reserved" zone.
net_prefetch() xdp->data_meta and align the copy size to speed-up
memcpy() a little and better match ice_construct_skb().
Fixes: 2d4238f55697 ("ice: Add support for AF_XDP")
Suggested-by: Jesper Dangaard Brouer <[email protected]>
Suggested-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Alexander Lobakin <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Tested-by: Kiran Bhandare <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions