aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ethernet/ethernet.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-10-28 07:56:15 -0700
committerOle Trøan <otroan@employees.org>2019-10-29 07:55:34 +0000
commit669f4e3416282ef022e6c59d09656b0563e5aae6 (patch)
tree70eb6c3cf3321b1cfdde60c2136929e7bcba1f2b /src/vnet/ethernet/ethernet.h
parentb7c23058e5253c5a4df1d0b3c2b882fa529704eb (diff)
ethernet: VNET API to create sub-interfaces
Type: refactor Change-Id: I37899a9c1c2b0790bee90b84aec6b51cdd5236b4 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/ethernet.h')
-rw-r--r--src/vnet/ethernet/ethernet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/ethernet/ethernet.h b/src/vnet/ethernet/ethernet.h
index 821a576ddf5..cde6fb90038 100644
--- a/src/vnet/ethernet/ethernet.h
+++ b/src/vnet/ethernet/ethernet.h
@@ -445,6 +445,9 @@ clib_error_t *next_by_ethertype_register (next_by_ethertype_t * l3_next,
int vnet_create_loopback_interface (u32 * sw_if_indexp, u8 * mac_address,
u8 is_specified, u32 user_instance);
int vnet_delete_loopback_interface (u32 sw_if_index);
+int vnet_create_sub_interface (u32 sw_if_index, u32 id,
+ u32 flags, u16 inner_vlan_id,
+ u16 outer_vlan_id, u32 * sub_sw_if_index);
int vnet_delete_sub_interface (u32 sw_if_index);
// Perform ethernet subinterface classification table lookups given