diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2016-04-24 18:53:42 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-04-26 16:43:30 +0000 |
commit | f2ba9aadbb627dfdf99c0a13e9dbf9fc0b15cb20 (patch) | |
tree | c2d77937e672acca7f8d0e6fab2fe249b1eacfc8 /vnet/vnet/interface.h | |
parent | e39a7b8347b1055cca6e9cfadcfeca23f8236eb9 (diff) |
MTU: set interface mtu tap
This patch introduces standard command line 'set interface mtu' for setting the MTU
for tap devices. It allows user to set the mtu in between 68 to 65535 bytes
aligned to what linux kernel supports for tun/tap devices.
Right now tapcli set the same MTU size for each tap interface. But it should be set
and configure to per interface rather than per tap instance.
Change-Id: I81b7f3ad95ca56d585907ff8f51d9935a428e01b
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'vnet/vnet/interface.h')
-rw-r--r-- | vnet/vnet/interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vnet/vnet/interface.h b/vnet/vnet/interface.h index fdf23a6bd74..2829a0ccfb3 100644 --- a/vnet/vnet/interface.h +++ b/vnet/vnet/interface.h @@ -292,6 +292,12 @@ typedef struct vnet_hw_interface_t { /* Maximum transmit rate for this interface in bits/sec. */ f64 max_rate_bits_per_sec; + /* Smallest packet size supported by this interface. */ + u32 min_supported_packet_bytes; + + /* Largest packet size supported by this interface. */ + u32 max_supported_packet_bytes; + /* Smallest packet size for this interface. */ u32 min_packet_bytes; |