mlxsw: spectrum_qdisc: Disable port buffer autoresize with qdiscs
authorPetr Machata <petrm@nvidia.com>
Thu, 17 Sep 2020 06:49:03 +0000 (09:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 00:01:38 +0000 (17:01 -0700)
commit509f04ca6298981860544f03bc0e8ae407678438
tree5438101781471e218d3ed222c4d84d9c518ed54d
parent5ebc6031e6794ea8409cc1d4305f104ac9784398
mlxsw: spectrum_qdisc: Disable port buffer autoresize with qdiscs

There are two interfaces to configure ETS: qdiscs and DCB. Historically,
DCB ETS configuration was projected to ingress as well, and configured port
buffers. Qdisc was not.

Keep qdiscs behaving this way, and if an offloaded qdisc is configured on a
port, move this port's headroom to a manual mode, thus allowing
configuration of port buffers through dcbnl_setbuffer.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c