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 /lib/netdev.h | |
| 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 'lib/netdev.h')
| -rw-r--r-- | lib/netdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev.h b/lib/netdev.h index 13d2ee76e..2644708b3 100644 --- a/lib/netdev.h +++ b/lib/netdev.h @@ -100,6 +100,7 @@ int netdev_get_config(const struct netdev *, struct shash *); const char *netdev_get_name(const struct netdev *); const char *netdev_get_type(const struct netdev *); int netdev_get_mtu(const struct netdev *, int *mtup); +int netdev_set_mtu(const struct netdev *, int mtu); int netdev_get_ifindex(const struct netdev *); /* Packet send and receive. */ |
