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>
This commit is contained in:
parent
b053122532
commit
39bedc169c
|
@ -12,7 +12,7 @@ lan966x-switch-objs := lan966x_main.o lan966x_phylink.o lan966x_port.o \
|
|||
lan966x_tc.o lan966x_mqprio.o lan966x_taprio.o \
|
||||
lan966x_tbf.o lan966x_cbs.o lan966x_ets.o \
|
||||
lan966x_tc_matchall.o lan966x_police.o lan966x_mirror.o \
|
||||
lan966x_xdp.o lan966x_vcap_impl.o
|
||||
lan966x_xdp.o lan966x_vcap_impl.o lan966x_vcap_ag_api.o
|
||||
|
||||
# Provide include files
|
||||
ccflags-y += -I$(srctree)/drivers/net/ethernet/microchip/vcap
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
#ifndef __LAN966X_VCAP_AG_API_H__
|
||||
#define __LAN966X_VCAP_AG_API_H__
|
||||
|
||||
#include "vcap_api.h"
|
||||
|
||||
extern const struct vcap_info lan966x_vcaps[];
|
||||
extern const struct vcap_statistics lan966x_vcap_stats;
|
||||
|
||||
#endif /* __LAN966X_VCAP_AG_API_H__ */
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue