summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
diff options
context:
space:
mode:
authorAviv Heller2018-08-23 12:47:53 +0200
committerSaeed Mahameed2018-12-14 22:28:55 +0100
commit7c34ec19e10c0d13ca2f3435fb85d2dddccad917 (patch)
tree6eaceb0e3f8dc837c2f7346577376bcce011fdf9 /drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
parentnet/mlx5: Rename mlx5_lag_is_bonded() to __mlx5_lag_is_active() (diff)
downloadkernel-qcow2-linux-7c34ec19e10c0d13ca2f3435fb85d2dddccad917.tar.gz
kernel-qcow2-linux-7c34ec19e10c0d13ca2f3435fb85d2dddccad917.tar.xz
kernel-qcow2-linux-7c34ec19e10c0d13ca2f3435fb85d2dddccad917.zip
net/mlx5: Make RoCE and SR-IOV LAG modes explicit
With the introduction of SR-IOV LAG, checking whether LAG is active is no longer good enough, since RoCE and SR-IOV LAG each entails different behavior by both the core and infiniband drivers. This patch introduces facilities to discern LAG type, in addition to mlx5_lag_is_active(). These are implemented in such a way as to allow more complex mode combinations in the future. Signed-off-by: Aviv Heller <avivh@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_tc.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_tc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
index 864f3b00d09d..53ebb5a48018 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
@@ -2718,7 +2718,7 @@ static bool is_peer_flow_needed(struct mlx5e_tc_flow *flow)
bool esw_paired = mlx5_devcom_is_paired(attr->in_mdev->priv.devcom,
MLX5_DEVCOM_ESW_OFFLOADS);
- return esw_paired && mlx5_lag_is_active(attr->in_mdev) &&
+ return esw_paired && mlx5_lag_is_sriov(attr->in_mdev) &&
(is_rep_ingress || act_is_encap);
}