]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5e: Add new prio for promiscuous mode
authorJianbo Liu <jianbol@nvidia.com>
Thu, 10 Jul 2025 13:53:44 +0000 (16:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Jul 2025 14:26:44 +0000 (07:26 -0700)
commit4c9fce56fa702059bbc5ab737265b68f79cbaac4
treef6d476b71ffa8a94d74f83aec215a0f997ca7285
parenteb41a264a3a576dc040ee37c3d9d6b7e2d9be968
net/mlx5e: Add new prio for promiscuous mode

An optimization for promiscuous mode adds a high-priority steering
table with a single catch-all rule to steer all traffic directly to
the TTC table.

However, a gap exists between the creation of this table and the
insertion of the catch-all rule. Packets arriving in this brief window
would miss as no rule was inserted yet, unnecessarily incrementing the
'rx_steer_missed_packets' counter and dropped.

This patch resolves the issue by introducing a new prio for this
table, placing it between MLX5E_TC_PRIO and MLX5E_NIC_PRIO. By doing
so, packets arriving during the window now fall through to the next
prio (at MLX5E_NIC_PRIO) instead of being dropped.

Fixes: 1c46d7409f30 ("net/mlx5e: Optimize promiscuous mode")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/1752155624-24095-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c