OSDN Git Service

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)
commit5f95d20b3a5ed571e14f9007c4346ebac76a0f58
tree751dcc0f0e496840d6e8d52de2b2879c8b7db282
parent3a4dbfb044ea37e9cabb1e2499859e423a96ab15
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