diff options
author | Damjan Marion <damarion@cisco.com> | 2024-10-08 20:50:56 +0200 |
---|---|---|
committer | Damjan Marion <damjan.marion@gmail.com> | 2024-11-07 16:49:49 +0100 |
commit | 61e287b9f895fa7cd9809ec74e44efee780a5aad (patch) | |
tree | 2a1f6e6f038062940d9b04dce480ed07394c9407 /src/vnet/dev/api.h | |
parent | de020ab4788d75e70f0cfea4c21f09a4716be161 (diff) |
dev: secondary interfaces support
Type: feature
Change-Id: I6cc4340431b8273022955fca1600061a722e3ace
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/dev/api.h')
-rw-r--r-- | src/vnet/dev/api.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/vnet/dev/api.h b/src/vnet/dev/api.h index 1b7bf27d62a..3e552e4326e 100644 --- a/src/vnet/dev/api.h +++ b/src/vnet/dev/api.h @@ -65,4 +65,27 @@ vnet_dev_rv_t vnet_dev_api_remove_port_if (vlib_main_t *, vnet_dev_api_remove_port_if_args_t *); +typedef struct +{ + u32 primary_sw_if_index; + vnet_dev_if_name_t intf_name; + u8 *args; + + /* return */ + u32 sw_if_index; +} vnet_dev_api_port_add_sec_if_args_t; + +vnet_dev_rv_t +vnet_dev_api_port_add_sec_if (vlib_main_t *, + vnet_dev_api_port_add_sec_if_args_t *); + +typedef struct +{ + u32 sw_if_index; +} vnet_dev_api_port_del_sec_if_args_t; + +vnet_dev_rv_t +vnet_dev_api_port_del_sec_if (vlib_main_t *, + vnet_dev_api_port_del_sec_if_args_t *); + #endif /* _VNET_DEV_API_H_ */ |