mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 11:23:09 -04:00
net/mlx5: TC, allow offload from uplink to other PF's VF
Redirecting traffic from uplink to a VF is a legal operation of
mulitport eswitch mode. Remove the limitation.
Fixes: 94db331778 ("net/mlx5: Support multiport eswitch mode")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
committed by
Saeed Mahameed
parent
a069a90554
commit
d6c13d74b5
@@ -3793,7 +3793,7 @@ static bool is_lag_dev(struct mlx5e_priv *priv,
|
||||
|
||||
static bool is_multiport_eligible(struct mlx5e_priv *priv, struct net_device *out_dev)
|
||||
{
|
||||
if (mlx5e_eswitch_uplink_rep(out_dev) &&
|
||||
if (same_hw_reps(priv, out_dev) &&
|
||||
MLX5_CAP_PORT_SELECTION(priv->mdev, port_select_flow_table) &&
|
||||
MLX5_CAP_GEN(priv->mdev, create_lag_when_not_master_up))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user