]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Align mlx5dv_dr API vport action with FW behavior
authorShun Hao <shunh@nvidia.com>
Mon, 17 Jan 2022 12:01:12 +0000 (14:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Mar 2022 21:33:03 +0000 (13:33 -0800)
commitb5eccc39306e830f6dae7784f21f26d6dfeed349
treef457f09cfd35a2abf73582ff16ba9e0fbf92e34f
parentb9f18ca1000e4191d75485110b1529bdb32c0693
net/mlx5: DR, Align mlx5dv_dr API vport action with FW behavior

This aligns the behavior with FW when creating an FDB rule with wire
vport destination but no source port matching. Until now such rules
would fail on internal DR RX rule creation since the source and
destination are the wire vport.
The new behavior is the same as done on FW steering, if destination is
wire, we will create both TX and RX rules, but the RX packet coming from
wire will be dropped due to loopback not supported.

Signed-off-by: Shun Hao <shunh@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c