]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Do not override PAUSE settings
authorIdo Schimmel <idosch@mellanox.com>
Thu, 4 Aug 2016 14:36:21 +0000 (17:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 19:57:27 +0000 (12:57 -0700)
commit311d5b5752436c40034b7540c7e729b5b81d0361
treecc4ebf5f3c07d203bbbf08ced2a67c241de2c894
parente6c38cdc02d0d96284d00d9c157740a42f131000
mlxsw: spectrum: Do not override PAUSE settings

The PFCC register is used to configure both PAUSE and PFC frames.
Therefore, when PFC frames are disabled we must make sure we don't
mistakenly also disable PAUSE frames (which might be enabled).

Fix this by packing the PFCC register with the current PAUSE settings.

Note that this register is also accessed via ethtool ops, but there we
are guaranteed to have PFC disabled.

Fixes: 3b0b1a1fd83d ("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