[ovs-dev] Message could not be delivered

2014-07-16 Thread sales
The original message was received at Thu, 17 Jul 2014 13:48:09 +0700 from voipon.co [74.127.153.167] - The following addresses had permanent fatal errors - ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] datapath: Refactor get_dp() function, add get_dp_rcu()

2014-07-16 Thread Andy Zhou
Thanks for the review. Both points are valid. I have just posted another version of the re-factoring that should address the issues. On Wed, Jul 16, 2014 at 9:30 PM, Pravin Shelar wrote: > On Tue, Jul 15, 2014 at 2:56 PM, Andy Zhou wrote: >> The added get_dp_rcu() requires its caller to hold rc

Re: [ovs-dev] [PATCH V2] stp: Make stp-disabled port forward stp bpdu packets.

2014-07-16 Thread Alex Wang
Thx for the reviews, Ben and Joe, Applied the patch to master, branch-2.[0,1,3] Alex Wang, On Wed, Jul 16, 2014 at 2:43 AM, Joe Stringer wrote: > I took another read through, minor nitpicks if you haven't pushed the > patch yet:- > > > On 16 July 2014 17:21, Alex Wang wrote: > >> + * FWD:

[ovs-dev] [PATCH] datapath: Refactor get_dp() function into multiple access APIs

2014-07-16 Thread Andy Zhou
Remove get_dp() API, it becomes get_dp__() which is for internal use only. Added the following APIs to make it clear of the locking requirement. o get_dp_rcu() requires its caller to hold rcu lock. o get_dp_ovsl() requires its caller to hold ovs lock. o get_dp_ovsl_rcu() requires its c

Re: [ovs-dev] [PATCH net-next] openvswitch: make generic netlink group const

2014-07-16 Thread David Miller
From: Stephen Hemminger Date: Wed, 16 Jul 2014 11:25:52 -0700 > Generic netlink tables can be const. > > Signed-off-by: Stephen Hemminger Applied, thanks Stephen. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-16 Thread Eric Sesterhenn
On 07/16/2014 08:04 PM, Ben Pfaff wrote: > On Wed, Jul 16, 2014 at 02:53:37PM -0300, Flavio Leitner wrote: >> On Wed, Jul 16, 2014 at 09:56:20AM -0700, Ben Pfaff wrote: >>> On Wed, Jul 16, 2014 at 10:39:17AM -0300, Flavio Leitner wrote: >>> There's more than one way to chroot. Maybe Eric is thinki

[ovs-dev] GRE and VXLAN over IPsec

2014-07-16 Thread Neelakantam Gaddam
Hi All, Does the openvswitch-1.10 supports IPsec+GRE and IPsec+VXLAN tunneling protocols? If not please point me to any of the patches for this functionality. Does latest version of openvswitch 2.0 supports these tunneling protocols? -- Thanks & Regards Neelakantam Gaddam

Re: [ovs-dev] [RFC 2/2] datapath: Cache netlink flow key, mask on flow_put.

2014-07-16 Thread Joe Stringer
On 12 July 2014 00:55, Thomas Graf wrote: > On 07/11/14 at 11:29pm, Joe Stringer wrote: > > I'm skeptical of taking the ovs_lock(). The current patch performs this > > key/mask cache construction inside ovs_lock() as part of the critical > > section for flow install. If we perform this during flo

[ovs-dev] Dev@openvswitch.org

2014-07-16 Thread MAILER-DAEMON
The original message was received at Thu, 17 Jul 2014 10:29:58 +0530 from 73.28.108.230 - The following addresses had permanent fatal errors - - Transcript of session follows - ... while talking to 217.137.70.153: 550 5.1.2 ... Host unknown (Name server: host not found)

Re: [ovs-dev] [PATCH] datapath: Refactor get_dp() function, add get_dp_rcu()

