datapath: Strip down vport interface : OVS_VPORT_ATTR_MTU
authorPravin Shelar <pshelar@nicira.com>
Tue, 13 Sep 2011 00:12:52 +0000 (17:12 -0700)
committerPravin Shelar <pshelar@nicira.com>
Tue, 13 Sep 2011 00:12:52 +0000 (17:12 -0700)
commit9b02078077b62e4277e84c7f39382ce09986cf6b
treeff856186d8a966ca69b98d669c655eef66723701
parent2f2df2f4dafada02f022c2900f7a17628af7a0d1
datapath: Strip down vport interface : OVS_VPORT_ATTR_MTU

There is no need to have vport attribute MTU (OVS_VPORT_ATTR_MTU) as
linux net-dev-ioctl can be used to get/set MTU for linux device.
Following patch removes OVS_VPORT_ATTR_MTU from datapath protocol.

This patch also adds netdev_set_mtu interface. So that MTU adjustments
can be done from OVS userspace. get_mtu() interface is also changed, now
get_mtu() returns EOPNOTSUPP rather than returning 0 and setting *pmtu
to INT_MAX in case there is no MTU attribute for given device.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
12 files changed:
datapath/datapath.c
include/openvswitch/datapath-protocol.h
lib/dpif-linux.c
lib/dpif-linux.h
lib/dpif-netdev.c
lib/netdev-dummy.c
lib/netdev-linux.c
lib/netdev-provider.h
lib/netdev-vport.c
lib/netdev.c
lib/netdev.h
vswitchd/bridge.c