]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5e: Reduce branches in napi poll
authorTariq Toukan <tariqt@nvidia.com>
Thu, 14 May 2026 11:10:37 +0000 (14:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 May 2026 01:45:49 +0000 (18:45 -0700)
commitcc199cd1b912dfe30bb1673fb040f6464be00fa1
treec7c2f0543c8da7eab266cb58173601978e020a81
parent086abf9da661e3da9a9ef40b36963b230ec58112
net/mlx5e: Reduce branches in napi poll

Reduce the number of branches in napi poll, based on the following list
of dependencies:

1. xsk_open=t only if c->xdp and c->async_icosq.
2. c->xdpsq only if c->xdp.
3. c->xdp implies c->async_icosq.
4. ktls_rx_was_enabled implies c->async_icosq.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Link: https://patch.msgid.link/20260514111038.338251-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c