2014-07-16 Thread Pravin Shelar
On Tue, Jul 15, 2014 at 2:56 PM, Andy Zhou wrote: > The added get_dp_rcu() requires its caller to hold rcu lock. > get_dp() now requires caller to hold ovs lock. > > Sepearate APIs makes it clear on the intended use and the requirements > of its caller. > > Signed-off-by: Andy Zhou > --- > datap

[ovs-dev] [PATCH] netdev-dpdk: Refactor dpdk_class_init()

2014-07-16 Thread Daniele Di Proietto
The following changes were made: - Since we have two dpdk classes, we should split the initial operations needed by both classes from the initialization needed by each class. - The dpdk_ring class does not need an initialization function: it has been removed. This also prevents many testcase f

Re: [ovs-dev] [PATCH] netdev-dpdk: Avoid multiple testcases failure

2014-07-16 Thread Daniele Di Proietto
I’ve decided to make more changes to netdev-dpdk. I’m posting another patch with commit message "netdev-dpdk: Refactor dpdk_class_init()” On Jul 16, 2014, at 3:54 PM, Daniele Di Proietto wrote: > > On Jul 16, 2014, at 3:30 PM, Pravin Shelar wrote: > >> On Wed, Jul 16, 2014 at 2:47 PM, Daniel

Re: [ovs-dev] ovs - rate limiter proposal - question

2014-07-16 Thread Jean Tourrilhes
On Wed, Jul 16, 2014 at 01:00:44PM +0200, Attila Czébán wrote: > Dear Jean, > > I read the following documentation about the rate limiter API. > http://openvswitch.org/pipermail/dev/2011-January/005639.html > I have some questions about it. > > We have an SDN testbed at Budapest University of Tec

Re: [ovs-dev] [PATCH net-next] openvswitch: make generic netlink group const

2014-07-16 Thread Pravin Shelar
On Wed, Jul 16, 2014 at 11:25 AM, Stephen Hemminger wrote: > Generic netlink tables can be const. > OVS external module can not use const due to compatibility code. But there is no reason we can not do it for in-kernel module. Thanks. > Signed-off-by: Stephen Hemminger > > > --- a/net/openvswi

Re: [ovs-dev] [PATCH 3/5] Simplify ofproto_controller_info by using a struct smap in place of array.

2014-07-16 Thread Gurucharan Shetty
On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > The only client for ofproto_controller_info was transforming the array of > pairs into an smap anyway. It's easy for the code that fills in the array > to generate it as an smap directly, and it's also easier to extend later. > > Signed-off-by:

Re: [ovs-dev] [PATCH v8] net: openvswitch - set name assign type

2014-07-16 Thread Pravin Shelar
On Wed, Jul 16, 2014 at 4:16 PM, Tom Gundersen wrote: > On Thu, Jul 17, 2014 at 1:00 AM, Pravin Shelar wrote: >> On Wed, Jul 16, 2014 at 3:43 PM, Tom Gundersen wrote: >>> Signed-off-by: Tom Gundersen >>> Cc: Pravin Shelar >>> Cc: dev@openvswitch.org >>> --- >>> >>> This patch goes on top of ne

Re: [ovs-dev] [PATCH v8] net: openvswitch - set name assign type

2014-07-16 Thread Tom Gundersen
On Thu, Jul 17, 2014 at 1:00 AM, Pravin Shelar wrote: > On Wed, Jul 16, 2014 at 3:43 PM, Tom Gundersen wrote: >> Signed-off-by: Tom Gundersen >> Cc: Pravin Shelar >> Cc: dev@openvswitch.org >> --- >> >> This patch goes on top of net-next. >> >> net/openvswitch/datapath.c | 1 + >> ne

Re: [ovs-dev] [PATCHv3] datapath: Cache netlink flow key, mask on flow_put.

2014-07-16 Thread Joe Stringer
On 17 July 2014 04:48, Ben Pfaff wrote: > On Wed, Jul 16, 2014 at 02:50:12PM +1200, Joe Stringer wrote: > > Converting the flow key and mask back into netlink format during flow > > dump is fairly expensive. By caching the userspace-provided versions of > > these during flow setup, and copying th

Re: [ovs-dev] [PATCH v8] net: openvswitch - set name assign type

2014-07-16 Thread Pravin Shelar
On Wed, Jul 16, 2014 at 3:43 PM, Tom Gundersen wrote: > Signed-off-by: Tom Gundersen > Cc: Pravin Shelar > Cc: dev@openvswitch.org > --- > > This patch goes on top of net-next. > > net/openvswitch/datapath.c | 1 + > net/openvswitch/vport-internal_dev.c | 2 +- > net/openvswitch/vport

Re: [ovs-dev] [PATCH 2/5] pinsched: Report queued packet count correctly.

2014-07-16 Thread Gurucharan Shetty
On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > 'n_txq' was initialized to 0 and never modified, so pinsched_count_txqlen() > always returned 0. Instead, return the correct number. > > This only affected the results of "ovs-appctl memory/show", and only if > controller rate limiting was turne

Re: [ovs-dev] [PATCH] netdev-dpdk: Avoid multiple testcases failure

2014-07-16 Thread Daniele Di Proietto
On Jul 16, 2014, at 3:30 PM, Pravin Shelar wrote: > On Wed, Jul 16, 2014 at 2:47 PM, Daniele Di Proietto > wrote: >> If vswitchd is compiled with DPDK support but started without --dpdk >> argument, >> it shouldn't print any dpdk initialization messages. >> OVS_VSWITCHD_START (tests/ofproto-ma

[ovs-dev] [RFC v3] datapath/flow_netlink: Avoid wildcarding tunnel key with disabled megaflows

2014-07-16 Thread Daniele Di Proietto
If the userspace wants to match on a flow with some tunnel attributesset to 0, it simply omits them in the netlink attributes stream. Since our wildcarding logic (when megaflows are disabled) is based on the attributes in the netlink stream, we set our mask incorrectly. This commit adds a check to

[ovs-dev] [PATCH v8] net: openvswitch - set name assign type

2014-07-16 Thread Tom Gundersen
Signed-off-by: Tom Gundersen Cc: Pravin Shelar Cc: dev@openvswitch.org --- This patch goes on top of net-next. net/openvswitch/datapath.c | 1 + net/openvswitch/vport-internal_dev.c | 2 +- net/openvswitch/vport.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-)

Re: [ovs-dev] [PATCH 1/5] vswitch.xml: Fix typo in documentation.

2014-07-16 Thread Gurucharan Shetty
On Wed, Jul 16, 2014 at 3:05 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Gurucharan Shetty > --- > vswitchd/vswitch.xml |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml > index 69b3567..ee2892b 100644 > --- a/v

Re: [ovs-dev] [PATCH] netdev-dpdk: Avoid multiple testcases failure

2014-07-16 Thread Pravin Shelar
On Wed, Jul 16, 2014 at 2:47 PM, Daniele Di Proietto wrote: > If vswitchd is compiled with DPDK support but started without --dpdk argument, > it shouldn't print any dpdk initialization messages. > OVS_VSWITCHD_START (tests/ofproto-macros.at:54) is pretty strict about what > the > daemon prints w

[ovs-dev] [PATCH 5/5] ofproto: Report controller rate limiting statistics in database.

2014-07-16 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- NEWS |1 + ofproto/connmgr.c| 26 +++- ofproto/pinsched.c | 17 +--- ofproto/pinsched.h | 11 - vswitchd/vswitch.xml | 112 +++--- 5 files changed, 135 insertions(+), 32 del

[ovs-dev] [PATCH 4/5] smap: New function smap_add_nocopy().

2014-07-16 Thread Ben Pfaff
An upcoming commit will add a caller that needs to format both the key and the value. That isn't cleanly possible with the current interface. Signed-off-by: Ben Pfaff --- lib/smap.c | 11 ++- lib/smap.h |3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/sm

