net/mlx5e: Pass attr arg for attaching/detaching encaps
authorRoi Dayan <roid@nvidia.com>
Sun, 10 Oct 2021 11:03:12 +0000 (14:03 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jan 2022 20:37:31 +0000 (12:37 -0800)
commitc118ebc98233eb1383f1adfeea4fa8e59f635088
treefd7492d76a9fbb71538c01c2a5e20c6c4b1a9e89
parent39542e234b5215dc267b425f8315747849c5e520
net/mlx5e: Pass attr arg for attaching/detaching encaps

In later commit that we will have multiple attr instances per flow
we would like to pass a specific attr instance to set encaps.

Currently the mlx5_flow object contains a single mlx5_attr instance.
However, multi table actions (e.g. CT) instantiate multiple attr instances.

Currently mlx5e_attach/detach_encap() reads the first attr instance
from the flow instance. Modify the functions to receive the attr
instance as a parameter which is set by the calling function.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c