]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit585ef2179beb619bc49b6e5144dfe7d5e88a6e3b
tree5438101781471e218d3ed222c4d84d9c518ed54d
parentbd0de0190a176a6feb329924ef8c2a83e3e5f5f4
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