[ovs-dev] [PATCHv5 10/12] revalidator: Reduce ukey contention.

2014-09-14 Thread Joe Stringer
, which is raised when flow setup is complete. By checking this flag before attempting to perform a trylock(), we can reduce lock contention between handler and revalidator threads. Signed-off-by: Joe Stringer --- v5: No change. v4: Use atomic_read_relaxed(). v2-v3: No change. --- ofproto/of

[ovs-dev] [PATCHv5 12/12] upcall: Distinguish duplicate upcalls from conflicts.

2014-09-14 Thread Joe Stringer
en we have generated the same UID hash for two different flows, and we should log a warning. Signed-off-by: Joe Stringer --- v5: Compare flow keys rather than hashes of flow keys. v4: Initial post. --- ofproto/ofproto-dpif-upcall.c | 38 -- 1 file change

[ovs-dev] [PATCHv5 11/12] revalidator: Distinguish new and duplicate flows.

2014-09-14 Thread Joe Stringer
We previously counted flows that have been installed during the current dump as duplicates, rather than recognising them as new flows. This patch separates the counters out for these two cases. Signed-off-by: Joe Stringer --- v5: No change. v4: Initial post. --- ofproto/ofproto-dpif-upcall.c

Re: [ovs-dev] [PATCH 1/2] ovs-dev.py: do not pass --enable-dummy to ovsdb

2014-09-14 Thread Joe Stringer
Thanks for the fix, I pushed this to master. On 13 September 2014 05:35, Daniele Di Proietto wrote: > --enable-dummy was useless anyway for ovsdb-server. Now it is an error to > pass > it. > > Signed-off-by: Daniele Di Proietto > --- > utilities/ovs-dev.py | 4 ++-- > 1 file changed, 2 inserti

Re: [ovs-dev] [PATCH 2/2] ovs-dev.py: skip clang if configure fails

2014-09-14 Thread Joe Stringer
Although I reviewed and applied #1, I'll leave this one up to Ethan as it's more relevant to his other proposed changes. On 13 September 2014 05:35, Daniele Di Proietto wrote: > If 'configure' with clang fails (this can happen for example if it doesn't > support all the cflags), simply skip it >

Re: [ovs-dev] [PATCHv5 00/12] Revalidate flows with unique identifiers.

2014-09-16 Thread Joe Stringer
Bump. Any chance of some feedback? On 15 September 2014 14:25, Joe Stringer wrote: > Patches #1-4 have been reviewed and Ack'd by Ben, which I have held out > from > pushing upstream as they are only useful with the rest of the series. The > remaining patches are yet to be r

[ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: xlate ct_{mark, label} correctly.

2016-04-15 Thread Joe Stringer
k support.") Fixes: 9daf23484fb1 ("Add connection tracking label support.") Signed-off-by: Joe Stringer --- lib/util.h | 11 +++ ofproto/ofproto-dpif-xlate.c | 27 --- tests/system-traffic.at | 38 ++

[ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Tidy up ct_mark xlate code.

2016-04-15 Thread Joe Stringer
Make the ct_mark netlink serialization more consistent with the way that ct_label is serialized. Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-xlate.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto

Re: [ovs-dev] [PATCHv3 1/2] ofproto-dpif-xlate: Generate bitmasks in set_field.

2016-04-15 Thread Joe Stringer
On 14 April 2016 at 10:08, Ben Pfaff wrote: > On Mon, Apr 04, 2016 at 02:56:03PM -0700, Joe Stringer wrote: >> Previously, whenever a set_field() action was executed, the entire field >> would become masked and the entire field replaced, regardless of the >> mask speci

Re: [ovs-dev] [PATCHv3 2/2] manpages: Update documentation for ct_* masks.

2016-04-15 Thread Joe Stringer
On 14 April 2016 at 10:09, Ben Pfaff wrote: > On Mon, Apr 04, 2016 at 02:56:04PM -0700, Joe Stringer wrote: >> These have been supported all along, but the documentation neglected to >> mention the fact. >> >> Signed-off-by: Joe Stringer > > Acked-by: Ben Pfaf

Re: [ovs-dev] [PATCH v2 01/15] packets: Define ICMP types.

2016-04-19 Thread Joe Stringer
reeBSD. > > These definitions will be used by a future commit. > > Signed-off-by: Daniele Di Proietto Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 02/15] flow: Export parse_ipv6_ext_hdrs().

2016-04-19 Thread Joe Stringer
} > +} > +} > + > +bool > +parse_ipv6_ext_hdrs(const void **datap, size_t *sizep, uint8_t *nw_proto, > +uint8_t *nw_frag) > +{ > +return parse_ipv6_ext_hdrs__(datap, sizep, nw_proto, nw_frag); > +} > + I couldn't tell any difference between parse_ipv6_ext_hdrs() and parse_ipv6_ext_hdrs__(); are they both necessary? Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 03/15] flow: Introduce parse_dl_type().

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > The function simply returns the ethernet type of the packet (after > eventually discarding the VLAN tag). It will be used by a following > commit. > > Signed-off-by: Daniele Di Proietto > --- > lib/flow.c | 14 -- > lib/flow.h