[ovs-dev] [PATCH 3/5] Simplify ofproto_controller_info by using a struct smap in place of array.

2014-07-16 Thread Ben Pfaff
The only client for ofproto_controller_info was transforming the array of pairs into an smap anyway. It's easy for the code that fills in the array to generate it as an smap directly, and it's also easier to extend later. Signed-off-by: Ben Pfaff --- ofproto/connmgr.c | 27 ++-

[ovs-dev] [PATCH 0/5] Report controller rate limiting statistics in database.

2014-07-16 Thread Ben Pfaff
I received a request to report statistics on Open vSwitch rate-limiting of packet-ins to OpenFlow controllers. This series implements that feature. Ben Pfaff (5): vswitch.xml: Fix typo in documentation. pinsched: Report queued packet count correctly. Simplify ofproto_controller_info by usin

[ovs-dev] [PATCH 2/5] pinsched: Report queued packet count correctly.

2014-07-16 Thread Ben Pfaff
'n_txq' was initialized to 0 and never modified, so pinsched_count_txqlen() always returned 0. Instead, return the correct number. This only affected the results of "ovs-appctl memory/show", and only if controller rate limiting was turned on, so it is not a serious bug. Signed-off-by: Ben Pfaff

[ovs-dev] [PATCH 1/5] vswitch.xml: Fix typo in documentation.

2014-07-16 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- vswitchd/vswitch.xml |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 69b3567..ee2892b 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -3324,7 +3324,7 @@ Equivalent to o

[ovs-dev] [PATCH] learning-switch: Make test-controller work with OpenFlow 1.3+.

2014-07-16 Thread Ben Pfaff
The controller setup in my personal test environment has been broken for a while. I figured that it wasn't anything important, though, because no one else had reported similar problems. Anyway, it turns out that enabling OpenFlow 1.3 by default broke test-controller because OpenFlow 1.3 doesn't s

[ovs-dev] [PATCH] netdev-dpdk: Avoid multiple testcases failure

2014-07-16 Thread Daniele Di Proietto
If vswitchd is compiled with DPDK support but started without --dpdk argument, it shouldn't print any dpdk initialization messages. OVS_VSWITCHD_START (tests/ofproto-macros.at:54) is pretty strict about what the daemon prints when starting. The testcases failures were introduced with commit 95fb79

[ovs-dev] [PATCH net-next] openvswitch: make generic netlink group const

2014-07-16 Thread Stephen Hemminger
Generic netlink tables can be const. Signed-off-by: Stephen Hemminger --- a/net/openvswitch/datapath.c2014-07-09 03:06:11.400291765 -0700 +++ b/net/openvswitch/datapath.c2014-07-09 03:09:35.688297236 -0700 @@ -66,16 +66,16 @@ static struct genl_family dp_packet_genl static stru

Re: [ovs-dev] [PATCH v2] cmap: Fix cmap_next_position()

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 10:46:20AM -0700, Daniele Di Proietto wrote: > cmap_next_position() didn't update the node pointer while iterating through a > list of nodes with the same hash. > This commit fixes the bug and improve test-cmap to detect it. > > Signed-off-by: Daniele Di Proietto Applied,

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 02:53:37PM -0300, Flavio Leitner wrote: > On Wed, Jul 16, 2014 at 09:56:20AM -0700, Ben Pfaff wrote: > > On Wed, Jul 16, 2014 at 10:39:17AM -0300, Flavio Leitner wrote: > > There's more than one way to chroot. Maybe Eric is thinking of a > > model where one chroots to an em

[ovs-dev] [PATCH v2] cmap: Fix cmap_next_position()

