]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sparx5: add new VCAP constants to match data
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 1 Nov 2024 07:09:09 +0000 (08:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Nov 2024 12:31:08 +0000 (13:31 +0100)
commit8caa21e4e4ed4ed8bebb95f47e724bf78883679a
tree33bda4acec37d4c6285c1e45f51efe828a91b93a
parent8f5a812efff8495ba0df93239b62d008925b37d1
net: sparx5: add new VCAP constants to match data

In preparation for lan969x VCAP support, add the following three new
VCAP constants to match data:

    - vcaps_cfg (contains configuration data for each VCAP).

    - vcaps (contains auto-generated information about VCAP keys and
      actions).

    - vcap_stats: (contains auto-generated string names of all the keys
      and actions)

Add these constants to the Sparx5 match data constants and use them to
initialize the VCAP's in sparx5_vcap_init().

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/sparx5/sparx5_main.c
drivers/net/ethernet/microchip/sparx5/sparx5_main.h
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_ag_api.h
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c