]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5: Support matching on l4_type for ttc_table
authorJianbo Liu <jianbol@nvidia.com>
Tue, 2 Apr 2024 13:30:41 +0000 (16:30 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:47:59 +0000 (19:47 -0700)
commit137f3d50ad2a0f2e1ebe5181d6b32a5541786b99
tree23893fcef0032ec9fefd7aeafc89b64c1fa4d89d
parent8c54c89ad45a36fa5f0a3426b5e2c504e9c338ee
net/mlx5: Support matching on l4_type for ttc_table

Replace matching on TCP and UDP protocols with new l4_type field which
is parsed by steering for ttc_table. It is enabled by the
outer_l4_type or inner_l4_type bits in nic_rx or port_sel flow table
capabilities and used only if pcc_ifa2 bit in HCA capabilities is set.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240402133043.56322-10-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.h
include/linux/mlx5/device.h
include/linux/mlx5/mlx5_ifc.h