]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: QEEC: Add minimum shaper fields
authorPetr Machata <petrm@mellanox.com>
Wed, 31 Oct 2018 09:56:42 +0000 (09:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Oct 2018 19:56:58 +0000 (12:56 -0700)
commit4f7c7673381eefe08bb86ecb85ebad9fb094d54a
treee3b58bf07eb01e217b95a0801d045cc15cc54a2e
parent5b2ae7efc3a06d46ea0880f8b0b5e7dd05b2b0c2
mlxsw: reg: QEEC: Add minimum shaper fields

Add QEEC.mise (minimum shaper enable) and QEEC.min_shaper_rate to enable
configuration of minimum shaper.

Increase the QEEC length to 0x20 as well: that's the length that the
register has had for a long time now, but with the configurations that
mlxsw typically exercises, the firmware tolerated 0x1C-sized packets.
With mise=true however, FW rejects packets unless they have the full
required length.

Fixes: 375904bd61f2 ("mlxsw: reg: Add QoS ETS Element Configuration register")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h