Commit 0e316f1b authored by Eugenia Emantayev's avatar Eugenia Emantayev Committed by David S. Miller

net/mlx4_en: Disable global flow control when PFC enabled

Fix a bug when FC and PFC are enabled/disabled at the same time.
According to ConnectX-3 Programmer Manual these two features are mutial
exclusive.  So make sure when enabling PFC to turn off global FC and
vise versa.  Otherwise it hurts the performance.
Signed-off-by: default avatarEugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c044e63
...@@ -170,8 +170,8 @@ static int mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev, ...@@ -170,8 +170,8 @@ static int mlx4_en_dcbnl_ieee_setpfc(struct net_device *dev,
pfc->mbc, pfc->mbc,
pfc->delay); pfc->delay);
prof->rx_pause = !!pfc->pfc_en; prof->rx_pause = !pfc->pfc_en;
prof->tx_pause = !!pfc->pfc_en; prof->tx_pause = !pfc->pfc_en;
prof->rx_ppp = pfc->pfc_en; prof->rx_ppp = pfc->pfc_en;
prof->tx_ppp = pfc->pfc_en; prof->tx_ppp = pfc->pfc_en;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment