]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Port-and-flow-policers-for-DSA'
authorDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:01 +0000 (11:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:44:01 +0000 (11:44 -0700)
commit8f816aa3851c82bf4281a219a5a68f84218c1325
tree64ff849db1040e8425463ac993dc4b5214339c41
parent84b055250da1b722c8b7d6b5fbf151a3c0ab4707
parent1506ed1067d72ffaca605fe14a2f01b38241f8f2
Merge branch 'Port-and-flow-policers-for-DSA'

Vladimir Oltean says:

====================
Port and flow policers for DSA (SJA1105, Felix/Ocelot)

This series adds support for 2 types of policers:
 - port policers, via tc matchall filter
 - flow policers, via tc flower filter
for 2 DSA drivers:
 - sja1105
 - felix/ocelot

First we start with ocelot/felix. Prior to this patch, the ocelot core
library currently only supported:
- Port policers
- Flow-based dropping and trapping
But the felix wrapper could not actually use the port policers due to
missing linkage and support in the DSA core. So one of the patches
addresses exactly that limitation by adding the missing support to the
DSA core. The other patch for felix flow policers (via the VCAP IS2
engine) is actually in the ocelot library itself, since the linkage with
the ocelot flower classifier has already been done in an earlier patch
set.

Then with the newly added .port_policer_add and .port_policer_del, we
can also start supporting the L2 policers on sja1105.

Then, for full functionality of these L2 policers on sja1105, we also
implement a more limited set of flow-based policing keys for this
switch, namely for broadcast and VLAN PCP.

Series version 1 was submitted here:
https://patchwork.ozlabs.org/cover/1263353/

Nothing functional changed in v2, only a rebase.
====================

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