]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sparx5: expose some sparx5 VCAP symbols
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 1 Nov 2024 07:09:07 +0000 (08:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Nov 2024 12:31:08 +0000 (13:31 +0100)
commit9bdb67b53f3f2c702ef8bf4723c3d2c5523aba9b
tree63962b896adaefad049903f52e5df3b1f4fe91e9
parent7af3a6558cb415216f3d2199ea2cb99d8344835d
net: sparx5: expose some sparx5 VCAP symbols

In preparation for lan969x VCAP support, expose the following symbols for
use by the lan969x VCAP implementation:

- The symbols SPARX5_*_LOOKUPS defines the number of lookups in each
  VCAP instance.  These are the same for lan969x. Move them to the
  header file.

- The struct sparx5_vcap_inst encapsulates information about a single
  VCAP instance. Move this struct to the header file and declare the
  sparx5_vcap_inst_cfg as extern.

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