]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Fix cloned flow attr instance dests are not zeroed
authorRoi Dayan <roid@nvidia.com>
Wed, 26 Oct 2022 13:51:47 +0000 (14:51 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Oct 2022 18:06:56 +0000 (11:06 -0700)
commita65dadc7724e1099aeb6bd082dba794bed2bc9d1
tree65756195a506d2401374353a9bfd3f2dce71fb55
parent4a8ea970530205920d158b9e07096c0ab8d9c678
net/mlx5e: TC, Fix cloned flow attr instance dests are not zeroed

On multi table split the driver creates a new attr instance with
data being copied from prev attr instance zeroing action flags.
Also need to reset dests properties to avoid incorrect dests per attr.

Fixes: eab22a3adb09 ("net/mlx5e: Create new flow attr for multi table actions")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20221026135153.154807-10-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c