diff options
author | Jason Xing <kernelxing@tencent.com> | 2025-06-23 20:01:59 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-24 17:50:04 -0700 |
commit | da7aee71616397234023e4ebd5c848a3c945f877 (patch) | |
tree | 4ca79610ba9c1675dadcd655b6dd23127be86814 /tools/testing/selftests/drivers/net/hw/rss_api.py | |
parent | a19e5812dc96e6ad3ba6740a22d0ae45b4c059d8 (diff) |
net: xsk: dpaa2: avoid repeatedly updating the global consumer
This patch avoids another update of the consumer at the end of
dpaa2_xsk_tx().
In the zero copy xmit path, two versions (batched and non-batched)
regarding how the consumer of tx ring changes are implemented in
xsk_tx_peek_release_desc_batch() that eventually updates the local
consumer to the global consumer in either of the following call trace:
1) batched mode:
xsk_tx_peek_release_desc_batch()
__xskq_cons_release()
2) non-batched mode:
xsk_tx_peek_release_desc_batch()
xsk_tx_peek_release_fallback()
xsk_tx_release()
As we can see, dpaa2_xsk_tx() doesn't need to call extra release function
to handle the sync of consumer itself.
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://patch.msgid.link/20250623120159.68374-1-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_api.py')
0 files changed, 0 insertions, 0 deletions