summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-11-25 10:50:05 +0100
committerPaolo Abeni <pabeni@redhat.com>2022-11-29 13:08:23 +0100
commit39bedc169cff3f9320ba58339e82eec85cee140d (patch)
treea5428a2cbc6072a16c96ec0b6223a8d99cb513fb /drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
parentb053122532d7aad88e4424f9e483fc2ad5b4cee0 (diff)
net: lan966x: Add is2 vcap model to vcap API.
This provides the lan966x is2 model and adds it to the vcap control instance that will be provided to the vcap API. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c')
-rw-r--r--drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
index 8d89cfcb8502..aac821cd611e 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
#include "lan966x_main.h"
+#include "lan966x_vcap_ag_api.h"
#include "vcap_api.h"
int lan966x_vcap_init(struct lan966x *lan966x)
@@ -11,6 +12,9 @@ int lan966x_vcap_init(struct lan966x *lan966x)
if (!ctrl)
return -ENOMEM;
+ ctrl->vcaps = lan966x_vcaps;
+ ctrl->stats = &lan966x_vcap_stats;
+
lan966x->vcap_ctrl = ctrl;
return 0;