[ovs-dev] [PATCH 2/2] configure: add configure option to disable building brcompat

2012-03-09 Thread Chris Wright
This adds ability to do: ./configure --disable-brcompat to disable building userspace and kernel module associated with providing linux bridge compatibility. Signed-off-by: Chris Wright --- configure.ac|1 + datapath/Makefile.am|2 ++ datapath/linux/Kb

[ovs-dev] [PATCH 1/2] datapath: split out linux/Modules.mk

2012-03-09 Thread Chris Wright
This creates a linux/Module-openvswitch.mk and a linux/Module-brcompat.mk out of linux/Modules.mk. This makes it easier to subsequently disable building the brcompat module. It's split rather than adding conditionals to the single Modules.mk file because it is used both in automake and build stag

[ovs-dev] [PATCH 0/2] configure option to disable building brcompat

2012-03-09 Thread Chris Wright
This short series adds ability to disable building brcompat user and kernel space bits. I've done some light testing to verify it's doing what I expected, but may have missed some subtleties of the build system. thanks, -chris Chris Wright (2): datapath: split out linux/Modules.mk configure:

Re: [ovs-dev] [PATCH] ovs-pki: Implement --version option.

2012-03-09 Thread Gurucharan Shetty
On Fri, Mar 9, 2012 at 4:22 PM, Ben Pfaff wrote: > Reported-by: Gurucharan Shetty > Signed-off-by: Ben Pfaff > --- >  utilities/ovs-pki.in |    7 ++- >  1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in > index 0255251..ac1de33 1007

[ovs-dev] [PATCH] tests: Skip "strings at least 2 characters long" test for narrow Python.

2012-03-09 Thread Ben Pfaff
Narrow Python can't handle Unicode characters outside the BMP, so skip the test. Reported-by: Michael Shigorin Signed-off-by: Ben Pfaff --- tests/ovsdb-data.at |7 ++- tests/ovsdb.at | 10 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/ovsdb-data

[ovs-dev] [PATCH] ovs-pki: Implement --version option.

2012-03-09 Thread Ben Pfaff
Reported-by: Gurucharan Shetty Signed-off-by: Ben Pfaff --- utilities/ovs-pki.in |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index 0255251..ac1de33 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -1,6

Re: [ovs-dev] [bug663051 00/15] Fix many lintian warnings

2012-03-09 Thread Ben Pfaff
Simon, will you review these patches? Thanks, Ben. On Fri, Mar 09, 2012 at 03:40:10PM -0800, Ethan Jackson wrote: > Who would be the best person to review this Ben? I'm happy to do so, > though I know nothing about debian so am unlikely to be very helpful. > > Ethan > > On Fri, Mar 9, 2012 at

Re: [ovs-dev] [bug663051 00/15] Fix many lintian warnings

2012-03-09 Thread Ethan Jackson
Who would be the best person to review this Ben? I'm happy to do so, though I know nothing about debian so am unlikely to be very helpful. Ethan On Fri, Mar 9, 2012 at 15:17, Ben Pfaff wrote: > Thomas Goirand passed along a number of lintian warnings, plus > fixes (which is very much appreciated

[ovs-dev] Bug#663051: Bug#663051: Bug#663051: Lots of (sometimes serious) lintian errors

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 04:50:32AM +0800, Thomas Goirand wrote: > On 03/09/2012 03:22 AM, Ben Pfaff wrote: > > On Fri, Mar 09, 2012 at 01:47:45AM +0800, Thomas Goirand wrote: > >> As I understand, you are also upstream for openvswitch. If that is the > >> case, then best would be to have the man pa

Re: [ovs-dev] [bug663051 11/15] debian: Avoid duplicate calls to update-rc.d in post{inst, rm}.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 03:18:07PM -0800, Ben Pfaff wrote: > Found by lintian. > > Reported-by: Thomas Goirand > Signed-off-by: Ben Pfaff This patch is wrong. Please ignore this one. I will revise it. The rest of the series remains relevant. ___ de

[ovs-dev] Bug#663051: Bug#663051: Bug#663051: Lots of (sometimes serious) lintian errors

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:06:03AM +0800, Thomas Goirand wrote: > >> E: openvswitch-datapath-dkms: python-script-but-no-python-dep > >> usr/src/openvswitch-1.4.0/build-aux/check-structs > >> E: openvswitch-datapath-dkms: python-script-but-no-python-dep > >> usr/src/openvswitch-1.4.0/build-aux/ext

[ovs-dev] Bug#663051: Bug#663051: Bug#663051: Lots of (sometimes serious) lintian errors

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 01:47:45AM +0800, Thomas Goirand wrote: > At the end, I did work on the packaging of openvswitch. Thank you very much! I converted your patches to a series of commits and sent them out to ovs-dev for review. I believe that you are CCed on most of them, but you can view th

[ovs-dev] [bug663051 15/15] ovsdb-doc: Use minus sign in negative numbers in nroff output.

2012-03-09 Thread Ben Pfaff
ovs-vswitchd.conf.db.5 has autogenerated text "at least -1" in one place. This '-' should be a minus sign, but ovsdb-doc was generating it as a hyphen. Found by lintian. Reported-by: Thomas Goirand Signed-off-by: Ben Pfaff --- ovsdb/ovsdb-doc.in |9 ++--- python/ovs/db/types.py |

[ovs-dev] [bug663051 14/15] ovsdb-doc: Convert '-' preceding a number as a minus sign, not a hyphen.

2012-03-09 Thread Ben Pfaff
ovs-vswitchd.conf.db.5 contains the following sentence: If the interface cannot be added then Open vSwitch sets this column to -1. The '-' in "-1" should be a minus sign, not a hyphen, but the heuristic in ovsdb-doc wasn't smart enough. This commit improves the heuristic and fixes the prob

[ovs-dev] [bug663051 13/15] ovsdb-doc: Put NAME section into generated manpage.

2012-03-09 Thread Ben Pfaff
This makes the manpage indexable by standard system tools. Found by lintian. Reported-by: Thomas Goirand Signed-off-by: Ben Pfaff --- ovsdb/ovsdb-doc.in |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in index 8f725d7..5ae6706

[ovs-dev] [bug663051 12/15] debian: Avoid unit test failure when doing "unofficial" builds.

2012-03-09 Thread Ben Pfaff
The configure option --with-build-number=0 is interpreted differently in different places. The configure script itself accepts 0 as an actual build number and puts '#define BUILDNR "+build0"' into config.h. The code in python/automake.mk treats 0 as "no build number" and puts 'BUILDNR = ""' into

[ovs-dev] [bug663051 11/15] debian: Avoid duplicate calls to update-rc.d in post{inst, rm}.

2012-03-09 Thread Ben Pfaff
Found by lintian. Reported-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/rules |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debian/rules b/debian/rules index 1953ee5..c88afde 100755 --- a/debian/rules +++ b/debian/rules @@ -128,8 +128,8 @@ binary-common:

[ovs-dev] [bug663051 10/15] doc: Fix typo in manpage.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Found by lintian. Reported-by: Thomas Goirand Signed-off-by: Ben Pfaff --- lib/stress-unixctl.man |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/stress-unixctl.man b/lib/stress-unixctl.man index ad265ee..d2716a9 100644 --- a/lib/stress-unixc

[ovs-dev] [bug663051 09/15] debian: Bump standards-version to 3.9.3.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand No other changes necessary. Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/control |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 0cc526e..6c509fd 100644 --- a/debian/control +++ b/debia

[ovs-dev] [bug663051 08/15] debian: Remove some useless files from the dkms pacakge.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand This commit removes useless files from the dkms package that caused lintian warnings. (Many of the other files in the dkms package are also useless but do not cause lintian warnings so they are less important.) Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- d

[ovs-dev] [bug663051 07/15] debian: Clean .pyc files in "clean" target.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/rules |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/debian/rules b/debian/rules index c8b6c63..b65c460 100755 --- a/debian/rules +++ b/debian/rules @@ -72,6 +72,7 @@ clean:

[ovs-dev] [bug663051 06/15] debian: Remove po-debconf build dependency.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Open vSwitch no longer uses Debconf at all, for some time now. Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/control |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debian/control b/debian/control index fac3280..0cc526e 100644

[ovs-dev] [bug663051 05/15] debian: Build-depend on python-all to pull in all Python versions.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Open vSwitch should support all Python versions in the distribution. This is the way to do it. Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/control |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debian/control b/debian/cont

[ovs-dev] [bug663051 04/15] debian: Add missing ${python:Depends} to openvswitch-test package.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/control |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debian/control b/debian/control index 7666c82..c85d449 100644 --- a/debian/control +++ b/debian/control @@ -215,7 +215,7 @@ D

[ovs-dev] [bug663051 03/15] debian: Improve long descriptions so as to better describe the packages.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/control | 114 +++- 1 files changed, 96 insertions(+), 18 deletions(-) diff --git a/debian/control b/debian/control index 1d6859e..7666c82 100644 --- a/d

[ovs-dev] [bug663051 02/15] debian: Bump debhelper compat level to 8 and make build-depends consistent.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- debian/compat |2 +- debian/control |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/compat b/debian/compat index 7f8f011..45a4fb7 100644 --- a/debian/compat +++ b/debian/compat

[ovs-dev] [bug663051 01/15] debian: Add long descriptions for init scripts.

