diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-06-10 11:20:15 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-20 03:39:31 +0000 |
commit | 97d54ed43eb69f6ea731c02305ebe0ca0b1a5cc4 (patch) | |
tree | 1247bbd99b64313aa7dc9aa9fd51d822a42e31d8 /src/vnet/devices/tap/tap.h | |
parent | 3a9f11e6d93c9839c7bb0aaa62662299165123d8 (diff) |
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 <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/tap/tap.h')
-rw-r--r-- | src/vnet/devices/tap/tap.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |