diff options
| author | Pravin Shelar <pshelar@nicira.com> | 2011-09-12 17:12:52 -0700 |
|---|---|---|
| committer | Pravin Shelar <pshelar@nicira.com> | 2011-09-12 17:12:52 -0700 |
| commit | 9b02078077b62e4277e84c7f39382ce09986cf6b (patch) | |
| tree | ff856186d8a966ca69b98d669c655eef66723701 /vswitchd | |
| parent | 2f2df2f4dafada02f022c2900f7a17628af7a0d1 (diff) | |
| download | openvswitch-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 'vswitchd')
| -rw-r--r-- | vswitchd/bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index ba5fbc6fe..f1c306d48 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1248,7 +1248,7 @@ iface_refresh_status(struct iface *iface) iface_get_carrier(iface) ? "up" : "down"); error = netdev_get_mtu(iface->netdev, &mtu); - if (!error && mtu != INT_MAX) { + if (!error) { mtu_64 = mtu; ovsrec_interface_set_mtu(iface->cfg, &mtu_64, 1); } |
