diff options
author | Steen Hegelund <steen.hegelund@microchip.com> | 2022-10-20 15:08:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-24 11:37:42 +0200 |
commit | e8145e0685beee49dcb36cb4e1d9b00bf0d57bea (patch) | |
tree | b36aac4755751ee83e508197781ab9457656e8df /drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c | |
parent | net: microchip: sparx5: Adding initial VCAP API support (diff) | |
download | linux-e8145e0685beee49dcb36cb4e1d9b00bf0d57bea.tar.xz linux-e8145e0685beee49dcb36cb4e1d9b00bf0d57bea.zip |
net: microchip: sparx5: Adding IS2 VCAP model to VCAP API
This provides the Sparx5 Ingress Stage 2 (IS2) model and adds it to the
VCAP control instance that will be provided to the VCAP API.
The Sparx5 IS2 C code model is generated from the Sparx5 RTL design model.
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c')
-rw-r--r-- | drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c b/drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c index 8df7cba77a28..68f6fed80556 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c @@ -13,6 +13,7 @@ #include "vcap_api.h" #include "sparx5_main_regs.h" #include "sparx5_main.h" +#include "sparx5_vcap_ag_api.h" /* Allocate a vcap control and vcap instances and configure the system */ int sparx5_vcap_init(struct sparx5 *sparx5) @@ -28,6 +29,9 @@ int sparx5_vcap_init(struct sparx5 *sparx5) return -ENOMEM; sparx5->vcap_ctrl = ctrl; + /* select the sparx5 VCAP model */ + ctrl->vcaps = sparx5_vcaps; + ctrl->stats = &sparx5_vcap_stats; return 0; } |