Re: [ovs-dev] [PATCH v2 04/15] conntrack: New userspace connection tracker.

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > This commit adds the conntrack module. > > It is a connection tracker that resides entirely in userspace. Its > primary user will be the dpif-netdev datapath. > > The module main goal is to provide conntrack_execute(), which offers a > conve

Re: [ovs-dev] [PATCH v2 07/15] conntrack: Implement flush function.

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > Signed-off-by: Daniele Di Proietto Looks like this can be combined with patch #11 (to plumb it up through appctl). Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org h

Re: [ovs-dev] [PATCH v2 08/15] conntrack: Implement dumping to ct_entry.

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > Signed-off-by: Daniele Di Proietto > +static void > +conn_key_to_tuple(const struct conn_key *key, struct ct_dpif_tuple *tuple) > +{ > +if (key->dl_type == htons(ETH_TYPE_IP)) { > +tuple->l3_type = AF_INET; > +} else if (k

Re: [ovs-dev] [PATCH v2 09/15] dpif-netdev: Execute conntrack action.

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > This commit implements the OVS_ACTION_ATTR_CT action in dpif-netdev. > > To allow ofproto-dpif to detect the conntrack feature, flow_put will not > discard anymore flows with ct_* fields set. We still shouldn't allow > flows with NAT bits set

Re: [ovs-dev] [PATCH v2 10/15] dpif-netdev: Implement conntrack dump functions.

2016-04-19 Thread Joe Stringer
On 15 April 2016 at 17:02, Daniele Di Proietto wrote: > Signed-off-by: Daniele Di Proietto Could be combined with the earlier patch that provides the actual implementation? ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinf

Re: [ovs-dev] [PATCH v2 13/15] system-tests: Disable offloads in userspace tests.

2016-04-19 Thread Joe Stringer
this simply fixes the userspace testsuite when running on newer kernels today, so we could apply this independently of the rest of the series. Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 14/15] system-tests: Add tcp simple test.

2016-04-19 Thread Joe Stringer
to the more complex configurations in the existing tests. This is a step in the right direction. Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 15/15] system-tests: Run conntrack tests with userspace

2016-04-19 Thread Joe Stringer
datapath, so it seems fine to skip the conntrack-related ones. I wouldn't mind seeing a basic sanity test that sends packets between the local stack and another namespace, though - which would run for both testsuites, and both with IPv4 and IPv6 traffic. A few comments on the comments

Re: [ovs-dev] [PATCH v2 15/15] system-tests: Run conntrack tests with userspace

2016-04-19 Thread Joe Stringer
On 19 April 2016 at 16:53, Joe Stringer wrote: > On 15 April 2016 at 17:02, Daniele Di Proietto wrote: >> The userspace connection tracker doesn't support ALGs, frag reassembly >> or NAT yet, so skip those tests. >> >> Also, connection tracking state input from a

[ovs-dev] [PATCH 1/2] system-traffic: Add basic gre tunnel sanity test.

2016-04-20 Thread Joe Stringer
Signed-off-by: Joe Stringer --- tests/system-common-macros.at | 4 tests/system-traffic.at | 41 + 2 files changed, 45 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 92569f9c4fcf..1b9b5c1e9f15

[ovs-dev] [PATCH 2/2] system-traffic: Add basic geneve tunnel sanity test.

2016-04-20 Thread Joe Stringer
Signed-off-by: Joe Stringer --- tests/system-common-macros.at | 4 tests/system-traffic.at | 41 + 2 files changed, 45 insertions(+) diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at index 1b9b5c1e9f15..2116f1e31357

Re: [ovs-dev] [PATCH 1/2] system-traffic: Add basic gre tunnel sanity test.

2016-04-21 Thread Joe Stringer
On 20 April 2016 at 16:07, Joe Stringer wrote: > Signed-off-by: Joe Stringer > --- > +dnl Set up tunnel endpoints on OVS outside the namespace and with a native > +dnl linux device inside the namespace. > +ADD_OVS_TUNNEL([gre], [br0], [at_gre0], [172.31.1.1],

[ovs-dev] [PATCH 0/5] Backport nf_defrag_ipv6 changes.

2016-04-21 Thread Joe Stringer
ested using kmod tests on Ubuntu 3.13.0-24, 4.2.0-35, and RHEL 3.10.0-327 kernels, plus build tests for vanilla kernels on Travis: https://travis-ci.org/joestringer/openvswitch/builds/124819321 Joe Stringer (5): compat: ipv6: Pass struct net into nf_ct_frag6_gather. compat: nf_defrag_ipv6: avoid

[ovs-dev] [PATCH 4/5] compat: nf_defrag_ipv6: fix NULL deref panic.

2016-04-21 Thread Joe Stringer
ree clone operations") Reported-by: Valdis Kletnieks Tested-by: Valdis Kletnieks Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Upstream: e97ac12859db ("netfilter: ipv6: nf_defrag: fix NULL deref panic") Signed-off-by: Joe Stringer --- datapa

[ovs-dev] [PATCH 5/5] datapath: Orphan skbs before IPv6 defrag

2016-04-21 Thread Joe Stringer
: 029f7f3b8701 ("netfilter: ipv6: nf_defrag: avoid/free clone operations") Reported-by: Daniele Di Proietto Signed-off-by: Joe Stringer Signed-off-by: David S. Miller Upstream: f0cbf9f67273 ("openvswitch: Orphan skbs before IPv6 defrag") Signed-off-by: Joe Stringer

[ovs-dev] [PATCH 3/5] compat: nf_defrag_ipv6: avoid nf_iterate recursion.

2016-04-21 Thread Joe Stringer
Signed-off-by: Pablo Neira Ayuso Upstream: daaa7d647f81 ("netfilter: ipv6: avoid nf_iterate recursion") Signed-off-by: Joe Stringer --- datapath/conntrack.c | 11 ++-- .../include/net/netfilter/ipv6/nf_defrag_ipv6.h| 3 +- datapath/linux/compat/nf_conntra

[ovs-dev] [PATCH 2/5] compat: nf_defrag_ipv6: avoid/free clone operations.

2016-04-21 Thread Joe Stringer
penvswitch doesn't need any additional skb_morph magic anymore to deal with this situation so just remove that. A followup patch can then also remove the NF_HOOK (re)invocation in the ipv6 netfilter defrag hook. Cc: Joe Stringer Signed-off-by: Florian Westphal Signe

[ovs-dev] [PATCH 1/5] compat: ipv6: Pass struct net into nf_ct_frag6_gather.

2016-04-21 Thread Joe Stringer
eira Ayuso Signed-off-by: David S. Miller Upstream: b72775977c39 ("ipv6: Pass struct net into nf_ct_frag6_gather") Signed-off-by: Joe Stringer --- datapath/conntrack.c | 2 +- datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h | 3

[ovs-dev] [PATCH] system-traffic: Fix IPv6 frag vxlan check.

2016-04-21 Thread Joe Stringer
This was missed before somehow, which would cause the test to fail (rather than being skipped) if iproute2 didn't support setting the vxlan dstport on the kernel tunnel device. Signed-off-by: Joe Stringer --- tests/system-traffic.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [ovs-dev] [PATCH 1/2] system-traffic: Add basic gre tunnel sanity test.

2016-04-22 Thread Joe Stringer
On 21 April 2016 at 17:10, Daniele Di Proietto wrote: > Acked-by: Daniele Di Proietto > > > On 21/04/2016 13:29, "Joe Stringer" wrote: > >>On 20 April 2016 at 16:07, Joe Stringer wrote: >>> Signed-off-by: Joe Stringer >>> --- >> >>

Re: [ovs-dev] [PATCH] system-traffic: Fix IPv6 frag vxlan check.

2016-04-22 Thread Joe Stringer
On 21 April 2016 at 17:07, Daniele Di Proietto wrote: > Thanks for fixing this > > Acked-by: Daniele Di Proietto Thanks, applied to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] ofproto-dpif-xlate: xlate ct_{mark, label} correctly.

2016-04-22 Thread Joe Stringer
On 22 April 2016 at 08:37, Ben Pfaff wrote: > On Fri, Apr 15, 2016 at 11:36:04AM -0700, Joe Stringer wrote: >> When translating multiple ct actions in a row which include modification >> of ct_mark or ct_labels, these fields could be incorrectly translated >> into datapath

Re: [ovs-dev] [PATCH 2/2] system-traffic: Add basic geneve tunnel sanity test.

2016-04-22 Thread Joe Stringer
On 21 April 2016 at 17:11, Daniele Di Proietto wrote: > Thanks for adding this tests! > > Acked-by: Daniele Di Proietto Thanks for the review! Applied to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] ofproto-dpif-xlate: Tidy up ct_mark xlate code.

2016-04-22 Thread Joe Stringer
On 22 April 2016 at 08:40, Ben Pfaff wrote: > On Fri, Apr 15, 2016 at 11:36:05AM -0700, Joe Stringer wrote: >> Make the ct_mark netlink serialization more consistent with the way that >> ct_label is serialized. >> >> Signed-off-by: Joe Stringer > > This is nice,

[ovs-dev] [PATCH] ofp-actions: Fix use-after-free in decode_NOTE.

2016-04-28 Thread Joe Stringer
:120) Signed-off-by: Joe Stringer --- lib/ofp-actions.c | 1 + tests/ofproto-dpif.at | 10 ++ 2 files changed, 11 insertions(+) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 39b6fbca531e..10ef3ea808fd 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -4

[ovs-dev] [PATCH 1/2] FAQ: Shift IPFIX into the feature support table.

2016-04-28 Thread Joe Stringer
Signed-off-by: Joe Stringer --- FAQ.md | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/FAQ.md b/FAQ.md index 28680d69bd3a..0df6d072e177 100644 --- a/FAQ.md +++ b/FAQ.md @@ -204,6 +204,7 @@ Tunnel - Geneve | 3.18 | YES | YES| NO

[ovs-dev] [PATCH 2/2] FAQ: Update feature table.

2016-04-28 Thread Joe Stringer
Linux kernel support for features in out-of-tree module no longer depend on particular versions, as we only support kernels 3.10-4.3; Connection tracking status has changed recently; and NAT is a brand new feature with only support in the latest unreleased Linux kernel version. Signed-off-by: Joe

Re: [ovs-dev] [PATCH 0/5] Backport nf_defrag_ipv6 changes.

2016-04-28 Thread Joe Stringer
On 26 April 2016 at 19:51, Jesse Gross wrote: > On Thu, Apr 21, 2016 at 2:07 PM, Joe Stringer wrote: >> This short series addresses some of the netfilter/defrag-related changes >> recently upstream and backports the equivalent fixes to our compat code. >> The last two

Re: [ovs-dev] [PATCH 2/5] compat: nf_defrag_ipv6: avoid/free clone operations.

2016-04-28 Thread Joe Stringer
On 26 April 2016 at 19:44, Jesse Gross wrote: > On Thu, Apr 21, 2016 at 2:07 PM, Joe Stringer wrote: >> diff --git >> a/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h >> b/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h >> index

Re: [ovs-dev] [PATCH 5/5] datapath: Orphan skbs before IPv6 defrag

2016-04-28 Thread Joe Stringer
On 26 April 2016 at 18:45, Jesse Gross wrote: > On Thu, Apr 21, 2016 at 2:07 PM, Joe Stringer wrote: >> Upstream commit: >> openvswitch: Orphan skbs before IPv6 defrag >> >> This is the IPv6 counterpart to commit 8282f27449bf ("inet: frag: Always >

Re: [ovs-dev] [PATCH 2/5] compat: nf_defrag_ipv6: avoid/free clone operations.

2016-04-28 Thread Joe Stringer
On 28 April 2016 at 17:17, Joe Stringer wrote: > On 26 April 2016 at 19:44, Jesse Gross wrote: >> On Thu, Apr 21, 2016 at 2:07 PM, Joe Stringer wrote: >>> diff --git >>> a/datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h >>> b/datapath/lin

[ovs-dev] [PATCH] compat: skbuff: Remove references to old kernels.

2016-04-28 Thread Joe Stringer
Since commit f2ab1536ddbc ("compat: Backport conntrack strictly to v3.10+."), we haven't supported these kernel versions. Remove the old code. Signed-off-by: Joe Stringer --- datapath/linux/compat/skbuff-openvswitch.c | 6 -- 1 file changed, 6 deletions(-) diff --git a

Re: [ovs-dev] [PATCH] ofp-actions: Fix use-after-free in decode_NOTE.

2016-04-29 Thread Joe Stringer
On 28 April 2016 at 18:29, Ansis Atteka wrote: > On 28 April 2016 at 14:13, Joe Stringer wrote: >> When decoding the 'note' action, variable-length data could be pushed to >> a buffer immediately prior to calling ofpact_finish_NOTE(). The >> ofpbuf_put() could ca

Re: [ovs-dev] [PATCH] system-traffic: Check namespace exists befoe delete.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 09:04, Darrell Ball wrote: > On Mon, May 2, 2016 at 8:39 AM, William Tu wrote: > >> Hi Darrel, >> >> # Delete namespaces from the running OS m4_define([DEL_NAMESPACES], [m4_foreach([ns], [$@], - [ip netns del ns -]) + [if

[ovs-dev] [PATCHv2 1/9] compat: Add a struct net parameter to l4_pkt_to_tuple.

2016-05-02 Thread Joe Stringer
tuple implementations to ensure gre (and any similar protocols) can get this right. Signed-off-by: "Eric W. Biederman" Signed-off-by: Pablo Neira Ayuso Upstream: a31f1adc0948 ("netfilter: nf_conntrack: Add a struct net parameter to l4_pkt_to_tuple") Signed-off-by: Joe

[ovs-dev] [PATCHv2 0/9] Backport ovs-conntrack changes.

2016-05-02 Thread Joe Stringer
upstream prior to the NAT series. - Added a final patch to document the defrag backport strategy in v4 and v6. - Fixed upstream commit references to use the correct IDs. v1: - Initial Post Joe Stringer (9): compat: Add a struct net parameter to l4_pkt_to_tuple. compat: ipv4: Pass struct net into

[ovs-dev] [PATCHv2 4/9] compat: nf_defrag_ipv6: avoid/free clone operations.

2016-05-02 Thread Joe Stringer
penvswitch doesn't need any additional skb_morph magic anymore to deal with this situation so just remove that. A followup patch can then also remove the NF_HOOK (re)invocation in the ipv6 netfilter defrag hook. Cc: Joe Stringer Signed-off-by: Florian Westphal Signe

[ovs-dev] [PATCHv2 2/9] compat: ipv4: Pass struct net into ip_defrag.

2016-05-02 Thread Joe Stringer
o ip_defrag and ip_check_defrag") Signed-off-by: Joe Stringer --- v2: Initial Post. --- acinclude.m4 | 2 ++ datapath/conntrack.c | 2 +- datapath/linux/compat/include/net/ip.h | 8 ++-- datapath/linux/compat/ip_fragment.c| 3 +-- 4 files ch

[ovs-dev] [PATCHv2 7/9] datapath: Orphan skbs before IPv6 defrag

2016-05-02 Thread Joe Stringer
: 029f7f3b8701 ("netfilter: ipv6: nf_defrag: avoid/free clone operations") Reported-by: Daniele Di Proietto Signed-off-by: Joe Stringer Signed-off-by: David S. Miller Upstream: 49e261a8a21e ("openvswitch: Orphan skbs before IPv6 defrag") Signed-off-by: Joe Stringer

[ovs-dev] [PATCHv2 3/9] compat: ipv6: Pass struct net into nf_ct_frag6_gather.

2016-05-02 Thread Joe Stringer
eira Ayuso Signed-off-by: David S. Miller Upstream: b72775977c39 ("ipv6: Pass struct net into nf_ct_frag6_gather") Signed-off-by: Joe Stringer --- v2: No changes. v1: Initial Post. --- datapath/conntrack.c | 2 +- datapath/linux/compat/includ

[ovs-dev] [PATCHv2 6/9] compat: nf_defrag_ipv6: fix NULL deref panic.

2016-05-02 Thread Joe Stringer
ree clone operations") Reported-by: Valdis Kletnieks Tested-by: Valdis Kletnieks Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Upstream: e97ac12859db ("netfilter: ipv6: nf_defrag: fix NULL deref panic") Signed-off-by: Joe Stringer

[ovs-dev] [PATCHv2 5/9] compat: nf_defrag_ipv6: avoid nf_iterate recursion.

2016-05-02 Thread Joe Stringer
Signed-off-by: Pablo Neira Ayuso Upstream: daaa7d647f81 ("netfilter: ipv6: avoid nf_iterate recursion") Signed-off-by: Joe Stringer --- v2: No changes. v1: Initial Post. --- datapath/conntrack.c | 11 ++-- .../include/net/netfilter/ipv6/nf_defrag_ipv6

[ovs-dev] [PATCHv2 9/9] compat: Document nf_defrag_ipv[46] backport.

2016-05-02 Thread Joe Stringer
Document how the IP(6) defrag backport works, and do minor style cleanups. Signed-off-by: Joe Stringer --- v2: Initial Post. --- datapath/linux/compat/include/net/ip.h| 7 +++ .../linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h | 11 +-- 2 files

[ovs-dev] [PATCHv2 8/9] datapath: Fix template leak in error cases.

2016-05-02 Thread Joe Stringer
taching helpers to ct action") Fixes: 2f3ab9f9fc23 ("openvswitch: Fix helper reference leak") Signed-off-by: Joe Stringer Signed-off-by: David S. Miller Upstream: 90c7afc96cbb ("openvswitch: Fix template leak in error cases.") Fixes: 11251c170d92 ("datapath: A

Re: [ovs-dev] [PATCH] compat: skbuff: Remove references to old kernels.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 00:28, Simon Horman wrote: > On Thu, Apr 28, 2016 at 06:09:04PM -0700, Joe Stringer wrote: >> Since commit f2ab1536ddbc ("compat: Backport conntrack strictly to >> v3.10+."), we haven't supported these kernel versions. Remove the old >> cod

Re: [ovs-dev] [PATCH 2/2] FAQ: Update feature table.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 11:29, Ryan Moats wrote: > "dev" wrote on 04/28/2016 04:39:09 PM: > >> From: Joe Stringer >> To: dev@openvswitch.org >> Date: 04/28/2016 04:39 PM >> Subject: [ovs-dev] [PATCH 2/2] FAQ: Update feature table. >> Sent by: "dev&

Re: [ovs-dev] [PATCH 1/2] FAQ: Shift IPFIX into the feature supporttable.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 11:29, Ryan Moats wrote: > "dev" wrote on 04/28/2016 04:39:08 PM: > >> From: Joe Stringer >> To: dev@openvswitch.org >> Date: 04/28/2016 04:39 PM >> Subject: [ovs-dev] [PATCH 1/2] FAQ: Shift IPFIX into the feature >> support tabl

Re: [ovs-dev] [PATCHv2 0/9] Backport ovs-conntrack changes.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 13:05, Jesse Gross wrote: > On Mon, May 2, 2016 at 11:19 AM, Joe Stringer wrote: >> This series backports the netfilter/defrag-related changes made recently >> upstream to our compat code, which should bring conntrack.c up-to-date just >> prior to the

Re: [ovs-dev] [PATCH] system-traffic: Check namespace exists befoe delete.

2016-05-02 Thread Joe Stringer
On 2 May 2016 at 16:57, Darrell Ball wrote: > > > On Mon, May 2, 2016 at 11:12 AM, Joe Stringer wrote: >> >> On 2 May 2016 at 09:04, Darrell Ball wrote: >> > On Mon, May 2, 2016 at 8:39 AM, William Tu wrote: >> > >> >> Hi Darrel, &

[ovs-dev] [PATCH 2/2] compat: Remove skbuff header helper backports.

2016-05-02 Thread Joe Stringer
These have existed largely since v2.6.22, so it's well overdue. Signed-off-by: Joe Stringer --- acinclude.m4 | 4 -- datapath/linux/Modules.mk| 7 --- datapath/linux/compat/include/linux/icmp.h | 13 -- datapath/linux/compat/in

[ovs-dev] [PATCH 1/2] compat: Remove unused ipv[46] backports.

2016-05-02 Thread Joe Stringer
These pieces #if on kernel versions which are not supported since commit f2ab1536ddbc ("compat: Backport conntrack strictly to v3.10+.") Signed-off-by: Joe Stringer --- acinclude.m4 | 1 - datapath/linux/compat/includ

Re: [ovs-dev] [PATCH nf-next 4/4] openvswitch: __nf_ct_l{3, 4}proto_find() always return a valid pointer

2016-05-03 Thread Joe Stringer
On 3 May 2016 at 03:54, Pablo Neira Ayuso wrote: > If the protocol is not natively supported, this assigns generic protocol > tracker so we can always assume a valid pointer after these calls. > > Signed-off-by: Pablo Neira Ayuso Thanks for the cleanup. Acked-by:

[ovs-dev] [PATCH] check-kmod: Remove all OVS modules in this target.

2016-05-03 Thread Joe Stringer
The make check-kmod target would previously attempt to only remove the openvswitch module, which would fail if any vport modules were loaded. Remove those modules too, to allow the target to proceed. Signed-off-by: Joe Stringer --- tests/automake.mk | 2 +- 1 file changed, 1 insertion(+), 1

Re: [ovs-dev] [PATCH 1/2] compat: Remove unused ipv[46] backports.

2016-05-03 Thread Joe Stringer
On 2 May 2016 at 18:22, Jesse Gross wrote: > On Mon, May 2, 2016 at 5:47 PM, Joe Stringer wrote: >> These pieces #if on kernel versions which are not supported since commit >> f2ab1536ddbc ("compat: Backport conntrack strictly to v3.10+.") >> >> Signed-off-

Re: [ovs-dev] [PATCH 2/2] compat: Remove skbuff header helper backports.

2016-05-03 Thread Joe Stringer
On 2 May 2016 at 18:23, Jesse Gross wrote: > On Mon, May 2, 2016 at 5:47 PM, Joe Stringer wrote: >> These have existed largely since v2.6.22, so it's well overdue. >> >> Signed-off-by: Joe Stringer > > Acked-by: Jesse Gross Thanks, applied. ___

Re: [ovs-dev] [PATCH] check-kmod: Remove all OVS modules in this target.

2016-05-04 Thread Joe Stringer
On 4 May 2016 at 11:29, Andy Zhou wrote: > > > On Tue, May 3, 2016 at 3:44 PM, Joe Stringer wrote: >> >> The make check-kmod target would previously attempt to only remove the >> openvswitch module, which would fail if any vport modules were loaded. >> Remov

[ovs-dev] [PATCH 0/4] System traffic tests tidyups.

2016-05-04 Thread Joe Stringer
by using the OVS_WAIT_UNTIL() macros to ensure connectivity is established before attempting to perform testing. Joe Stringer (4): system-traffic: Drop auto ct helpers in namespaces. system-traffic: Update tests in flat tables. system-traffic: Wait for IPv6 connectivity. system-traffic

[ovs-dev] [PATCH 3/4] system-traffic: Wait for IPv6 connectivity.

2016-05-04 Thread Joe Stringer
waiting until IPv6 or FTP connectivity are ready. This speeds the testsuite up by a couple of percent. Signed-off-by: Joe Stringer --- tests/system-traffic.at | 50 + 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/tests/system

[ovs-dev] [PATCH 2/4] system-traffic: Update tests in flat tables.

2016-05-04 Thread Joe Stringer
A few of the earlier tests were written with all flows in a single flat table. While this is a possible way to write your flows to use connection tracking, it's easier to understand if the processing proceeds forward from one table to the next. Update these tests. Signed-off-by: Joe Str

[ovs-dev] [PATCH 1/4] system-traffic: Drop auto ct helpers in namespaces.

2016-05-04 Thread Joe Stringer
Automatic helper assignment in conntrack can trigger an upstream bug where namespace deletion followed by immediate unload of conntrack helper modules may cause kernel crashes. Disable automatic helper assignment within created namespaces to avoid this issue. Signed-off-by: Joe Stringer

[ovs-dev] [PATCH 4/4] system-traffic: Wait for availability of ftpd.

2016-05-04 Thread Joe Stringer
Some FTP tests had intermittent failures because the FTP daemons might not load before the testsuite script iterated to running the client. Add checks after launching FTP daemons to make these tests more resilient. Signed-off-by: Joe Stringer --- tests/system-traffic.at | 5 + 1 file

Re: [ovs-dev] OVS with NAT Configuration

2016-05-06 Thread Joe Stringer
On 6 May 2016 at 05:22, Sheroo Pratap wrote: > Thanks Justin for quick response and clarifications. > > As suggested by Joe, i checked out OVS master and tried to build OVS in > upstream kernel it successfully installed and working fine (Thanks again > all). > > below are the steps i have follow

[ovs-dev] OVN testsuite failure on Travis

2016-05-06 Thread Joe Stringer
Is the below testsuite failure on anyone's radar? It seems to be failing maybe 30% of the time on Travis. Travis is known to run the tests on heavily loaded systems and as such is likely to randomly reorder thread execution which increases the likelihood of race conditions causing testsuite failure

Re: [ovs-dev] [PATCH 2/4] system-traffic: Update tests in flat tables.

2016-05-09 Thread Joe Stringer
n May 4, 2016, at 6:01 PM, Joe Stringer wrote: >> >> A few of the earlier tests were written with all flows in a single flat >> table. While this is a possible way to write your flows to use >> connection tracking, it's easier to understand if the processing >> pro

Re: [ovs-dev] [PATCH 4/4] system-traffic: Wait for availability of ftpd.

2016-05-10 Thread Joe Stringer
On 5 May 2016 at 13:05, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme Thanks, applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 3/4] system-traffic: Wait for IPv6 connectivity.

2016-05-10 Thread Joe Stringer
On 5 May 2016 at 13:04, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme Thanks, applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/4] system-traffic: Drop auto ct helpers in namespaces.

2016-05-10 Thread Joe Stringer
On 5 May 2016 at 12:54, Jarno Rajahalme wrote: > Thanks for figuring this out, Joe! > > Acked-by: Jarno Rajahalme No problem, thanks for looking the series over. I applied this to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/

Re: [ovs-dev] [PATCH] util: Pass 128-bit arguments directly instead of using pointers.

2016-05-10 Thread Joe Stringer
with 128-bit values, modify the other utility > functions to do the same. > > Signed-off-by: Justin Pettit Seems reasonable to me. Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] tnl-neigh-cache: check for arp expiration.

2016-05-10 Thread Joe Stringer
On 10 May 2016 at 10:37, pravin shelar wrote: > On Fri, May 6, 2016 at 9:23 AM, Ben Pfaff wrote: >> On Mon, Apr 25, 2016 at 03:58:33PM -0700, Pravin B Shelar wrote: >>> The neighbor entry expiry is only checked in dpif-poll >>> event handler, But in absence of any event we could keep >>> using ar

[ovs-dev] [PATCH] ofproto-dpif-upcall: Pass key to dpif_flow_get().

2016-05-10 Thread Joe Stringer
rs on recirculation.") Reported-by: Sairam Venugopal Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index f62f46b8e337..52c42ab41a47 100644 -

[ovs-dev] [PATCH] netdev-dpdk: Fix locking during get_stats.

2016-05-10 Thread Joe Stringer
60:9: note: expanded from macro 'ovs_mutex_lock' ovs_mutex_lock_at(mutex, OVS_SOURCE_LOCATOR) ^ Fixes: d6e3feb57c44 ("Add support for extended netdev statistics based on RFC 2819.") Signed-off-by: Joe Stringer --- lib/netdev-dpdk.c | 1 + 1 file changed, 1 inse

Re: [ovs-dev] [PATCH] tests: Fix tunnel push pop test failure.

2016-05-11 Thread Joe Stringer
On 11 May 2016 at 10:46, Pravin B Shelar wrote: > Sort the list of arp entries to get predictable output. > > Signed-off-by: Pravin B Shelar Thanks for the fix. Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org http://openvs

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Pass key to dpif_flow_get().

2016-05-11 Thread Joe Stringer
On 10 May 2016 at 16:00, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > It seems to me that the UFID is still passed down alongside the key, assuming > that is ok. It seems that the proper way is to only pass it down if flow->ufid_present is true. I amended that and pushed to master and

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix UFID usage with flow_modify.

2016-05-13 Thread Joe Stringer
llow in-place modifications of datapath flows.") Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c index 0543c78e8790..2280e240ee76 100644 --- a/ofproto/ofp

Re: [ovs-dev] [PATCH] netdev-dpdk: Fix locking during get_stats.

2016-05-13 Thread Joe Stringer
On 12 May 2016 at 17:32, Daniele Di Proietto wrote: > Thanks for fixing this! > > Acked-by: Daniele Di Proietto Thanks, applied. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 1/2] ovs-dev.py: PEP-8ify.

2016-05-16 Thread Joe Stringer
Signed-off-by: Joe Stringer --- utilities/ovs-dev.py | 54 +++- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 524f574ff092..0ba4280a8ddf 100755 --- a/utilities/ovs-dev.py +++ b

