]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit0e316f1b9bd86261fb3283b3ac2eeebd5ef56f1b
tree4c73e4d5d449cc6865b54aacb9742f29324c6cb8
parent5c044e6368995e6590b616aa0043fe03670aefaa
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