]> 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)
commit99278a8c248145dfa815c5db551dd5e34ad76e13
tree4c73e4d5d449cc6865b54aacb9742f29324c6cb8
parent6fc6ea8c8e031b8337667dcb4af12372660445d6
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