net/mlx5e: TC, Refactor mlx5e_tc_add_flow_mod_hdr() to get flow attr
authorRoi Dayan <roid@nvidia.com>
Thu, 25 Nov 2021 12:32:58 +0000 (14:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jan 2022 20:37:33 +0000 (12:37 -0800)
commitff99316700799b84e842f819a44db608557bae3e
tree406f823b380e640c33af11caacec46bf819c105f
parent8be9686d2479a12f986dfce2f792e33ab747ac0f
net/mlx5e: TC, Refactor mlx5e_tc_add_flow_mod_hdr() to get flow attr

In later commit we are going to instantiate multiple attr instances
for flow instead of single attr.
Make sure mlx5e_tc_add_flow_mod_hdr() use the correct attr and not flow->attr.

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.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h