net/mlx5e: en_tc, Extend peer flows to a list
authorMark Bloch <mbloch@nvidia.com>
Tue, 29 Mar 2022 14:35:22 +0000 (14:35 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 2 Jun 2023 19:10:46 +0000 (12:10 -0700)
commit953bb24ddc118a5a3021a90a8cab8eae946238e7
tree8c2609ddf0c889e704811ee36abbc44b877ad620
parent3f06760c00f56c5fe6c7f3361c2cf64becee1174
net/mlx5e: en_tc, Extend peer flows to a list

Currently, mlx5e_flow is holding a pointer to a peer_flow, in case one
was created. e.g. There is an assumption that mlx5e_flow can have only
one peer.
In order to support more than one peer, refactor mlx5e_flow to hold a
list of peer flows.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_priv.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c