]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: lan969x: add VCAP configuration data
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 1 Nov 2024 07:09:12 +0000 (08:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Nov 2024 12:31:08 +0000 (13:31 +0100)
commit1091487dc7435532a04210faeaaf1eb5ac0721d0
treedd3d8f5d0ce00942c64c7b3f8662fbafb2c31b06
parent7ef750e490dc89fad227dbcab8274c417139f796
net: lan969x: add VCAP configuration data

Add configuration data (for consumption by the VCAP API) for the four
VCAP's that we are going to support. The following VCAP's will be
supported:

 - VCAP CLM: (also known as IS0) is part of the analyzer and enables
   frame classification using VCAP functionality.

 - VCAP IS2: is part of ANA_ACL and enables access control lists, using
   VCAP functionality.

 - VCAP ES0: is part of the rewriter and enables rewriting of frames
   using VCAP functionality.

 - VCAP ES2: is part of EACL and enables egress access control lists
   using VCAP functionality

The two VCAP's: CLM and IS2 use shared resources from the SUPER VCAP.
The SUPER VCAP is a shared pool of 6 blocks that can be distributed
freely among CLM and IS2.  Each block in the pool has 3,072 addresses
with entries, actions, and counters. ES0 and ES2 does not use shared
resources.

In the configuration data for lan969x CLM uses blocks 2-4 with a total
of 6 lookups. IS2 uses blocks 0-1 with a total of 4 lookups.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/lan969x/Makefile
drivers/net/ethernet/microchip/lan969x/lan969x.c
drivers/net/ethernet/microchip/lan969x/lan969x.h
drivers/net/ethernet/microchip/lan969x/lan969x_vcap_impl.c [new file with mode: 0644]