]> 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)
commitefea1fbb3c75fae06e344c1da6595a8953dfa970
tree53683a6e4f062371ff812a72fedc09b18893f4d4
parent6e829673697ba3b1e9f0a834ecc5ebbd7a8e0ba7
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: eeaf89523241 ("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