diff options
author | Maciej Fijalkowski <[email protected]> | 2022-01-25 17:04:40 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2022-01-27 17:25:32 +0100 |
commit | 296f13ff3854535009a185aaf8e3603266d39d94 (patch) | |
tree | 56778d3ab8c53e09bd016244850761c6c0c8c842 /tools/perf/scripts/python/stackcollapse.py | |
parent | a4e186693cbe43b88ec577be9859276c42d16b3f (diff) |
ice: xsk: Force rings to be sized to power of 2
With the upcoming introduction of batching to XSK data path,
performance wise it will be the best to have the ring descriptor count
to be aligned to power of 2.
Check if ring sizes that user is going to attach the XSK socket fulfill
the condition above. For Tx side, although check is being done against
the Tx queue and in the end the socket will be attached to the XDP
queue, it is fine since XDP queues get the ring->count setting from Tx
queues.
Suggested-by: Alexander Lobakin <[email protected]>
Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions