Re: [ovs-dev] 回复: [PATCH] ovn-northd: Add logical flows to reply ICMP echo requests for all the other router ports connected to one switch

2017-06-12 Thread Wei Li
I read the code and find this datapath/conntrack.c : 982 if (info->nat && !(key->ct_state & OVS_CS_F_NAT_MASK) && (nf_ct_is_confirmed(ct) || info->commit) && ovs_ct_nat(net, key, info, skb, ct, ctinfo) != NF_ACCEPT) { return -EINVAL; } I think

Re: [ovs-dev] [PATCH v3] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread santosh
Hi Ben, On Monday 12 June 2017 08:30 PM, Stokes, Ian wrote: >> Some pmd driver(e.g: vNIC thunderx PMD) want mbuf_size to be multiple of >> cache_line_size. With out this fix, Netdev-dpdk initialization would fail >> for those PMD. >> >> Signed-off-by: Santosh Shukla >> Acked-by: Mark Kavanagh >

[ovs-dev] [PATCH] datapath-windows: Add support for UPDATE events in Conntrack

2017-06-12 Thread Anand Kumar
- Parse netlink ct attr OVS_CT_ATTR_EVENTMASK - Add a new CT_EVENT_TYPE, OVS_EVENT_CT_UPDATE which is triggered only when CT_ATTR_EVENTMASK is set for MARK and LABEL updates. Signed-off-by: Anand Kumar --- datapath-windows/include/OvsDpInterfaceCtExt.h | 1 + datapath-windows/ovsext/Con

Re: [ovs-dev] [patch_v2 1/3] hash: New helper functions for adding words in a buffer to a hash.

2017-06-12 Thread Ben Pfaff
On Fri, Jun 09, 2017 at 03:30:42PM -0700, Darrell Ball wrote: > From: Ben Pfaff > > These will receive their first user (outside of hash.h) in the following > commit. > > Signed-off-by: Ben Pfaff > Acked-by: Darrell Ball Thanks! I applied this series to master. __

Re: [ovs-dev] [RFC] treewide: undefined behavior, passing null in nonnull parameters

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 08:06:01PM -0400, Lance Richardson wrote: > Eliminate a number of instances of undefined behavior related to > passing NULL in parameters having "nonnull" annotations. > > Found with gcc's undefined behavior sanitizer. > > Signed-off-by: Lance Richardson > --- > > Postin

[ovs-dev] [PATCH] byte-order: Fix undefined behavior of BYTES_TO_BE32.

2017-06-12 Thread Ben Pfaff
A left shift that would produce a result that is not representable by the type of the expression's result has "undefined behavior" according to the C language standard. Avoid this by casting values that could set the upper bit to unsigned types. Also document and convert a macro to a function. Wh

Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 07:36:48PM -0400, Lance Richardson wrote: > > > - Original Message - > > From: "Greg Rose" > > To: "Lance Richardson" > > Cc: d...@openvswitch.org > > Sent: Monday, 12 June, 2017 6:44:43 PM > > Subject: Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with >

Re: [ovs-dev] [PATCH v2] testsuite: exit gracefully if it fails.

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 09:33:50PM -0700, Ben Pfaff wrote: > On Mon, Jun 12, 2017 at 04:21:04PM -0700, Joe Stringer wrote: > > On 9 June 2017 at 08:58, Flavio Leitner wrote: > > > The daemon is killed leaving resources behind when a test fails. > > > This fixes to first signal the daemon to exit g

