summaryrefslogtreecommitdiff
path: root/lib/dpif-linux.h
diff options
context:
space:
mode:
authorPravin Shelar <pshelar@nicira.com>2011-09-12 17:12:52 -0700
committerPravin Shelar <pshelar@nicira.com>2011-09-12 17:12:52 -0700
commit9b02078077b62e4277e84c7f39382ce09986cf6b (patch)
treeff856186d8a966ca69b98d669c655eef66723701 /lib/dpif-linux.h
parent2f2df2f4dafada02f022c2900f7a17628af7a0d1 (diff)
downloadopenvswitch-9b02078077b62e4277e84c7f39382ce09986cf6b.tar.gz
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>
Diffstat (limited to 'lib/dpif-linux.h')
-rw-r--r--lib/dpif-linux.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/dpif-linux.h b/lib/dpif-linux.h
index 3a2c816ab..c673beeb3 100644
--- a/lib/dpif-linux.h
+++ b/lib/dpif-linux.h
@@ -36,7 +36,6 @@ struct dpif_linux_vport {
const char *name; /* OVS_VPORT_ATTR_NAME. */
const struct rtnl_link_stats64 *stats; /* OVS_VPORT_ATTR_STATS. */
const uint8_t *address; /* OVS_VPORT_ATTR_ADDRESS. */
- int mtu; /* OVS_VPORT_ATTR_MTU. */
const struct nlattr *options; /* OVS_VPORT_ATTR_OPTIONS. */
size_t options_len;
int ifindex; /* OVS_VPORT_ATTR_IFINDEX. */