aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/marvell/pp2/pp2.h
diff options
context:
space:
mode:
authorJianlin Lv <Jianlin.Lv@arm.com>2019-09-27 09:35:41 +0800
committerDamjan Marion <dmarion@me.com>2019-10-07 20:22:00 +0000
commit859b59133c143b09fed86af1d409d320fa45424f (patch)
treef06e0a48070ce080c893f8b673574d5addacf586 /src/plugins/marvell/pp2/pp2.h
parent3a1ef47c39eacdb2177cedca48db543d1c514f9c (diff)
api: Add API support for marvell PP2 plugin
Support create/delete interface with PP2 api Type: feature Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Change-Id: Ia9c0ac0f237fd9f71f5480d736d6bcabee763fff
Diffstat (limited to 'src/plugins/marvell/pp2/pp2.h')
-rw-r--r--src/plugins/marvell/pp2/pp2.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/marvell/pp2/pp2.h b/src/plugins/marvell/pp2/pp2.h
index 93b95aa134b..f8fb78f50be 100644
--- a/src/plugins/marvell/pp2/pp2.h
+++ b/src/plugins/marvell/pp2/pp2.h
@@ -78,6 +78,9 @@ typedef struct
{
mrvl_pp2_if_t *interfaces;
mrvl_pp2_per_thread_data_t *per_thread_data;
+
+ /* API message ID base */
+ u16 msg_id_base;
} mrvl_pp2_main_t;
extern vnet_device_class_t mrvl_pp2_device_class;
@@ -90,12 +93,14 @@ typedef struct
u16 tx_q_sz;
/* return */
- int rv;
+ i32 rv;
+ u32 sw_if_index;
clib_error_t *error;
} mrvl_pp2_create_if_args_t;
void mrvl_pp2_create_if (mrvl_pp2_create_if_args_t * args);
void mrvl_pp2_delete_if (mrvl_pp2_if_t * dfif);
+clib_error_t *mrvl_pp2_plugin_api_hookup (vlib_main_t * vm);
/* output.c */