]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Split TC_COUNT into ingress and egress
authorPetr Machata <petrm@mellanox.com>
Thu, 20 Sep 2018 06:21:26 +0000 (09:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 14:46:01 +0000 (07:46 -0700)
commitba54dfc71168e4203dcbe032e54492650bd08bb4
tree751dcc0f0e496840d6e8d52de2b2879c8b7db282
parent0110b03c57551d7b32d552c7a0bec7e6706bac92
mlxsw: spectrum_buffers: Split TC_COUNT into ingress and egress

Current code assumes that ingress and egress has the same number of
traffic classes. Since the introduction of MC-aware mode that assumption
hasn't held anymore, and there have been 16 TCs on the egress as opposed
to 8 on ingress.

Break the assumption of symmetry by splitting the artifacts related to
shared-buffer TC counting to ingress and egress parts.

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