]> 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)
commit8641bca00a5e3ad666bc7589639b60a6eb249e41
tree0fd8e9af3a48345e7e849d64c23d4bcaae706d5b
parent2d147412f9f4f466480191ec623bdf46df410624
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: d94efc6e07e1 ("mlxsw: spectrum: Add IEEE 802.1Qaz ETS support")
Fixes: 124c0dc1294e ("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