diff options
| author | Tirthendu Sarkar <[email protected]> | 2023-03-10 00:26:14 +0530 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-03-09 13:11:24 -0800 |
| commit | 01aa49e31e1674e22dd9c868ca6b4b945acd621e (patch) | |
| tree | 8152577bd717cb9d79e2ed47c7f1cbd30ce37272 /tools/perf/scripts/python/bin | |
| parent | e9031f2da1aef34b0b4c659ead613c335b46ae92 (diff) | |
i40e: add xdp_buff to i40e_ring struct
Store xdp_buff on Rx ring struct in preparation for XDP multi-buffer
support. This will allow us to combine fragmented frames across
separate NAPI cycles in the same way as currently skb fragments are
handled. This means that skb pointer on Rx ring will become redundant
and will be removed in a later patch. As a consequence i40e_trace() now
uses xdp instead of skb pointer.
Truesize only needs to be calculated for page sizes bigger than 4k as it
is always half-page for 4k pages. With xdp_buff on ring, frame size can
now be set during xdp_init_buff() and need not be repopulated in each
NAPI call for 4k pages. As a consequence i40e_rx_frame_truesize() is now
used only for bigger pages.
Signed-off-by: Tirthendu Sarkar <[email protected]>
Tested-by: Chandan Kumar Rout <[email protected]> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions