]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Prevent overwrite of DCB capability fields
authorIdo Schimmel <idosch@mellanox.com>
Fri, 15 Jul 2016 09:15:01 +0000 (11:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2016 21:49:51 +0000 (14:49 -0700)
commit440752b55705402061d192ab728fae5ffe8996b8
tree0fd8e9af3a48345e7e849d64c23d4bcaae706d5b
parenta99b8fc11ec6ad1a00a327e5fd161d2e0df3adfb
mlxsw: spectrum: Prevent overwrite of DCB capability fields

The number of supported traffic classes that can have ETS and PFC
simultaneously enabled is not subject to user configuration, so make
sure we always initialize them to the correct values following a set
operation.

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