MTU: set interface mtu tap 90/890/2
authorMohsin Kazmi <sykazmi@cisco.com>
Sun, 24 Apr 2016 16:53:42 +0000 (18:53 +0200)
committerDamjan Marion <damarion@cisco.com>
Tue, 26 Apr 2016 16:43:30 +0000 (16:43 +0000)
commitf2ba9aadbb627dfdf99c0a13e9dbf9fc0b15cb20
treec2d77937e672acca7f8d0e6fab2fe249b1eacfc8
parente39a7b8347b1055cca6e9cfadcfeca23f8236eb9
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>
vnet/vnet/ethernet/interface.c
vnet/vnet/interface.h
vnet/vnet/interface_cli.c
vnet/vnet/unix/tapcli.c
vnet/vnet/unix/tapcli.h