]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: ocelot: add some example VCAP IS1, IS2 and ES0 tc offloads
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 2 Oct 2020 12:02:28 +0000 (15:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2020 22:40:30 +0000 (15:40 -0700)
commitacd710a37c0178db824dbcbfb2c8d9dea8fcb4da
treeccb336d32ca8e7df81f5dcd9e83e5bef7a51c9de
parentb151bb3559eb9aa9dda5685b2b4f42528a1b4a6f
selftests: ocelot: add some example VCAP IS1, IS2 and ES0 tc offloads

Provide an example script which can be used as a skeleton for offloading
TCAM rules in the Ocelot switches.

Not all actions are demoed, mostly because of difficulty to automate
this from a single board.

For example, policing. We can set up an iperf3 UDP server and client and
measure throughput at destination. But at least with DSA setups, network
namespacing the individual ports is not possible because all switch
ports are handled by the same DSA master. And we cannot assume that the
target platform (an embedded board) has 2 other non-switch generator
ports, we need to work with the generator ports as switch ports (this is
the reason why mausezahn is used, and not IP traffic like ping). When
somebody has an idea how to test policing, that can be added to this
test.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
MAINTAINERS
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh [new file with mode: 0755]
tools/testing/selftests/net/forwarding/lib.sh