lkml.org 
[lkml]   [2022]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next 0/4] TC protocol all support in Sparx5 IS2 VCAP
Date
This provides support for the TC flower filters 'protocol all' clause in
the Sparx5 IS2 VCAP.

It builds on top of the initial IS2 VCAP support found in these series:

https://lore.kernel.org/all/20221020130904.1215072-1-steen.hegelund@microchip.com/
https://lore.kernel.org/all/20221109114116.3612477-1-steen.hegelund@microchip.com/
https://lore.kernel.org/all/20221111130519.1459549-1-steen.hegelund@microchip.com/
https://lore.kernel.org/all/20221117213114.699375-1-steen.hegelund@microchip.com/

Functionality:
==============

As the configuration for the Sparx5 IS2 VCAP consists of one (or more)
keyset(s) for each lookup/port per traffic classification, it is not
always possible to cover all protocols with just one ordinary VCAP rule.

To improve this situation the driver will try to find out what keysets a
rule will need to cover a TC flower "protocol all" filter and then compare
this set of keysets to what the hardware is currently configured for.

In case multiple keysets are needed then the driver can create a rule per
rule size (e.g. X6 and X12) and use a mask on the keyset type field to
allow the VCAP to match more than one keyset with just one rule.

This is possible because the keysets that have the same size typically has
many keys in common, so the VCAP rule keys can make a common match.

The result is that one TC filter command may create multiple IS2 VCAP rules
of different sizes that have a type field with a masked type id.

Delivery:
=========

This is current plan for delivering the full VCAP feature set of Sparx5:

- Sparx5 IS0 VCAP support
- TC policer and drop action support (depends on the Sparx5 QoS support
upstreamed separately)
- Sparx5 ES0 VCAP support
- TC flower template support
- TC matchall filter support for mirroring and policing ports
- TC flower filter mirror action support
- Sparx5 ES2 VCAP support


Steen Hegelund (4):
net: microchip: sparx5: Support for copying and modifying rules in the
API
net: microchip: sparx5: Support for TC protocol all
net: microchip: sparx5: Support for displaying a list of keysets
net: microchip: sparx5: Add VCAP filter keys KUNIT test

.../microchip/sparx5/sparx5_tc_flower.c | 209 +++++++++++++++++-
.../microchip/sparx5/sparx5_vcap_impl.c | 18 +-
.../microchip/sparx5/sparx5_vcap_impl.h | 13 ++
.../net/ethernet/microchip/vcap/vcap_api.c | 185 +++++++++++++++-
.../ethernet/microchip/vcap/vcap_api_client.h | 22 +-
.../microchip/vcap/vcap_api_debugfs.c | 98 ++++----
.../microchip/vcap/vcap_api_debugfs_kunit.c | 20 +-
.../ethernet/microchip/vcap/vcap_api_kunit.c | 200 ++++++++++++++++-
.../microchip/vcap/vcap_api_private.h | 4 -
9 files changed, 708 insertions(+), 61 deletions(-)

--
2.38.1

\
 
 \ /
  Last update: 2022-11-22 16:02    [W:0.048 / U:1.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site