Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tap: add support to configure tap interface host MTU size
[vpp.git]
/
src
/
vnet
/
devices
/
tap
/
tap.h
diff --git
a/src/vnet/devices/tap/tap.h
b/src/vnet/devices/tap/tap.h
index
745f9fc
..
45ff1d9
100644
(file)
--- 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_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;
/* 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;
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
} tap_interface_details_t;
typedef struct
@@
-75,6
+78,9
@@
typedef struct
/* bit-map of in-use IDs */
uword *tap_ids;
/* 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);
} tap_main_t;
void tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args);