]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Enable-MC-aware-mode-for-mlxsw-ports'
authorDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:28:22 +0000 (17:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 00:28:22 +0000 (17:28 -0700)
commitffbed385b311c047966d88318df2db6ca9eb5c55
treec191db40b820235e7cd6708608bc1de6949cdd33
parent73fde74c4fd7f22765fc4a4f5862a566aa3993bf
parent7dc93fc45b3f542a73bac8da5882b85a290cd7b1
Merge branch 'mlxsw-Enable-MC-aware-mode-for-mlxsw-ports'

Ido Schimmel says:

====================
mlxsw: Enable MC-aware mode for mlxsw ports

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>