]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Set up a dedicated pool for BUM traffic
authorPetr Machata <petrm@mellanox.com>
Wed, 5 Sep 2018 10:16:00 +0000 (12:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Sep 2018 14:55:43 +0000 (07:55 -0700)
commitf6771a33b9eb516a03563b680b39e80659dd2b09
treeb659bacfa8e2f40060d9b76e116cce992db99962
parente4beaa8bfb514a46cdaa2255152e8e9647ba7613
mlxsw: spectrum_buffers: Set up a dedicated pool for BUM traffic

MC-aware mode was recently enabled by mlxsw on Spectrum switches in
commit 7dc93fc45b3f ("mlxsw: spectrum: Configure MC-aware mode on mlxsw
ports"). Unfortunately, testing has shown that the fix is incomplete and
in the presented form actually makes the problem even worse, because any
amount of MC traffic causes UC disruption.

The reason for this is that currently, mlxsw configures the MC-specific
TCs (8..15) to map to pool 0. It also configures a maximum buffer size
of 0, but for MC traffic that maximum is disregarded and not part of the
quota. Therefore MC traffic is always admitted to the egress buffer.

Fix the configuration by directing the MC TCs into pool 15, which is
dedicated to MC traffic and recognized as such by the silicon.

Fixes: 7dc93fc45b3f ("mlxsw: spectrum: Configure MC-aware mode on mlxsw ports")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c