From 97d54ed43eb69f6ea731c02305ebe0ca0b1a5cc4 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Mon, 10 Jun 2019 11:20:15 +0200 Subject: tap: add support to configure tap interface host MTU size This patch adds support to configure host mtu size using api, cli or startup.conf. Type: feature Change-Id: I8ab087d82dbe7dedc498825c1a3ea3fcb2cce030 Signed-off-by: Mohsin Kazmi --- src/vnet/devices/tap/tap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vnet/devices/tap/tap.h') diff --git a/src/vnet/devices/tap/tap.h b/src/vnet/devices/tap/tap.h index 745f9fca304..45ff1d9910e 100644 --- a/src/vnet/devices/tap/tap.h +++ b/src/vnet/devices/tap/tap.h @@ -43,6 +43,8 @@ typedef struct u8 host_ip6_prefix_len; ip6_address_t host_ip6_gw; u8 host_ip6_gw_set; + u8 host_mtu_set; + u32 host_mtu_size; /* return */ u32 sw_if_index; int rv; @@ -66,6 +68,7 @@ typedef struct u8 host_ip4_prefix_len; u8 host_ip6_addr[16]; u8 host_ip6_prefix_len; + u32 host_mtu_size; } tap_interface_details_t; typedef struct @@ -75,6 +78,9 @@ typedef struct /* bit-map of in-use IDs */ uword *tap_ids; + + /* host mtu size, configurable through startup.conf */ + int host_mtu_size; } tap_main_t; void tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args); -- cgit 1.2.3-korg