]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Do not assume PAUSE frames are disabled
authorIdo Schimmel <idosch@mellanox.com>
Thu, 4 Aug 2016 14:36:20 +0000 (17:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 19:57:27 +0000 (12:57 -0700)
commit5ec95f6a5a94c8653770952063e787b68456711e
treea1599f790a985bfcdfdd26ee6cce9057a1eae588
parent8eebe420a9d270dca8365199915f1aadc478e7af
mlxsw: spectrum: Do not assume PAUSE frames are disabled

When ieee_setpfc() gets called, PAUSE frames are not necessarily
disabled on the port.

Check if PAUSE frames are disabled or enabled and configure the port's
headroom buffer accordingly.

Fixes: 124c0dc1294e ("mlxsw: spectrum: Add IEEE 802.1Qbb PFC support")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c