]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit8b931821aa04823e2e5df0ae93937baabbd23286
treee3b58bf07eb01e217b95a0801d045cc15cc54a2e
parentc4d63c714715bc44fee3f7a818052e59216a7d8e
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: b9b7cee40579 ("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