2014-07-16 Thread Daniele Di Proietto
cmap_next_position() didn't update the node pointer while iterating through a list of nodes with the same hash. This commit fixes the bug and improve test-cmap to detect it. Signed-off-by: Daniele Di Proietto --- lib/cmap.c| 2 +- tests/test-cmap.c | 20 +++- 2 files cha

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-16 Thread Flavio Leitner
On Wed, Jul 16, 2014 at 09:56:20AM -0700, Ben Pfaff wrote: > On Wed, Jul 16, 2014 at 10:39:17AM -0300, Flavio Leitner wrote: > > The main_loop refactoring is a nice thing even without the series, I find > > the code easier to understand. > > That's reasonable, so I applied that patch. Thanks! >

Re: [ovs-dev] [PATCH] cmap: Fix cmap_next_position()

2014-07-16 Thread Daniele Di Proietto
I’m running from the test suite, with GCC 4.9 It was slow because on my dev machine I compile without optimization (my bad). With optimizations: - without testing cmap_next_position() : 8.6s - if we always test also cmap_next_position() always (like you suggested): 18.8s So I’m posting v2 with

Re: [ovs-dev] [PATCH] cmap: Fix cmap_next_position()

2014-07-16 Thread Ben Pfaff
There's a couple of reasons that test-cmap can be slow. First, if you run it without a numerical argument, it iterates 100 times. That takes a long time, and it's only meant for cases where you're doing actual development and want high confidence. The testsuite gives it an argument of 1, so that

Re: [ovs-dev] [PATCH] cmap: Fix cmap_next_position()

2014-07-16 Thread Daniele Di Proietto
Thanks, The reason I didn’t do that in the first place is that test-cmap is already taking 55s to run on my machine, and I thought that adding other code to check_cmap() might increase runtime significantly (we call check_cmap() a lot and cmap_next_position() is slow). After applying your sugge

Re: [ovs-dev] [PATCH v3] Extend OVS IPFIX exporter to export tunnel headers

2014-07-16 Thread Pravin Shelar
git am warning: Applying: Extend OVS IPFIX exporter to export tunnel headers /home/pravin/ovs/w8/.git/rebase-apply/patch:143: trailing whitespace. if (out_tun_key) /home/pravin/ovs/w8/.git/rebase-apply/patch:236: space before tab in indent. const struct udphdr * udp_hdr = tph; /home

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 10:39:17AM -0300, Flavio Leitner wrote: > The main_loop refactoring is a nice thing even without the series, I find > the code easier to understand. That's reasonable, so I applied that patch. > I don't think there is a need to pre-open files in /dev since they usually > a

Re: [ovs-dev] [PATCHv2] netlink-socket: Simplify multithreaded dumping to match Linux reality.

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 05:14:27PM +1200, Joe Stringer wrote: > On 16 July 2014 05:58, Ben Pfaff wrote: > > > Commit 0791315e4d (netlink-socket: Work around kernel Netlink dump thread > > races.) introduced a simple workaround for Linux kernel races in Netlink > > dumps. However, the code remain

Re: [ovs-dev] [PATCHv3] datapath: Cache netlink flow key, mask on flow_put.

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 02:50:12PM +1200, Joe Stringer wrote: > Converting the flow key and mask back into netlink format during flow > dump is fairly expensive. By caching the userspace-provided versions of > these during flow setup, and copying the memory directly during flow > dump, we are able

Re: [ovs-dev] [PATCH v2 1/1] netdev-dpdk: add dpdk rings to netdev-dpdk

2014-07-16 Thread Pravin Shelar
On Fri, Jul 11, 2014 at 5:37 AM, maryam.tahhan wrote: > Shared memory ring patch > > This patch enables the client dpdk rings within the netdev-dpdk. It adds > a new dpdk device called dpdkr (other naming suggestions?). This allows > for the use of shared memory to communicate with other dpdk ap

Re: [ovs-dev] [PATCHv2 1/2] datapath: Move key_attr_size() to flow_netlink.h.

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 12:15:40PM +1200, Joe Stringer wrote: > Side comment: OVS_KEY_ATTR_ETHERTYPE appears twice in this list. I guess > it's not harmful to reserve a bit of extra space, but does anyone know > why it's there twice? It's because OVS_KEY_ATTR_ETHERTYPE appears twice if there's a V