[ovs-dev] [PATCH 2/2] ovs-dev.py: Update for python3.

2016-05-16 Thread Joe Stringer
Adapt to python-2.6+, including support for 3. Signed-off-by: Joe Stringer --- utilities/ovs-dev.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 0ba4280a8ddf..40cd43e14730 100755 --- a/utilities/ovs-dev.py +++ b

[ovs-dev] [PATCH] upcall: Unregister dpif cbs in udpif_destroy().

2016-05-16 Thread Joe Stringer
executes an OpenFlow packet-out. Fixes: e4e74c3a2b9a ("dpif-netdev: Purge all ukeys when reconfigure pmd.") Fixes: 623540e4617e ("dpif-netdev: Streamline miss handling.") Reported-by: William Tu Signed-off-by: Joe Stringer --- ofproto/ofproto-dpif-upcall.c | 3 +++ 1 file c

Re: [ovs-dev] Use of uninitialized mutex_lock at udpif->ukeys[i].mutex

2016-05-16 Thread Joe Stringer
Hi William, could you try this fix? (I'm getting hard failures on those OVN tests on my dev box, likely something unrelated..) http://patchwork.ozlabs.org/patch/622833/ On 14 May 2016 at 17:13, William Tu wrote: > Hi Ben, > > Thanks, I applied diff below. Unfortunately it makes no difference. >

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Always generate wildcards.

2016-05-17 Thread Joe Stringer
On 22 April 2016 at 17:45, Ben Pfaff wrote: > @@ -5086,7 +5083,9 @@ xlate_actions(struct xlate_in *xin, struct xlate_out > *xout) > .xbridge = xbridge, > .stack = OFPBUF_STUB_INITIALIZER(stack_stub), > .rule = xin->rule, > -.wc = xin->wc ? xin->wc : &scratch_wc,

Re: [ovs-dev] OVS with NAT Configuration

2016-05-17 Thread Joe Stringer
On 10 May 2016 at 01:59, Sheroo Pratap wrote: > Thanks Joe, > > I tried to add flows for NAT using below commands > > ovs-ofctl add-flow br0 > "in_port=1,ip,action=ct(commit,nat(src=192.168.56.103-192.168.56.115)),2" > ovs-ofctl add-flow br0 "in_port=2,ct_state=-trk,ip,action=ct(table=0,nat)" > ov

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix UFID usage with flow_modify.

2016-05-17 Thread Joe Stringer
On 14 May 2016 at 21:41, Ben Pfaff wrote: > On Fri, May 13, 2016 at 02:17:12PM -0700, Joe Stringer wrote: >> As per the delete_op_init{,__}() functions, the UFID should only be >> passed down if ukey->ufid_present is set. Otherwise it is possible to >> request a flow m

Re: [ovs-dev] [PATCH] pinctrl: Fix "sparse" warning.

2016-05-17 Thread Joe Stringer
Thanks, this fixes the issue for me. Acked-by: Joe Stringer As a side note for anyone interested, with a little git config item: [pretty] fixes = Fixes: %h (\"%s\") Plus a simple bash function: https://github.com/joestringer/config/blob/e66ccc6be698b25237e3e21d4b25ecf168bc9e98/.bashr

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix compilation with GCC 4.6.

2016-05-17 Thread Joe Stringer
tialization for > ‘(anonymous).masks.vlan_tci’) > > Reported-by: Joe Stringer > Reported-at: https://travis-ci.org/openvswitch/ovs/builds/130256491 > Signed-off-by: Ben Pfaff Acked-by: Joe Stringer ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix compilation with GCC 4.6.

2016-05-17 Thread Joe Stringer
On 17 May 2016 at 19:02, Ben Pfaff wrote: > On Tue, May 17, 2016 at 06:34:27PM -0700, Joe Stringer wrote: >> On 17 May 2016 at 16:29, Ben Pfaff wrote: >> > Without this change, GCC 4.6 reports: >> > >> > ofproto/ofproto-dpif-xlate.c: In function ‘xlate_actions

Re: [ovs-dev] [PATCH 1/2] ovs-dev.py: PEP-8ify.

2016-05-18 Thread Joe Stringer
On 18 May 2016 at 05:26, Russell Bryant wrote: > > > On Tue, May 17, 2016 at 11:21 PM, Ben Pfaff wrote: >> >> Do you want to add this script to FLAKE8_PYFILES so that the pep8ness >> doesn't accidentally get broken later? >> >> I didn't read the patches. > > > The changes look fine to me other th

[ovs-dev] [PATCH 1/6] INSTALL.md: Document system-traffic tests.

2016-05-20 Thread Joe Stringer
Signed-off-by: Joe Stringer --- INSTALL.md | 88 +- 1 file changed, 76 insertions(+), 12 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 5b37786d973d..82f5188eacb8 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -101,6 +101,14

<    1   2   3   4   5   6   7   8   9   10   >