Re: [ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Madhu Challa
I think I know whats happening. In case there is an error getting the datapath flow we should not try logging it since the flow is not valid. dpif_netlink_operate__ { ... case DPIF_OP_FLOW_GET: op->error = dpif_netlink_flow_from_ofpbuf(&reply, txn->reply); i

Re: [ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Madhu Challa
I am able to recreate it. I suspect its some bug at the dpif_netlink layer. I am trying to narrow it down further. Anything in particular I could look for ? Thanks. (gdb) print *get $3 = { key = 0x7fedec092190, key_len = 0x60, buffer = 0x7fee162a4b70, flow = 0x7fee162a4b20 } (gdb) print *

Re: [ovs-dev] [PATCH] lib/dpif-netdev: Fix EMC lookup.

2014-10-17 Thread Jarno Rajahalme
Pushed, thanks for the review! Jarno On Oct 17, 2014, at 4:05 PM, Daniele Di Proietto wrote: > Thanks for fixing this Jarno! > > I've tested the patch and it fixes the problem. > Would you mind adding a comment on struct netdev_flow_key that 'len' > accounts for the length of the miniflow on

[ovs-dev] [PATCH] INSTALL.DPDK: improve documentation

2014-10-17 Thread Daniele Di Proietto
Signed-off-by: Daniele Di Proietto --- INSTALL.DPDK | 40 +--- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/INSTALL.DPDK b/INSTALL.DPDK index 7484b4b..0d19012 100644 --- a/INSTALL.DPDK +++ b/INSTALL.DPDK @@ -11,6 +11,8 @@ It has not been thor

Re: [ovs-dev] [PATCH 1/1] netdev-dpdk: Move to DPDK 1.7.1

2014-10-17 Thread Daniele Di Proietto
Thanks for the patch. Acked-by: Daniele Di Proietto Pravin, would you mind pushing this? I suggest one minor change, inline. On 10/13/14, 7:17 AM, "maryam.tahhan" wrote: >This patch updates the documentation to reflect that DPDK 1.7.1 is >supported. >Travis scripts have also been updated to

Re: [ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Madhu Challa
Forgot to attach the backtrace :: (gdb) bt #0 nl_attr_is_valid (maxlen=0xcfea1104, nla=0x0) at lib/netlink.h:139 #1 format_odp_actions (ds=0x7f77c7ffc800, actions=0x0, actions_len=0x7f77cfea1104) at lib/odp-util.c:608 #2 0x00456749 in log_flow_message (error=0x2, operation=0x506

Re: [ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Madhu Challa
You are correct Ben. I confused with the put that has actions in dpif_flow_put. I guess I was not able to repro the issue then. Let me repro it and I will resend the fix. Thanks. On Fri, Oct 17, 2014 at 4:17 PM, Ben Pfaff wrote: > On Fri, Oct 17, 2014 at 04:07:25PM -0700, Madhu Challa wrote: >

Re: [ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Ben Pfaff
On Fri, Oct 17, 2014 at 04:07:25PM -0700, Madhu Challa wrote: > dpif_flow_get initializes the flow_get part of the union, down the stack > log_flow_message checks for actions || actions_len that could contain > garbage leading to the crash. > > saw the crash once when running stress tests. can be

[ovs-dev] [PATCH] lib/dpif: Fix crash in format_odp_actions, actions = 0x0

2014-10-17 Thread Madhu Challa
dpif_flow_get initializes the flow_get part of the union, down the stack log_flow_message checks for actions || actions_len that could contain garbage leading to the crash. saw the crash once when running stress tests. can be easily recreated by running ovs-dpctl del-flows in a loop when traffic i

Re: [ovs-dev] [PATCH] lib/dpif-netdev: Fix EMC lookup.

2014-10-17 Thread Daniele Di Proietto
Thanks for fixing this Jarno! I've tested the patch and it fixes the problem. Would you mind adding a comment on struct netdev_flow_key that 'len' accounts for the length of the miniflow only (including the map)? Other comments inline, otherwise: Acked-by: Daniele Di Proietto On 10/17/14, 3:05

Re: [ovs-dev] [PATCH] stream-fd: Merge stream-fd-windows and stream-fd-unix.

2014-10-17 Thread Ben Pfaff
On Fri, Oct 17, 2014 at 12:25:41PM -0700, Gurucharan Shetty wrote: > There was not much difference between the two files after moving > all of the Windows socket HANDLE polling functionality to poll-loop.c. > So merge them together. > > Signed-off-by: Gurucharan Shetty Besides reading the code,

Re: [ovs-dev] [PATCH] stream-tcp: Call setsockopt TCP_NODELAY after TCP is connected for Windows.

2014-10-17 Thread Ben Pfaff
On Fri, Oct 17, 2014 at 01:23:04PM -0700, Gurucharan Shetty wrote: > On Tue, Oct 7, 2014 at 2:25 PM, Ben Pfaff wrote: > > On Thu, Oct 02, 2014 at 08:16:56AM -0700, Gurucharan Shetty wrote: > >> On Windows platform, TCP_NODELAY can only be set when TCP is established. > >> The current code does not

[ovs-dev] [PATCH] lib/dpif-netdev: Fix EMC lookup.

2014-10-17 Thread Jarno Rajahalme
Patch 0de8783a9 (lib/dpif-netdev: Integrate megaflow classifier.) broke exact match cache lookup, but it went undetected since there are no separate stats for EMC. This patch fixes the problem by changing the struct netdev_flow_key 'len' member to cover only the 'mf' member, not the whole netdev_f

Re: [ovs-dev] [PATCH v2] datapath-windows: Packet subscribe handler

2014-10-17 Thread Ben Pfaff
On Thu, Oct 16, 2014 at 11:45:42PM -0700, Eitan Eliahu wrote: > This change includes the following: > [1] Handler for subscribe/unsubscribe to a packet queue associated with a > socket pid. > [2] Allocation of per socket packet queue on a packet subscription. > [3] Removal of static allocated q

Re: [ovs-dev] [PATCH v5] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-17 Thread Ben Pfaff
On Fri, Oct 17, 2014 at 11:12:32AM -0700, Ankur Sharma wrote: > Added the handlers for update_flags and set_etheraddr. > These handlers were needed for vswitchd bringup on windows > platform. > > Signed-off-by: Ankur Sharma > Acked-by: Nithin Raju Applied, thanks. __

Re: [ovs-dev] [PATCH] Add OpenFlow support for 802.1AD Ethertype

2014-10-17 Thread Ben Pfaff
On Fri, Oct 17, 2014 at 01:19:33PM -0400, Dave Benson wrote: > On Fri, Oct 10, 2014 at 6:43 PM, Ben Pfaff wrote: > > With this change, I think that an OpenFlow flow table entry that > > matches on a VLAN will now match both 0x88a8 and 0x8100 tags for that > > VLAN. I doubt that that is desirable

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Andy Zhou
Thanks. On Fri, Oct 17, 2014 at 1:24 PM, Simon Horman wrote: > > 2014/10/17 19:25 "Pravin Shelar" : >> >> On Fri, Oct 17, 2014 at 12:16 AM, Simon Horman >> wrote: >> > On Thu, Oct 16, 2014 at 04:50:10PM -0700, Andy Zhou wrote: >> >> Simon, The change makes a lot of sense. >> >> >> >> I am just w

Re: [ovs-dev] [PATCH v3] lib/dpif-netdev: Integrate megaflow classifier.

2014-10-17 Thread Jarno Rajahalme
On Oct 16, 2014, at 11:09 PM, Alex Wang wrote: > Thx for the revision, > > > +/* Removes 'rule' from 'cls', also destructing the 'rule'. */ > +static void > +dpcls_remove(struct dpcls *cls, struct dpcls_rule *rule) > +{ > +struct dpcls_subtable *subtable; > + > +ovs_assert(rule->mask);

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Simon Horman
2014/10/17 19:25 "Pravin Shelar" : > > On Fri, Oct 17, 2014 at 12:16 AM, Simon Horman > wrote: > > On Thu, Oct 16, 2014 at 04:50:10PM -0700, Andy Zhou wrote: > >> Simon, The change makes a lot of sense. > >> > >> I am just wondering if we should upstream the netlink.h change first? > >> To me, it

[ovs-dev] [PATCH] stream-fd: Merge stream-fd-windows and stream-fd-unix.

2014-10-17 Thread Gurucharan Shetty
There was not much difference between the two files after moving all of the Windows socket HANDLE polling functionality to poll-loop.c. So merge them together. Signed-off-by: Gurucharan Shetty --- lib/automake.mk |5 +- lib/stream-fd-windows.c | 270 -

Re: [ovs-dev] [PATCH] stream-tcp: Call setsockopt TCP_NODELAY after TCP is connected for Windows.

2014-10-17 Thread Gurucharan Shetty
On Tue, Oct 7, 2014 at 2:25 PM, Ben Pfaff wrote: > On Thu, Oct 02, 2014 at 08:16:56AM -0700, Gurucharan Shetty wrote: >> On Windows platform, TCP_NODELAY can only be set when TCP is established. >> The current code does not create any problems while running unit tests >> (because connections get e

[ovs-dev] [PATCH v5] datapath-windows: netdev-windows fixes for vswitchd bringup.

2014-10-17 Thread Ankur Sharma
Added the handlers for update_flags and set_etheraddr. These handlers were needed for vswitchd bringup on windows platform. Signed-off-by: Ankur Sharma Acked-by: Nithin Raju --- lib/netdev-windows.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git

Re: [ovs-dev] [PATCH] lib/classifier: Make classifier iteration more robust.

2014-10-17 Thread Jarno Rajahalme
I’ll see if we can make the iteration both safe and lockless, so there is no need to review this patch at this moment. Jarno On Oct 16, 2014, at 4:24 PM, Jarno Rajahalme wrote: > This patch changes the classifier internal mutex to a recursive type. > This allows simplification of locking dur

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Pravin Shelar
On Fri, Oct 17, 2014 at 12:16 AM, Simon Horman wrote: > On Thu, Oct 16, 2014 at 04:50:10PM -0700, Andy Zhou wrote: >> Simon, The change makes a lot of sense. >> >> I am just wondering if we should upstream the netlink.h change first? >> To me, it seems to add a new compat API that does not exist u

Re: [ovs-dev] [PATCH] Add OpenFlow support for 802.1AD Ethertype

2014-10-17 Thread Dave Benson
Ben, Thanks for your thoughtful comments. Apologies for my late reply... Dave. On Fri, Oct 10, 2014 at 6:43 PM, Ben Pfaff wrote: > On Fri, Oct 10, 2014 at 10:06:29AM -0400, Dave Benson wrote: > > Previous behavior forced the use of the 802.1Q Ethertype for all VLAN > headers. > > In order to

Re: [ovs-dev] [PATCH 4/4] lib/netlink-socket.c: fixes in nl_sock_recv__() on Windows

2014-10-17 Thread Ankur Sharma
Hi Nithin, Please find my comments inline. Regards, Ankur From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 4/4] lib/netlink-socket.c: fixes in nl_sock_recv__() on Windows

Re: [ovs-dev] [PATCH 2/4] datapath-windows: fixes in Flow.c in key parsing

2014-10-17 Thread Ankur Sharma
Hi Nithin, While reading the ETHERTYPE attribute we already use ntohs. Regards, Ankur From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/4] datapath-windows: fixes in Flow.c i

Re: [ovs-dev] [PATCH] xenserver: Add ovs-docker to the spec file.

2014-10-17 Thread Ben Pfaff
On Thu, Oct 16, 2014 at 05:54:30PM -0700, Gurucharan Shetty wrote: > Fixes a rpmbuild failure. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 3/4] datapath-windows: Fixes in packet created for userspace

2014-10-17 Thread Ankur Sharma
Hi Nithin, Changes look fine. Please find a minor comment inline. Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/4] datapath-windows: Fixes in pack

Re: [ovs-dev] [PATCH 1/4] datapath-windows: event read should not fail when no events

2014-10-17 Thread Ankur Sharma
Acked-by: Ankur Sharma From: dev on behalf of Nithin Raju Sent: Thursday, October 16, 2014 10:52 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 1/4] datapath-windows: event read should not fail when no events The semantics are read operation

Re: [ovs-dev] [PATCH 2/2] rhel:Change service providers to 'openvswitch'

2014-10-17 Thread Ben Pfaff
Thanks. I marked Dongdong as the author and retained his Signed-off-by, and changed your Signed-off-by to an Acked-by to indicate that you reviewed and approved. I applied this to master. Thanks again! On Fri, Oct 17, 2014 at 01:43:10AM +, Lichunhe wrote: > We work together, and talk about

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Support BFD, CFM, carrier, and LACP for port liveness.

2014-10-17 Thread Ben Pfaff
I'm happy to hear that it works for you. Thank you for testing! On Fri, Oct 17, 2014 at 07:41:38AM +, Niels van Adrichem wrote: > Sorry for my late reply, I am on a different timezone (Amsterdam time, > GMT+2). > > It is good to bring back the amounts of operations in > odp_port_is_alive() a

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Support BFD, CFM, carrier, and LACP for port liveness.

2014-10-17 Thread Niels van Adrichem
Sorry for my late reply, I am on a different timezone (Amsterdam time, GMT+2). It is good to bring back the amounts of operations in odp_port_is_alive() as it is checked at every packet, hence a single variable containing a summary of all combinations is the right way. To answer your question, th

[ovs-dev] Returned mail: see transcript for details

2014-10-17 Thread Mail Administrator
Your message was not delivered due to the following reason: Your message could not be delivered because the destination server was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely the

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Simon Horman
On Thu, Oct 16, 2014 at 04:50:10PM -0700, Andy Zhou wrote: > Simon, The change makes a lot of sense. > > I am just wondering if we should upstream the netlink.h change first? > To me, it seems to add a new compat API that does not exist upstream. Sure, I think that makes sense. Though I'm not sur

Re: [ovs-dev] [PATCH v4 6/7] dpif-xlate: Snoop multicast packets and send them properly

2014-10-17 Thread Wuyunfei
Hi Flavio! I was recently doing some develop job on igmp snooping base on ovs, but found failed to add route port to mrouter list. As I looking into this patch, I found that an igmp query must have a source network address to make the in_port adding to the mrouter , while the igmp querier, whic