[ovs-git] Open vSwitch: datapath: Strip down vport interface : OVS_VPORT_ATTR_MTU (master)

dev at openvswitch.org dev at openvswitch.org
Tue Sep 13 00:15:11 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  9b02078077b62e4277e84c7f39382ce09986cf6b (commit)
      from  2f2df2f4dafada02f022c2900f7a17628af7a0d1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9b02078077b62e4277e84c7f39382ce09986cf6b
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=9b02078077b62e4277e84c7f39382ce09986cf6b
Author: Pravin Shelar <pshelar at nicira.com>
		
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 at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/datapath.c                     |    8 ------
 include/openvswitch/datapath-protocol.h |    7 +----
 lib/dpif-linux.c                        |   10 --------
 lib/dpif-linux.h                        |    1 -
 lib/dpif-netdev.c                       |    4 +-
 lib/netdev-dummy.c                      |   11 +++++++++
 lib/netdev-linux.c                      |   38 +++++++++++++++++++++++++-----
 lib/netdev-provider.h                   |    8 +++++-
 lib/netdev-vport.c                      |   20 ++++++++--------
 lib/netdev.c                            |   29 ++++++++++++++++++-----
 lib/netdev.h                            |    1 +
 vswitchd/bridge.c                       |    2 +-
 12 files changed, 88 insertions(+), 51 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list