Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] mlxsw: Enable MC-aware mode for mlxsw ports
@ 2018-08-05  6:03 Ido Schimmel
  2018-08-05  6:03 ` [PATCH net-next 1/3] mlxsw: reg: Add QoS Switch Traffic Class Table is Multicast-Aware Register Ido Schimmel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ido Schimmel @ 2018-08-05  6:03 UTC (permalink / raw)
  To: netdev; +Cc: davem, jiri, petrm, mlxsw, Ido Schimmel

Petr says:

Due to an issue in Spectrum chips, when unicast traffic shares the same
queue as BUM traffic, and there is a congestion, the BUM traffic is
admitted to the queue anyway, thus pushing out all UC traffic. In order
to give unicast traffic precedence over BUM traffic, configure
multicast-aware mode on all ports.

Under multicast-aware regime, when assigning traffic class to a packet,
the switch doesn't merely take the value prescribed by the QTCT
register. For BUM traffic, it instead assigns that value plus 8. That
limits the number of available TCs, but since mlxsw currently only uses
the lower eight anyway, it is no real loss.

The two TCs (UC and MC one) are then mapped to the same subgroup and
strictly prioritized so that UC traffic is preferred in case of
congestion.

In patch #1, introduce a new register, QTCTM, which enables the
multicast-aware mode.

In patch #2, fix a typo in related code.

In patch #3, set up TCs and QTCTM to enable multicast-aware mode.

Petr Machata (3):
  mlxsw: reg: Add QoS Switch Traffic Class Table is Multicast-Aware
    Register
  mlxsw: spectrum: Fix a typo
  mlxsw: spectrum: Configure MC-aware mode on mlxsw ports

 drivers/net/ethernet/mellanox/mlxsw/reg.h     | 37 +++++++++++++++++++
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 29 ++++++++++++++-
 2 files changed, 65 insertions(+), 1 deletion(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-06  2:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-05  6:03 [PATCH net-next 0/3] mlxsw: Enable MC-aware mode for mlxsw ports Ido Schimmel
2018-08-05  6:03 ` [PATCH net-next 1/3] mlxsw: reg: Add QoS Switch Traffic Class Table is Multicast-Aware Register Ido Schimmel
2018-08-05  6:03 ` [PATCH net-next 2/3] mlxsw: spectrum: Fix a typo Ido Schimmel
2018-08-05  6:03 ` [PATCH net-next 3/3] mlxsw: spectrum: Configure MC-aware mode on mlxsw ports Ido Schimmel
2018-08-06  0:29 ` [PATCH net-next 0/3] mlxsw: Enable MC-aware mode for " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox