]> 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)
commit3cdb398b9b0187908a172c98d5d22ef06d30ecd0
tree751dcc0f0e496840d6e8d52de2b2879c8b7db282
parentf9427ff963aedba34e43683f0af5b5ad8a9db213
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