Re: [ovs-dev] [PATCH 4/4] netlink-socket: Simplify multithreaded dumping to match Linux reality.

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 05:12:58PM +1200, Joe Stringer wrote: > On 16 July 2014 05:55, Ben Pfaff wrote: > > > > The kernel shouldn't ever return EAGAIN if there's more data to dump. > > When dumping is single-threaded (as in branch-1.11) or serialized (as > > post-commit 0791315e4d), the kernel im

Re: [ovs-dev] [PATCH 1/4] lib/classifier: Unify struct classifier and cls_classifier.

2014-07-16 Thread Ben Pfaff
On Wed, Jul 16, 2014 at 02:18:30PM +0900, YAMAMOTO Takashi wrote: > > /* A flow classifier. */ > > struct classifier { > > -struct cls_classifier *cls; > > +struct ovs_mutex mutex; > > +int n_rules OVS_GUARDED;/* Total number of rules. */ > > +uint8_t n_flow_segments; > >

Re: [ovs-dev] [PATCH] cmap: Fix cmap_next_position()

2014-07-16 Thread Ben Pfaff
On Tue, Jul 15, 2014 at 09:57:55PM -0700, Daniele Di Proietto wrote: > cmap_next_position() didn't update the node pointer while iterating through a > list of nodes with the same hash. > This commit fixes the bug and improve test-cmap to detect it. > > Signed-off-by: Daniele Di Proietto Good cat

Re: [ovs-dev] [PATCH 2/3][RFC] Factor the ovsdb-server main loop into a new function

2014-07-16 Thread Ben Pfaff
On Fri, Jul 11, 2014 at 01:24:06PM +0200, Eric Sesterhenn wrote: > commit b5431b8dcc8e02c335c388afaee4b606d3253204 > Author: Eric Sesterhenn > Date: Fri Jul 11 03:54:48 2014 -0500 > > Factor the ovsdb-server main loop into a new function > > This refactors the ovsdb-server main loop in

Re: [ovs-dev] [PATCH] CodingStyle: Add suggested GNU indent options.

2014-07-16 Thread Ben Pfaff
Thanks, applied! On Mon, Jul 14, 2014 at 12:41:21PM -0700, Andy Zhou wrote: > LGTM > > Acked-by: Andy Zhou > > On Tue, Jun 24, 2014 at 11:45 AM, Ben Pfaff wrote: > > Suggested-by: Gerald Rogers > > Signed-off-by: Ben Pfaff > > --- > > AUTHORS |1 + > > CodingStyle |7 +++ > >

Re: [ovs-dev] [PATCH 0/3][RFC] Implement a chroot for ovsdb-server

2014-07-16 Thread Flavio Leitner
On Fri, Jul 11, 2014 at 01:24:01PM +0200, Eric Sesterhenn wrote: > Hi, > > on my debian installation, the ovsdb-server is running as root. Since I > prefer to add additional mitigations for running services, I was looking > into putting the ovsdb-server into a chroot and implemented it in the > fo

[ovs-dev] ovs - rate limiter proposal - question

2014-07-16 Thread Attila Czébán
Dear Jean, I read the following documentation about the rate limiter API. http://openvswitch.org/pipermail/dev/2011-January/005639.html I have some questions about it. We have an SDN testbed at Budapest University of Technology. We have HP-E3500yl switches with K.15.15.0006 firmware and openvswit

Re: [ovs-dev] [PATCH V2] stp: Make stp-disabled port forward stp bpdu packets.

2014-07-16 Thread Joe Stringer
I took another read through, minor nitpicks if you haven't pushed the patch yet:- On 16 July 2014 17:21, Alex Wang wrote: > > + * FWD: the port should forward any incomging non-stp-bpdu > + * packets. > incomging -> incoming bpdu -> BPDU + * TX_BPDU/RX_BPDU: th