]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, fix changing vf VLANID
authorAlaa Hleihel <alaa@nvidia.com>
Mon, 4 Jan 2021 10:54:40 +0000 (12:54 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 7 Jan 2021 20:22:49 +0000 (12:22 -0800)
commit94993fc6d6e88576ca066cc7450ed181393cb082
tree53683a6e4f062371ff812a72fedc09b18893f4d4
parente333604a46347240fbdb86d9c068ec5a60de656c
net/mlx5: E-Switch, fix changing vf VLANID

Adding vf VLANID for the first time, or after having cleared previously
defined VLANID works fine, however, attempting to change an existing vf
VLANID clears the rules on the firmware, but does not add new rules for
the new vf VLANID.

Fix this by changing the logic in function esw_acl_egress_lgcy_setup()
so that it will always configure egress rules.

Fixes: f4a321e905f9 ("net/mlx5: E-Switch, Refactor eswitch egress acl codes")
Signed-off-by: Alaa Hleihel <alaa@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c