Re: [ovs-dev] [PATCH v2] testsuite: exit gracefully if it fails.

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 04:21:04PM -0700, Joe Stringer wrote: > On 9 June 2017 at 08:58, Flavio Leitner wrote: > > The daemon is killed leaving resources behind when a test fails. > > This fixes to first signal the daemon to exit gracefully. > > > > Fixes: 0f28164be02ac ("netdev-linux: make tap de

Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results

2017-06-12 Thread Greg Rose
On 06/12/2017 04:36 PM, Lance Richardson wrote: - Original Message - > From: "Greg Rose" > To: "Lance Richardson" > Cc: d...@openvswitch.org > Sent: Monday, 12 June, 2017 6:44:43 PM > Subject: Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results > > On 06/

[ovs-dev] [RFC] treewide: undefined behavior, passing null in nonnull parameters

2017-06-12 Thread Lance Richardson
Eliminate a number of instances of undefined behavior related to passing NULL in parameters having "nonnull" annotations. Found with gcc's undefined behavior sanitizer. Signed-off-by: Lance Richardson --- Posting this as RFC because there is no apparent risk of unwanted compiler optimizations r

[ovs-dev] OVN Load Balancing Feedback

2017-06-12 Thread Kevin Lin
Hello, My name is Kevin Lin and I work with Ethan on Quilt (quilt.io). We just started using load balancing for the project -- Ethan wanted me to write to you all with feedback on the load balancer, and to get some feedback on our approach. For context, we have a number of containers connected to

Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results

2017-06-12 Thread Lance Richardson
- Original Message - > From: "Greg Rose" > To: "Lance Richardson" > Cc: d...@openvswitch.org > Sent: Monday, 12 June, 2017 6:44:43 PM > Subject: Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with > unrepresentable results > > On 06/12/2017 01:13 PM, Lance Richardson wrote: > > A

Re: [ovs-dev] [PATCH v2] testsuite: exit gracefully if it fails.

2017-06-12 Thread Joe Stringer
On 9 June 2017 at 08:58, Flavio Leitner wrote: > The daemon is killed leaving resources behind when a test fails. > This fixes to first signal the daemon to exit gracefully. > > Fixes: 0f28164be02ac ("netdev-linux: make tap devices persistent") > Suggested-by: Joe Stringer > Co-authored-by: Ben P

Re: [ovs-dev] [PATCH 4/4] ovn-controller: Use separate thread for packet-in processing.

2017-06-12 Thread Han Zhou
On Thu, Jun 8, 2017 at 6:20 PM, Ben Pfaff wrote: > > On Thu, Jun 08, 2017 at 04:21:17PM -0700, Han Zhou wrote: > > On Thu, Jun 8, 2017 at 4:14 PM, Ben Pfaff wrote: > > > > > > On Tue, Jun 06, 2017 at 05:24:19PM -0700, Han Zhou wrote: > > > > On Tue, Jun 6, 2017 at 3:56 PM, Ben Pfaff wrote: > > >

[ovs-dev] [PATCH 24/31] fixup: Style.

2017-06-12 Thread Ben Pfaff
This keeps lines from exceeding 79 columns. Signed-off-by: Ben Pfaff --- lib/ofp-print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 5b37ed8f46ba..6b994cd17c94 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -218,9 +218,

[ovs-dev] [PATCH 31/31] fixup: Allow non-Ethernet packets anywhere.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto.c | 6 -- tests/ofproto.at | 23 --- 2 files changed, 29 deletions(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 5794dfd54fc5..f5aaf0b1fd44 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -3483,12 +348

[ovs-dev] [PATCH 29/31] fixup: Style.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/ofp-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index d7f74c949ed7..528b75b4f4e1 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -674,7 +674,7 @@ parse_ofp_packet_out_str__(struct ofputil_pack

[ovs-dev] [PATCH 25/31] fixup: Don't suppress packet_type.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 5 - 1 file changed, 5 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 33af5e0a29e4..c7df2d1bdc38 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -4296,11 +

[ovs-dev] [PATCH 30/31] fixup: Update test expected results.

2017-06-12 Thread Ben Pfaff
The code now suppresses the default packet_type. Signed-off-by: Ben Pfaff --- tests/ofp-print.at | 12 ++-- tests/ofproto.at | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/ofp-print.at b/tests/ofp-print.at index fc444f62bf4c..a00e3f3fe74b 100644 --- a/tes

[ovs-dev] [PATCH 26/31] fixup: Remove root-only test.

2017-06-12 Thread Ben Pfaff
Tests that modify the system state or that require special privileges should only be in the system tests, not the regular unit tests. Signed-off-by: Ben Pfaff --- tests/packet-type-aware.at | 462 - 1 file changed, 462 deletions(-) diff --git a/tests/

[ovs-dev] [PATCH 27/31] userspace: Introduce packet_type in OF 1.5 packet-out

2017-06-12 Thread Ben Pfaff
From: Zoltán Balogh Introducing packet_type in OF 1.5 packet-out. Partly based on Jean Tourrilhes's work. Add test cases for OF1.5 packet-out Add negative test case for OF1.5 packet-out Modify wildcarding and packet-out test printout. Signed-off-by: Jean Tourrilhes Signed-off-by: Zoltan Balogh

[ovs-dev] [PATCH 28/31] fixup: Make tests set legacy-l3-pipeline instead of packet-type-aware.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- tests/ofproto.at| 4 ++-- tests/system-userspace-packet-type-aware.at | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ofproto.at b/tests/ofproto.at index dc0a90c873ed..67eeced58ebd 100644 --- a/tests/ofproto.at

Re: [ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results

2017-06-12 Thread Greg Rose
On 06/12/2017 01:13 PM, Lance Richardson wrote: A left shift that would produce a result that is not representable by the type of the expression's result has "undefined behavior" according to the C language standard. Avoid this by casting values that could set the upper bit to unsigned types. Fo

[ovs-dev] [PATCH] sandbox: ovn rbac support for sandbox environment

2017-06-12 Thread Lance Richardson
Enable OVN_Southbound RBAC by default in the sandbox environment, provide a new option "--no-ovn-rbac" to disable it. Signed-off-by: Lance Richardson --- tutorial/ovs-sandbox | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tutorial/ovs-sandbox b/tutorial/ov

[ovs-dev] [PATCH 21/31] tests: Added unit tests in packet-type-aware.at

2017-06-12 Thread Ben Pfaff
From: Jan Scheurich ptap - create packet-type-aware bridge ptap - legal flow entries in ptap bridge ptap - triangle bridge setup with L2 and L3 GRE tunnels First and second unit tests perform basic verification. The third one is a triangular bridge setup test case. It tests dataplane in non-

[ovs-dev] [PATCH 23/31] userspace: Complete Packet In handling

2017-06-12 Thread Ben Pfaff
From: Jan Scheurich Send packet_in for non-Ethernet packets. Include packet_type in Packet In for ptap bridges. Signed-off-by: Jan Scheurich Signed-off-by: Ben Pfaff --- lib/flow.c | 4 lib/ofp-print.c | 3 +-- ofproto/ofproto-dpif-xlate.c | 10 +-

[ovs-dev] [PATCH 22/31] fixup: Adapt tests to revised policy.

2017-06-12 Thread Ben Pfaff
Since packet_type is now accepted on any bridge, there's no need to test for it being rejected. Signed-off-by: Ben Pfaff --- tests/packet-type-aware.at | 59 +- 1 file changed, 6 insertions(+), 53 deletions(-) diff --git a/tests/packet-type-aware.at b

[ovs-dev] [PATCH 20/31] fixup: Clarify how legacy L3 tunnels work.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 2 +- ofproto/tunnel.c | 17 ofproto/tunnel.h | 2 +- vswitchd/vswitch.xml | 62 4 files changed, 58 insertions(+), 25 deletions(-) diff --git a

[ovs-dev] [PATCH 19/31] fixup: Coding style.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/netdev-native-tnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-native-tnl.c b/lib/netdev-native-tnl.c index 515b9948cabb..7f3cf984e887 100644 --- a/lib/netdev-native-tnl.c +++ b/lib/netdev-native-tnl.c @@ -580,7 +580,7 @@ netdev

[ovs-dev] [PATCH 18/31] fixup: Fix locking in netdev-native-tnl.

2017-06-12 Thread Ben Pfaff
Locks weren't always released on error paths. Signed-off-by: Ben Pfaff --- lib/netdev-native-tnl.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/netdev-native-tnl.c b/lib/netdev-native-tnl.c index 658c871015f9..515b9948cabb 100644 --- a/lib/netdev-native-tnl

[ovs-dev] [PATCH 17/31] userspace: Handling of versatile tunnel ports

2017-06-12 Thread Ben Pfaff
From: Jan Scheurich In netdev_gre_build_header(), GRE protocol and VXLAN next_potocol is set based on packet_type of flow. If it's about an Ethernet packet, it is set to ETP_TYPE_TEB. Otherwise, if the name space is OFPHTN_ETHERNET, it is set according to the name space type. Signed-off-by: Jan

[ovs-dev] [PATCH 15/31] fixup: Change from global modal behavior to L3 tunnel only mode.

2017-06-12 Thread Ben Pfaff
The policy originally proposed by this patch series was to make support for a packet type aware pipeline a property of each bridge, via other-config:packet-type-aware. Global modes like this have implications for testing, that mean that many features need to be tested in both modes. This commit c

[ovs-dev] [PATCH 16/31] ofp-util: Remove prototype for unimplemented function.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- include/openvswitch/ofp-util.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/openvswitch/ofp-util.h b/include/openvswitch/ofp-util.h index bbf6ffec5dd3..07723b427ce8 100644 --- a/include/openvswitch/ofp-util.h +++ b/include/openvswitch/ofp-util.h @@ -24

[ovs-dev] [PATCH 14/31] nx-match: Add context argument to nxm_put__().

2017-06-12 Thread Ben Pfaff
An upcoming commit will need to pass an extra piece of data from nx_put_raw() into all of its direct and indirect calls to nxm_put__(). This commit prepares for that by switching from a "struct ofpbuf *" parameter to a context structure that, currently, contains just a struct ofpbuf *. The upcomin

[ovs-dev] [PATCH 06/31] fixup: Always match on packet_type in datapath flows.

2017-06-12 Thread Ben Pfaff
The packet type is even more basic to a packet than L2 fields, which OVS has always matched on for a long time. It simplifies reasoning about flow translation to simply always include the match in ODP translation. At the same time, when we're displaying an OpenFlow flow, as opposed to a datapath

[ovs-dev] [PATCH 13/31] ofpbuf: New function ofpbuf_insert().

2017-06-12 Thread Ben Pfaff
This will receive its first users in an upcoming commit. Signed-off-by: Ben Pfaff --- include/openvswitch/ofpbuf.h | 1 + lib/ofpbuf.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/include/openvswitch/ofpbuf.h b/include/openvswitch/ofpbuf.h index bc25b

[ovs-dev] [PATCH 11/31] fixup: Wrap docs to 79 columns.

2017-06-12 Thread Ben Pfaff
Also, OVS really supports the packet-type field in any version, since it accepts OXM even in OpenFlow 1.0. Signed-off-by: Ben Pfaff --- vswitchd/vswitch.xml | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 829c13688f31

[ovs-dev] [PATCH 12/31] fixup: Move compose_output_action__() code back where it started.

2017-06-12 Thread Ben Pfaff
A previous patch moved this but it's not clear why, so move it back. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index

[ovs-dev] [PATCH 09/31] fixup: Need OFPBMC_BAD_TYPE in OF1.0 since it can now be used there.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- include/openvswitch/ofp-errors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/openvswitch/ofp-errors.h b/include/openvswitch/ofp-errors.h index aeb58e012fd3..7d75386352d8 100644 --- a/include/openvswitch/ofp-errors.h +++ b/include/open

[ovs-dev] [PATCH 10/31] fixup: Revalidate if 'packet-type-aware' setting changes.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 9 + ofproto/ofproto-provider.h | 3 +++ ofproto/ofproto.c | 7 ++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 752d2304a163..098db18c7ffa 100644

[ovs-dev] [PATCH 08/31] userspace: Add bridge property 'packet-type-aware'

2017-06-12 Thread Ben Pfaff
From: Jan Scheurich New boolean parameter "other-config:packet-type-aware' in bridge table. Pass non-Ethernet packets unchanged into packet-type-aware bridges. Do not convert packet type when sending packet from packet-type-aware bridge to a port. Only include field MFF_PACKET_TYPE in matchabale

[ovs-dev] [PATCH 07/31] ofp-parse: Allow "packet_type(0, 0)" to be abbreviated "eth".

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/meta-flow.xml | 2 ++ lib/ofp-parse.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/meta-flow.xml b/lib/meta-flow.xml index 82daaaffcb44..283a1cb0bcb8 100644 --- a/lib/meta-flow.xml +++ b/lib/meta-flow.xml @@ -314,6 +314,8 @@ tcp,tp_src=0x07c0/0xfff

[ovs-dev] [PATCH 05/31] fixup: Coding style.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/flow.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/flow.h b/lib/flow.h index e76adac7e0d4..f61d6c3aa106 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -83,8 +83,7 @@ void format_flags(struct ds *ds, const char *(*bit_to_string)(uint32_t

[ovs-dev] [PATCH 04/31] fixup: Improve documentation.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/meta-flow.xml | 131 +- 1 file changed, 90 insertions(+), 41 deletions(-) diff --git a/lib/meta-flow.xml b/lib/meta-flow.xml index c94288e4c294..82daaaffcb44 100644 --- a/lib/meta-flow.xml +++ b/lib/meta-flow.xm

[ovs-dev] [PATCH 01/31] userspace: Add OXM field MFF_PACKET_TYPE

2017-06-12 Thread Ben Pfaff
From: Jan Scheurich Allow packet type namespace OFPHTN_ETHERTYPE as alternative pre-requisite for matching L3 protocols (MPLS, IP, IPv6, ARP etc). Change the meta-flow definition of packet_type field to use the new custom format MFS_PACKET_TYPE representing "(NS,NS_TYPE)". Parsing routine for M

[ovs-dev] [PATCH 03/31] fixup: Make packet_type formatting more like other fields.

2017-06-12 Thread Ben Pfaff
I don't see value in making packet_type formatting different from other fields. Also, format_packet_type_masked() added a trailing comma to its output, which is surprising, so this patch removes it. Signed-off-by: Ben Pfaff --- lib/flow.c | 42 --- lib/match.c

[ovs-dev] [PATCH 02/31] fixup: packet_type originated in OpenFlow 1.5, not 1.3.

2017-06-12 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- include/openvswitch/meta-flow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h index 3a17d7b0618e..fc109501d869 100644 --- a/include/openvswitch/meta-flow.h +++ b/include/openvs

[ovs-dev] [PATCH 00/31] Packet type aware pipeline

2017-06-12 Thread Ben Pfaff
This series is based on Zoltan Balogh's series here: https://patchwork.ozlabs.org/patch/770490/ https://patchwork.ozlabs.org/patch/770487/ https://patchwork.ozlabs.org/patch/770495/ https://patchwork.ozlabs.org/patch/770498/ https://patchwork.ozlabs.org/patch/770488/ https://patchwork.ozlabs.org/pa

[ovs-dev] Boat Owners List

2017-06-12 Thread Herbert Lewis
Greetings! Would you be interested in reviewing our *Boat Owners List* within the USA ? *Our Databases Include:-* *1.* Sailboat Owners List *2.* Powerboat Owners List *3.* Harley Davidson Owners List *4.* Travelers List *5.* Cruise Travelers List *6.* Fishing Enthusiasts List *7.* Outdoor En

[ovs-dev] [PATCH] ovs-ctl: allow gdb as a wrapper

2017-06-12 Thread Aaron Conole
It has been useful to attach gdb to the running process. With this commit we make it a little easier, as the daemon will have a gdbserver process attached and listening on a specific port. Signed-off-by: Aaron Conole --- utilities/ovs-ctl.in | 2 +- utilities/ovs-lib.in | 14 ++ 2

[ovs-dev] [PATCH] byte-order: avoid left shifts with unrepresentable results

2017-06-12 Thread Lance Richardson
A left shift that would produce a result that is not representable by the type of the expression's result has "undefined behavior" according to the C language standard. Avoid this by casting values that could set the upper bit to unsigned types. Found via gcc's undefined behavior sanitizer. Signe

Re: [ovs-dev] [PATCH v9 1/4] datapath-windows: Add support for NAT in conntrack

2017-06-12 Thread Guru Shetty
On 9 June 2017 at 15:16, Yin Lin wrote: > From: Anand Kumar > > Add support for parsing netlink attributes related to NAT > in conntrack. > > Co-Authored-by: Yin Lin > Co-Authored-by: Darrell Ball > Signed-off-by: Anand Kumar > Signed-off-by: Yin Lin > Signed-off-by: Darrell Ball > Thanks.

Re: [ovs-dev] [RFC PATCH v2 03/19] Keepalive: Add initial keepalive support.

2017-06-12 Thread Aaron Conole
Hi Bhanu, Bhanuprakash Bodireddy writes: > This commit introduces the initial keepalive support by adding > 'keepalive' module and also helper and initialization functions > that will be invoked by later commits. > > This commit adds new ovsdb column "keepalive". It shows the overall > datapath

Re: [ovs-dev] [PATCH] treewide: Fix spelling of "prerequisites".

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 08:18:22AM -0700, Greg Rose wrote: > On 06/09/2017 07:47 PM, Ben Pfaff wrote: > >Signed-off-by: Ben Pfaff > > > > > Acked-by: Greg Rose Thanks! I applied this to master. ___ dev mailing list d...@openvswitch.org https://mail.op

Re: [ovs-dev] [PATCH] ofp-actions: Properly interpret "output:in_port".

2017-06-12 Thread Ben Pfaff
Thanks for the ack. I applied this to master and branch-2.7. On Mon, Jun 12, 2017 at 10:24:06AM -0700, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme mailto:ja...@ovn.org>> > > Maybe it would be worthwhile elaborating on the subtle difference in the > commit message? I.e., “in_port” should

Re: [ovs-dev] [PATCH] ofp-util: Initialize tunnel metadata for OpenFlow 1.0 matches.

2017-06-12 Thread Ben Pfaff
On Mon, Jun 12, 2017 at 01:24:37PM -0400, Lance Richardson wrote: > > From: "Ben Pfaff" > > To: d...@openvswitch.org > > Cc: "Ben Pfaff" > > Sent: Monday, 12 June, 2017 12:54:42 PM > > Subject: [ovs-dev] [PATCH] ofp-util: Initialize tunnel metadata for > > OpenFlow1.0 matches. > > > > F

Re: [ovs-dev] [RFC PATCH v2 04/19] bridge: Invoke keepalive framework.

2017-06-12 Thread Aaron Conole
Hi Bhanu, Bhanuprakash Bodireddy writes: > With this commit the keepalive framework is invoked when enable-keepalive > is set to 'true' in ovsdb. As part of initialization the shared memory block > is created and initialized. Also the keepalive data structure is initialized > and the callback fu

Re: [ovs-dev] [PATCH] ofp-util: Initialize tunnel metadata for OpenFlow 1.0 matches.

2017-06-12 Thread Lance Richardson
> From: "Ben Pfaff" > To: d...@openvswitch.org > Cc: "Ben Pfaff" > Sent: Monday, 12 June, 2017 12:54:42 PM > Subject: [ovs-dev] [PATCH] ofp-util: Initialize tunnel metadata for OpenFlow > 1.0 matches. > > Found by valgrind. > > Signed-off-by: Ben Pfaff > --- > lib/ofp-util.c | 1 + > 1 file

Re: [ovs-dev] [PATCH] ofp-actions: Properly interpret "output:in_port".

2017-06-12 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme mailto:ja...@ovn.org>> Maybe it would be worthwhile elaborating on the subtle difference in the commit message? I.e., “in_port” should match to special OpenFlow port number that outputs to the incoming port, while normally output to the incoming port would be suppresse

[ovs-dev] [RFC PATCH v2 19/19] Documentation: Update DPDK doc with Keepalive feature.

2017-06-12 Thread Bhanuprakash Bodireddy
Keepalive feature is aimed at achieving Fastpath Service Assurance in OVS-DPDK deployments. It adds support for monitoring the packet processing cores(PMD thread cores) by dispatching heartbeats at regular intervals. Incase of heartbeat misses additional health checks are enabled on the PMD thread

[ovs-dev] [RFC PATCH v2 18/19] keepalive: Display extended Keepalive status.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds support to display the extended keepalive statistics stored in SHM block. The status can be displayed as follows. $ ovs-appctl keepalive/pmd-xstats-show keepAlive Status : Enabled keepAlive Interval: 1000 ms CORE: 0 PMD thread id : 1269 [ACTIVE] PMD he

[ovs-dev] [RFC PATCH v2 16/19] keepalive: Check the PMD cycle stats as part of PMD health checks.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds the support to check the PMD cycle stats. If the cycles aren't changing for a duration of time this can be flagged as possible PMD stall. Signed-off-by: Bhanuprakash Bodireddy --- lib/dpif-netdev.c | 18 +++--- lib/dpif-netdev.h | 6 ++ lib/keepalive.c | 52 ++

[ovs-dev] [RFC PATCH v2 17/19] netdev-dpdk: Enable PMD health checks on heartbeat failure.

2017-06-12 Thread Bhanuprakash Bodireddy
The keepalive thread sends heartbeats to PMD thread and when PMD fails to respond to successive heartbeats the PMD is potentially stalled. The PMD state transition is as below: ALIVE -> MISSING -> DEAD -> GONE This commit enables PMD healthchecks when PMD doesn't respond to heartbeats. This is ne

[ovs-dev] [RFC PATCH v2 15/19] keepalive: Check the packet statistics as part of PMD health checks.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds the support to check the packet statistics on the port polled by PMD thread. If the packets aren't processed due to PMD thread stall/deadlock the statistics wont update and this can be used by monitoring framework to confirm PMD failure. This mechanism has limitation with MQ enabl

[ovs-dev] [RFC PATCH v2 14/19] keepalive: Check the link status as part of PMD health checks.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds the initial support in to performing PMD health checks. The ports handled by the PMD threads are checked for the link status and the same is updated in to SHM block. Signed-off-by: Bhanuprakash Bodireddy --- lib/dpif-netdev.c | 42 -- lib/keepalive.c

[ovs-dev] [RFC PATCH v2 13/19] dpif-netdev: Add additional datapath health checks.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit enables additional datapath health checks. The checks are enabled only on a PMD heartbeat failure. On missing three successive heartbeats additional health checks needs to be performed on respective PMD thread to confirm the failure. The datapath health is monitored periodically from k

[ovs-dev] [RFC PATCH v2 12/19] dpif-netdev: Add helper function to check false positives.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds an API to store the PMD thread id in SHM block. The tid later shall be retrieved by callback function that gets invoked to check for false positives. Signed-off-by: Bhanuprakash Bodireddy --- lib/dpif-netdev.c | 1 + lib/keepalive.c | 23 +++ lib/keepalive

[ovs-dev] [RFC PATCH v2 11/19] keepalive: Add support to query keepalive status.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds support to query if keepalive status is enabled/disabled. $ ovs-appctl keepalive/status keepAlive Status: Enabled Signed-off-by: Bhanuprakash Bodireddy --- lib/keepalive.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/lib/keepalive.c b/lib/keepalive

[ovs-dev] [RFC PATCH v2 09/19] bridge: Update keepalive status in OVSDB

2017-06-12 Thread Bhanuprakash Bodireddy
This commit allows vswitchd thread to update the OVSDB with the datapath status along with the status of all registered PMD threads. The status can be monitored using ovsdb-client. $ ovsdb-client monitor Open_vSwitch Open_vSwitch keepalive rowaction keepalive 7b7

[ovs-dev] [RFC PATCH v2 10/19] keepalive: Add support to query keepalive statistics.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds support to query keepalive statistics stored in posix shared memory block. Datapath health status can be retrieved as follows: $ ovs-appctl keepalive/pmd-health-show Keepalive status keepalive status : Enabled keepalive interval: 1000 ms CORESTATE

[ovs-dev] [RFC PATCH v2 08/19] keepalive: Retrieve PMD status periodically.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit implements APIs to retrieve the PMD thread status and return the status in the below format for each PMD thread. Format: CORE_="STATUS, last_seen_timestamp" eg: CORE_1="ALIVE,9220698256784207" CORE_2="GONE,9220698256786231" The status is periodically retrieved by kee

[ovs-dev] [RFC PATCH v2 07/19] dpif-netdev: Enable heartbeats for DPDK datapath.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit adds heartbeat mechanism support for DPDK datapath. Heartbeats are sent to registered PMD threads at predefined intervals (as set in ovsdb with 'keepalive-interval'). The heartbeats are only enabled when there is atleast one port added to the bridge and with active PMD thread polling t

[ovs-dev] [RFC PATCH v2 06/19] dpif-netdev: Register packet processing cores to KA framework.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit registers the packet processing PMD cores to keepalive framework. Only PMDs that have rxqs mapped will be registered and actively monitored by KA framework. This commit spawns a keepalive thread that will dispatch heartbeats to PMD cores. The pmd threads respond to heartbeats by markin

[ovs-dev] [RFC PATCH v2 05/19] keepalive: Add more helper functions to KA framework.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit introduces helper functions in 'keepalive' module that are needed to register/unregister PMD threads to KA framework. Also introduce APIs to mark the PMD core states. Signed-off-by: Bhanuprakash Bodireddy --- lib/keepalive.c | 56 ++

[ovs-dev] [RFC PATCH v2 04/19] bridge: Invoke keepalive framework.

2017-06-12 Thread Bhanuprakash Bodireddy
With this commit the keepalive framework is invoked when enable-keepalive is set to 'true' in ovsdb. As part of initialization the shared memory block is created and initialized. Also the keepalive data structure is initialized and the callback functions are registered if DPDK datapath is enabled.

[ovs-dev] [RFC PATCH v2 03/19] Keepalive: Add initial keepalive support.

2017-06-12 Thread Bhanuprakash Bodireddy
This commit introduces the initial keepalive support by adding 'keepalive' module and also helper and initialization functions that will be invoked by later commits. This commit adds new ovsdb column "keepalive". It shows the overall datapath status and the health of the cores running datapath thr

[ovs-dev] [RFC PATCH v2 02/19] process: Retrieve process status.

2017-06-12 Thread Bhanuprakash Bodireddy
Implement helper function to retrieve the process status. This will be used by keepalive monitoring thread to detect false alarms and to show PMD thread state in future commits. Signed-off-by: Bhanuprakash Bodireddy --- lib/process.c | 73 +

[ovs-dev] [RFC PATCH v2 00/19] Add OVS DPDK keep-alive functionality

2017-06-12 Thread Bhanuprakash Bodireddy
Keepalive feature is aimed at achieving Fastpath Service Assurance in OVS-DPDK deployments. It adds support for monitoring the packet processing cores(PMD thread cores) by dispatching heartbeats at regular intervals. Incase of heartbeat misses additional health checks are enabled on the PMD thread

[ovs-dev] [RFC PATCH v2 01/19] dpdk: Add helper functions for DPDK datapath keepalive.

2017-06-12 Thread Bhanuprakash Bodireddy
Introduce helper functions in 'dpdk' module that are needed for DPDK keepalive functionality. Also add dummy functions in 'dpdk-stub' module that are needed when DPDK datapath is not available. Signed-off-by: Bhanuprakash Bodireddy --- lib/dpdk-stub.c | 24 lib/dpdk.c

[ovs-dev] [PATCH] ofp-util: Initialize tunnel metadata for OpenFlow 1.0 matches.

2017-06-12 Thread Ben Pfaff
Found by valgrind. Signed-off-by: Ben Pfaff --- lib/ofp-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 601a719797e5..da171cdf6fe5 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -159,6 +159,7 @@ ofputil_match_from_ofp10_match(const struct ofp

Re: [ovs-dev] [PATCH] doc: Add more details for in_port.

2017-06-12 Thread Ben Pfaff
On Fri, Jun 09, 2017 at 10:46:56PM -0700, nickcooper-zhangtonghao wrote: > When I test OvS openflow, I confuse the 'in_port' with > 'output:in_port'. I doc the openflow.rst and it may > help others to avoid it. > > Signed-off-by: nickcooper-zhangtonghao > --- > Documentation/faq/openflow.rst | 4

[ovs-dev] [PATCH] ofp-actions: Properly interpret "output:in_port".

2017-06-12 Thread Ben Pfaff
It was being misinterpreted as output:NXM_OF_IN_PORT[], which is subtly different and doesn't do anything useful. CC: Jarno Rajahalme Fixes: 21b2fa617126 ("ofp-parse: Allow match field names in actions and brackets in matches.") Reported-by: nickcooper-zhangtonghao Signed-off-by: Ben Pfaff ---

Re: [ovs-dev] [PATCH] treewide: Fix spelling of "prerequisites".

2017-06-12 Thread Greg Rose
On 06/09/2017 07:47 PM, Ben Pfaff wrote: Signed-off-by: Ben Pfaff --- lib/nx-match.c | 4 ++-- lib/ofp-actions.c| 2 +- ofproto/ofproto-dpif-xlate.c | 2 +- tests/ofproto-dpif.at| 8 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/l

Re: [ovs-dev] [PATCH V10 18/33] netdev-tc-offloads: Implement netdev flow put using tc interface

2017-06-12 Thread Roi Dayan
On 09/06/2017 23:04, Flavio Leitner wrote: On Thu, Jun 08, 2017 at 02:46:35PM +0300, Roi Dayan wrote: From: Paul Blakey Currently only tunnel offload is supported. Signed-off-by: Paul Blakey Reviewed-by: Roi Dayan Reviewed-by: Simon Horman --- Happy that there was no reason to hardcode

Re: [ovs-dev] [PATCH V10 02/33] tc: Introduce tc module

2017-06-12 Thread Roi Dayan
On 08/06/2017 17:30, Simon Horman wrote: On Thu, Jun 08, 2017 at 02:46:19PM +0300, Roi Dayan wrote: Add tc module to expose tc operations to be used by other modules. Move some tc related functions from netdev-linux.c to tc.c This patch doesn't change any functionality. Signed-off-by: Paul Bl

Re: [ovs-dev] [PATCH v3] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread Stokes, Ian
> Some pmd driver(e.g: vNIC thunderx PMD) want mbuf_size to be multiple of > cache_line_size. With out this fix, Netdev-dpdk initialization would fail > for those PMD. > > Signed-off-by: Santosh Shukla > Acked-by: Mark Kavanagh > Tested-by: Mark Kavanagh > --- > v1 --> v2 > - Removed mtu to dm

Re: [ovs-dev] [PATCH V10 05/33] tc: Add tc flower functions

2017-06-12 Thread Roi Dayan
On 09/06/2017 21:37, Flavio Leitner wrote: On Thu, Jun 08, 2017 at 02:46:22PM +0300, Roi Dayan wrote: Add tc helper functions to query and manipulate the flower classifier. Signed-off-by: Paul Blakey Co-authored-by: Roi Dayan Signed-off-by: Roi Dayan Acked-by: Flavio Leitner Not sure w

Re: [ovs-dev] [PATCH V10 01/33] netdev-linux: Refactor two tc functions

2017-06-12 Thread Roi Dayan
On 08/06/2017 17:24, Simon Horman wrote: On Thu, Jun 08, 2017 at 02:46:18PM +0300, Roi Dayan wrote: Refactor tc_make_request and tc_add_del_ingress_qdisc to accept ifindex instead of netdev struct. We later want to move those outside netdev-linux module to be used by other modules. This patch

[ovs-dev] [PATCH v3] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread Santosh Shukla
Some pmd driver(e.g: vNIC thunderx PMD) want mbuf_size to be multiple of cache_line_size. With out this fix, Netdev-dpdk initialization would fail for those PMD. Signed-off-by: Santosh Shukla Acked-by: Mark Kavanagh Tested-by: Mark Kavanagh --- v1 --> v2 - Removed mtu to dmp->mtu change in v2.

Re: [ovs-dev] [PATCH] dpif-netdev: add EMC entry count and %full figure to pmd-stats-show

2017-06-12 Thread Fischetti, Antonio
I think this patch adds a useful information to the PMD stats, especially for debugging/tuning purposes. In order to catch some performance degradation I've checked it with a simple port-2-port bidirectional test. I've checked with 1 flow, 10,000 and 100,000 flows (Ixia streams). In all cases I co

Re: [ovs-dev] [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread santosh
Hi Mark, On Monday 12 June 2017 07:28 PM, Kavanagh, Mark B wrote: >> From: Stokes, Ian >> Sent: Monday, June 12, 2017 1:41 PM >> To: Santosh Shukla ; b...@ovn.org; >> db...@vmware.com; >> d...@openvswitch.org >> Cc: ktray...@redhat.com; hemant.agra...@nxp.com; >> jerin.ja...@caviumnetworks.com;

Re: [ovs-dev] [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread Kavanagh, Mark B
>From: Stokes, Ian >Sent: Monday, June 12, 2017 1:41 PM >To: Santosh Shukla ; b...@ovn.org; >db...@vmware.com; >d...@openvswitch.org >Cc: ktray...@redhat.com; hemant.agra...@nxp.com; >jerin.ja...@caviumnetworks.com; Kavanagh, >Mark B >Subject: RE: [PATCH v2] netdev-dpdk: round up mbuf_size to ca

[ovs-dev] [RFC PATCH v6] Update relevant artifacts to add support for DPDK 17.05.

2017-06-12 Thread mweglicx
Patch is marked as RFC because of DPDK 17.05 possible crash: http://dpdk.org/dev/patchwork/patch/25012/ Upgrading to DPDK 17.05 adds new significant features relevant to OVS, including, but not limited to: - vhost pmd, - tun/tap PMD, - VFIO hotplug support, - Generic flow API. Following changes a

Re: [ovs-dev] [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread santosh
Hi Ian, On Monday 12 June 2017 06:11 PM, Stokes, Ian wrote: >> Subject: [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size >> >> Some pmd driver(e.g: vNIC thunderx PMD) want mbuf_size to be multiple of >> cache_line_size. With out this fix, Netdev-dpdk initialization would fail >> for

Re: [ovs-dev] [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size

2017-06-12 Thread Stokes, Ian
> Subject: [PATCH v2] netdev-dpdk: round up mbuf_size to cache_line_size > > Some pmd driver(e.g: vNIC thunderx PMD) want mbuf_size to be multiple of > cache_line_size. With out this fix, Netdev-dpdk initialization would fail > for those PMD. > > Signed-off-by: Santosh Shukla > --- > v1 --> v2 >

Re: [ovs-dev] [PATCH V9 05/31] netdev: Adding a new netdev API to be used for offloading flows

2017-06-12 Thread Roi Dayan
On 08/06/2017 20:08, Joe Stringer wrote: On 8 June 2017 at 05:05, Roi Dayan wrote: On 31/05/2017 04:37, Joe Stringer wrote: On 28 May 2017 at 04:59, Roi Dayan wrote: From: Paul Blakey Add a new API interface for offloading dpif flows to netdev. The API consist on the following: flo

[ovs-dev] [PATCH V2] netdev-dpdk: use rte_eth_dev_set_mtu

2017-06-12 Thread Mark Kavanagh
DPDK provides an API to set the MTU of compatible physical devices - rte_eth_dev_set_mtu(). Prior to DPDK v16.07 however, this API was not implemented in some DPDK PMDs (i40e, specifically). To allow the use of jumbo frames with affected NICs in OvS-DPDK, MTU configuration was achieved by setting t

Re: [ovs-dev] [PATCH] netdev-dpdk: use rte_eth_dev_set_mtu

2017-06-12 Thread Kavanagh, Mark B
>From: Aaron Conole [mailto:acon...@redhat.com] >Sent: Friday, June 9, 2017 8:26 PM >To: Kavanagh, Mark B >Cc: ovs-dev@openvswitch.org; Varghese, Vipin >Subject: Re: [ovs-dev] [PATCH] netdev-dpdk: use rte_eth_dev_set_mtu > >Hi Mark, > >Mark Kavanagh writes: > >> DPDK provides an API to set the M