]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Disable global flow control when PFC enabled
authorEugenia Emantayev <eugenia@mellanox.com>
Wed, 21 Aug 2013 07:08:56 +0000 (10:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 19:19:26 +0000 (12:19 -0700)
commit91e66102851430281c05c22ffc740f532989ac2c
tree4c73e4d5d449cc6865b54aacb9742f29324c6cb8
parentd5accc9e3f042c511f02f417a24d2ffc89ca5ebc
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: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c