2012-03-09 Thread Ben Pfaff
From: Thomas Goirand Signed-off-by: Thomas Goirand Signed-off-by: Ben Pfaff --- AUTHORS|1 + debian/openvswitch-controller.init |2 ++ debian/openvswitch-ipsec.init |2 ++ debian/openvswitch-switch.init |2 ++ 4 files changed, 7 insertions(+

[ovs-dev] [bug663051 00/15] Fix many lintian warnings

2012-03-09 Thread Ben Pfaff
Thomas Goirand passed along a number of lintian warnings, plus fixes (which is very much appreciated!). This series is his collection of fixes, plus a few of my own, broken up into multiple commits. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=663051 for Thomas's full original report. Be

[ovs-dev] [PATCH] vswitchd: Do not refresh existing iface on new device addition.

2012-03-09 Thread Pravin B Shelar
There is no need to refresh status and stats for existing devices if the device mtu is zero as it will be done periodically by vswitchd. Signed-off-by: Pravin B Shelar --- vswitchd/bridge.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/

[ovs-dev] [PATCH] ofproto: Optimize set_internal_devs_mtu()

2012-03-09 Thread Pravin B Shelar
Internal device mtu does not influence mtu of other internal devices. So skip MTU setting completely when internal device mtu is changed. Signed-off-by: Pravin B Shelar --- ofproto/ofproto.c | 40 +--- 1 files changed, 21 insertions(+), 19 deletions(-) diff

Re: [ovs-dev] [branch-1.2] tests: Prefer development Python files over installed ones.

2012-03-09 Thread Ethan Jackson
Thanks I've merged this. Ethan On Fri, Mar 9, 2012 at 14:07, Ben Pfaff wrote: > On Thu, Mar 08, 2012 at 02:49:11PM -0800, Ethan Jackson wrote: >> A developer may have Open vSwitch installed, in which case many of >> the Python files which are tested will be in both the development >> tree and th

Re: [ovs-dev] [branch-1.2] tests: Prefer development Python files over installed ones.

2012-03-09 Thread Ben Pfaff
On Thu, Mar 08, 2012 at 02:49:11PM -0800, Ethan Jackson wrote: > A developer may have Open vSwitch installed, in which case many of > the Python files which are tested will be in both the development > tree and the system Python library. When running unit tests, we > want to test the development t

Re: [ovs-dev] [PATCH] nicira-ext: Increase the number of NXM registers to 8.

2012-03-09 Thread Ethan Jackson
Thanks, I've merged this. Ethan On Fri, Mar 9, 2012 at 13:34, Ben Pfaff wrote: > On Fri, Mar 09, 2012 at 01:06:35PM -0800, Ethan Jackson wrote: >> Requested-by: Amar Padmanabhan >> Signed-off-by: Ethan Jackson > > Looks good to me, thanks Ethan. ___

Re: [ovs-dev] [PATCH] netdev: Consistently use 'enum netdev_features'.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 01:54:29PM -0800, Ethan Jackson wrote: > Without this patch sparse gives me warnings. At any rate, it's > cleaner to be consistent. > > Signed-off-by: Ethan Jackson Looks good, thank you. ___ dev mailing list dev@openvswitch.or

[ovs-dev] [PATCH] netdev: Consistently use 'enum netdev_features'.

2012-03-09 Thread Ethan Jackson
Without this patch sparse gives me warnings. At any rate, it's cleaner to be consistent. Signed-off-by: Ethan Jackson --- lib/netdev-linux.c | 18 ++ lib/netdev.c |3 ++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/netdev-linux.c b/lib/netdev-

Re: [ovs-dev] [PATCH] nicira-ext: Increase the number of NXM registers to 8.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 01:06:35PM -0800, Ethan Jackson wrote: > Requested-by: Amar Padmanabhan > Signed-off-by: Ethan Jackson Looks good to me, thanks Ethan. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] debian: Fix Debian build of modules via module-assistant.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 01:23:57PM -0800, Chris Wright wrote: > * Ben Pfaff (b...@nicira.com) wrote: > > Fixes an error during module-assistant build step: > > > > install: cannot stat `openvswitch/datapath/linux/*_mod.ko': No such > > file or directory > > > > This was (understandably) o

Re: [ovs-dev] [PATCH] debian: Fix Debian build of modules via module-assistant.

2012-03-09 Thread Chris Wright
* Ben Pfaff (b...@nicira.com) wrote: > Fixes an error during module-assistant build step: > > install: cannot stat `openvswitch/datapath/linux/*_mod.ko': No such > file or directory > > This was (understandably) overlooked as part of commit 9b80f761be > (datapath: omit _mod from module na

Re: [ovs-dev] [PATCH] debian: Fix Debian build of modules via module-assistant.

2012-03-09 Thread Ethan Jackson
Looks good, thanks. Ethan On Fri, Mar 9, 2012 at 13:21, Ben Pfaff wrote: > Fixes an error during module-assistant build step: > >    install: cannot stat `openvswitch/datapath/linux/*_mod.ko': No such >    file or directory > > This was (understandably) overlooked as part of commit 9b80f761be >

Re: [ovs-dev] [PATCH v2 4/6] ovs-xapi-sync: Use unixctl to trigger cache flushes.

2012-03-09 Thread Ethan Jackson
> /etc/init.d/openvswitch needs to use flush-cache instead of force-run. Didn't try out the new version's init script yet. I'll change it and verify it works before merging. Ethan ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/

[ovs-dev] [PATCH] debian: Fix Debian build of modules via module-assistant.

2012-03-09 Thread Ben Pfaff
Fixes an error during module-assistant build step: install: cannot stat `openvswitch/datapath/linux/*_mod.ko': No such file or directory This was (understandably) overlooked as part of commit 9b80f761be (datapath: omit _mod from module names). CC: Chris Wright Signed-off-by: Ben Pfaff

Re: [ovs-dev] [PATCH v2 3/6] ovs-xapi-sync: Add unixctl support.

2012-03-09 Thread Ethan Jackson
Fine with me, I've changed it in both patches. Ethan On Fri, Mar 9, 2012 at 12:20, Ben Pfaff wrote: > On Thu, Mar 08, 2012 at 03:53:23PM -0800, Ethan Jackson wrote: >>      iface_ids = {}              # Map from xs-vif-uuid to iface-id >>      vm_ids = {}                 # Map from xs-vm-uuid to

[ovs-dev] [PATCH] nicira-ext: Increase the number of NXM registers to 8.

2012-03-09 Thread Ethan Jackson
Requested-by: Amar Padmanabhan Signed-off-by: Ethan Jackson --- This patch makes "nicira-ext: Add a 6th NXM register." obsolete, so it no longer needs review. --- NEWS |1 + include/openflow/nicira-ext.h |6 +++ lib/classifier.c |4 +- lib/flow

Re: [ovs-dev] [PATCH v2] datapath: omit _mod from module names

2012-03-09 Thread Jesse Gross
On Fri, Mar 9, 2012 at 9:55 AM, Chris Wright wrote: > This renames the datapath modules: > >  openvswitch_mod -> openvswitch >  brcompat_mod -> brcompat > > The first makes the module name consistent with upstream, and the latter > is just for internal consistency.  This makes tools, and documenta

Re: [ovs-dev] [PATCH v3 6/6] netdev-linux: Cache error code from do_get_ifindex().

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:03:06PM -0800, Pravin B Shelar wrote: > v1-3: > - Use change->ifi_index to update ifindex. > > Signed-off-by: Pravin B Shelar Looks good to me, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/m

Re: [ovs-dev] [PATCH v3 5/6] netdev-linux: Cache error code from get-features.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:02:53PM -0800, Pravin B Shelar wrote: > v2-v3: > No change. > > v1-v2: > - changed VALID_FEATURES. > - Dont define netdev_get_features operation for internal device. > > --8<--cut here-->8-- > > Following

Re: [ovs-dev] [PATCH v3 4/6] netdev-linux: Cache error code from set-policing.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:02:38PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v2-v3: > - Only cache ENODEV error code from set-policing. > v1-v2: > - Changed name from netdev_policy_error to netdev_policing_error. > > --8<--cut here---

Re: [ovs-dev] [PATCH v3 3/6] netdev-linux: Cache error code from ether-addr ioctl.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:02:31PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v2-v3: > - Only cache ENODEV error code from set etheraddr. > - Fixed comment in netdev_linux_get_etheraddr(). > - Fixed rtnetlink_link_parse(). > > v1-v2: > - Changed che

Re: [ovs-dev] [PATCH v3 2/6] netdev-linux: Cache error code from mtu ioctl.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:02:23PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v2-v3: > - Only cache ENODEV from set-mtu ioctl. > > v1-v2: > - Fixed check for MTU in notifier so that mtu is not set to zero. > - Changed check for VALID_MTU. > > --8<--

Re: [ovs-dev] [PATCH v3 1/6] netdev-linux: Cache drv-info for net device.

2012-03-09 Thread Ben Pfaff
On Fri, Mar 09, 2012 at 12:02:16PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v2-v3: > - Dont issue ETHTOOL_GDRVINFO for internal devices. > - Discard drv-info on RTM_DELLINK event. > v1-v2: > - Added comment for netdev_internal_open. > - Removed get

Re: [ovs-dev] [PATCH v2 2/6] ovs-xapi-sync: Cache nicira-bridge-id in ovs-xapi-sync.

2012-03-09 Thread Ben Pfaff
On Thu, Mar 08, 2012 at 03:53:22PM -0800, Ethan Jackson wrote: > Communicating with xapi from Python can be quite expensive so it > makes sense to cache this data if convenient. > > Signed-off-by: Ethan Jackson This looks good, thank you. I made additional comments on patches 3 and 4. I'm done

Re: [ovs-dev] [PATCH v2 4/6] ovs-xapi-sync: Use unixctl to trigger cache flushes.

2012-03-09 Thread Ben Pfaff
On Thu, Mar 08, 2012 at 03:53:24PM -0800, Ethan Jackson wrote: > Typically Open vSwitch communicates with running processes using > unixctl. This patch converts ovs-xapi-sync to the strategy for > consistency. > > Signed-off-by: Ethan Jackson /etc/init.d/openvswitch needs to use flush-cache ins

Re: [ovs-dev] [PATCH v2 3/6] ovs-xapi-sync: Add unixctl support.

2012-03-09 Thread Ben Pfaff
On Thu, Mar 08, 2012 at 03:53:23PM -0800, Ethan Jackson wrote: > iface_ids = {} # Map from xs-vif-uuid to iface-id > vm_ids = {} # Map from xs-vm-uuid to vm-id > seqno = idl.change_seqno# Sequence number when we last processed the > db > -while T

[ovs-dev] [PATCH v3 6/6] netdev-linux: Cache error code from do_get_ifindex().

2012-03-09 Thread Pravin B Shelar
v1-3: - Use change->ifi_index to update ifindex. Signed-off-by: Pravin B Shelar --- lib/netdev-linux.c | 19 +++ 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 70d1e78..8a30d74 100644 --- a/lib/netdev-linux.c +

[ovs-dev] [PATCH v3 5/6] netdev-linux: Cache error code from get-features.

2012-03-09 Thread Pravin B Shelar
v2-v3: No change. v1-v2: - changed VALID_FEATURES. - Dont define netdev_get_features operation for internal device. --8<--cut here-->8-- Following patch adds support for caching error code from ETHTOOL_GSET call. Since internal devi

[ovs-dev] [PATCH v3 4/6] netdev-linux: Cache error code from set-policing.

2012-03-09 Thread Pravin B Shelar
Fixed according to comments from Ben. v2-v3: - Only cache ENODEV error code from set-policing. v1-v2: - Changed name from netdev_policy_error to netdev_policing_error. --8<--cut here-->8-- Signed-off-by: Pravin B Shelar --- lib/netdev-li

[ovs-dev] [PATCH v3 3/6] netdev-linux: Cache error code from ether-addr ioctl.

2012-03-09 Thread Pravin B Shelar
Fixed according to comments from Ben. v2-v3: - Only cache ENODEV error code from set etheraddr. - Fixed comment in netdev_linux_get_etheraddr(). - Fixed rtnetlink_link_parse(). v1-v2: - Changed check for VALID_ETHERADDR. - Using notifier msg to update device ether addr.

[ovs-dev] [PATCH v3 2/6] netdev-linux: Cache error code from mtu ioctl.

2012-03-09 Thread Pravin B Shelar
Fixed according to comments from Ben. v2-v3: - Only cache ENODEV from set-mtu ioctl. v1-v2: - Fixed check for MTU in notifier so that mtu is not set to zero. - Changed check for VALID_MTU. --8<--cut here-->8-- netdev linux devices use

[ovs-dev] [PATCH v3 1/6] netdev-linux: Cache drv-info for net device.

2012-03-09 Thread Pravin B Shelar
Fixed according to comments from Ben. v2-v3: - Dont issue ETHTOOL_GDRVINFO for internal devices. - Discard drv-info on RTM_DELLINK event. v1-v2: - Added comment for netdev_internal_open. - Removed get-stat call from status check. --8<--cut here--

[ovs-dev] MPLS less-important comments (was: Re: Patch for MPLS)

2012-03-09 Thread Ben Pfaff
Here are my additional comments that point out less-important issues. include/openflow/nicira-ext.h - The "format' in the definition of mpls_label isn't entirely clear to me: +/* The mpls_label in MPLS shim header. + * + * Prereqs: NXM_OF_ETH_TYPE must be

[ovs-dev] MPLS important comments (was: Re: Patch for MPLS)

2012-03-09 Thread Ben Pfaff
Thank you for the patch! I have some comments. I'm dividing them into two groups. The first group, in this email, is comments that point out likely bugs. The second group, which I will send separately, is comments that point out less important issues. I didn't review the kernel code. That wil

[ovs-dev] [PATCH v2] datapath: omit _mod from module names

2012-03-09 Thread Chris Wright
This renames the datapath modules: openvswitch_mod -> openvswitch brcompat_mod -> brcompat The first makes the module name consistent with upstream, and the latter is just for internal consistency. This makes tools, and documentation refer to a common module name regardless if it's coming fr