diff options
author | 2024-10-31 14:58:56 +0200 | |
---|---|---|
committer | 2024-11-03 15:37:15 -0800 | |
commit | 355cf2749769ce7ada9afcaad8802f5ed37e88d5 (patch) | |
tree | 75f0266c7bb50e193c9ca22058355d5e62cdc35a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: move XDP_REDIRECT sq to dynamic allocation (diff) | |
download | wireguard-linux-355cf2749769ce7ada9afcaad8802f5ed37e88d5.tar.xz wireguard-linux-355cf2749769ce7ada9afcaad8802f5ed37e88d5.zip |
net/mlx5e: do not create xdp_redirect for non-uplink rep
XDP and XDP socket require extra SQ/RQ/CQs. Most of these resources
are dynamically created: no XDP program loaded, no resources are
created. One exception is the SQ/CQ created for XDP_REDRIECT, used
for other netdev to forward packet to mlx5 for transmit. The patch
disables creation of SQ and CQ used for egress XDP_REDIRECT, by
checking whether ndo_xdp_xmit is set or not.
For netdev without XDP support such as non-uplink representor, this
saves around 0.35MB of memory, per representor netdevice per channel.
Signed-off-by: William Tu <witu@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241031125856.530927-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions