Skip to content

Commit

Permalink
net/mlx5e: Set port trust mode to PCP as default
Browse files Browse the repository at this point in the history
The hairpin offload code has dependency on the trust mode being PCP.

Hence we should set PCP as the default for handling cases where we are
disallowed to read the trust mode from the FW, or failed to initialize it.

Fixes: 106be53 ('net/mlx5e: Set per priority hairpin pairs')
Signed-off-by: Or Gerlitz <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
  • Loading branch information
ogerlitz authored and Saeed Mahameed committed Jul 31, 2018
1 parent 5f5991f commit 2e8e70d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ static int mlx5e_trust_initialize(struct mlx5e_priv *priv)
struct mlx5_core_dev *mdev = priv->mdev;
int err;

priv->dcbx_dp.trust_state = MLX5_QPTS_TRUST_PCP;

if (!MLX5_DSCP_SUPPORTED(mdev))
return 0;

Expand Down

0 comments on commit 2e8e70d

Please sign in to comment.