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)
commit25c904b59aaf4816337acd415514b0c47715f604
tree53683a6e4f062371ff812a72fedc09b18893f4d4
parentb544011f0e58ce43c40105468d6dc67f980a0c7a
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: ea651a86d468 ("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