Skip to content

Commit

Permalink
mlx5: azure fix for dpdk 20_02 the link is not stable
Browse files Browse the repository at this point in the history
Signed-off-by: Hanoh Haim <[email protected]>
  • Loading branch information
hhaim committed Jun 3, 2020
1 parent 24d022f commit d403d97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dpdk/drivers/net/mlx5/mlx5_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,16 @@ mlx5_link_update_unlocked_gs(struct rte_eth_dev *dev,
dev->data->port_id, strerror(rte_errno));
return ret;
}
#ifdef TREX_PATCH
// in case of Azure + failsafe it should have a speed
dev_link.link_speed = (ecmd->speed == UINT32_MAX) ? ETH_SPEED_NUM_10G :
ecmd->speed;
#else

dev_link.link_speed = (ecmd->speed == UINT32_MAX) ? ETH_SPEED_NUM_NONE :
ecmd->speed;
#endif

sc = ecmd->link_mode_masks[0] |
((uint64_t)ecmd->link_mode_masks[1] << 32);
priv->link_speed_capa = 0;
Expand Down

0 comments on commit d403d97

Please sign in to comment.