[ovs-dev] [RFC PATCH] openvswitch: Use net_ratelimit in OVS_NLERR

2014-02-02 Thread Joe Perches
Perhaps it'd make sense to use net_ratelimit() instead of printk_once for OVS_NLERR --- net/openvswitch/datapath.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 6be9fbb..0f5e77c 100644 --- a/net/openvswitch

Re: [ovs-dev] Tunnel matching and remote_ip=flow (was Re: [ovs-discuss] vxlan remote_ip flow help)

2014-02-02 Thread Jesse Gross
On Fri, Jan 31, 2014 at 4:59 PM, Ben Pfaff wrote: > On Fri, Jan 31, 2014 at 10:38:20AM -0800, Jesse Gross wrote: >> On Thu, Jan 30, 2014 at 1:31 PM, Thomas Morin >> wrote: >> > Hi, >> > >> > I ran into the same issue as the one described below (post on ovs-discuss a >> > few months back). >> > >

[ovs-dev] [PATCH net 2/5] openvswitch: Fix kernel panic on ovs_flow_free

2014-02-02 Thread Jesse Gross
From: Andy Zhou Both mega flow mask's reference counter and per flow table mask list should only be accessed when holding ovs_mutex() lock. However this is not true with ovs_flow_table_flush(). The patch fixes this bug. Reported-by: Joe Stringer Signed-off-by: Andy Zhou Signed-off-by: Jesse Gr

[ovs-dev] [PATCH net 5/5] openvswitch: Suppress error messages on megaflow updates

2014-02-02 Thread Jesse Gross
From: Andy Zhou With subfacets, we'd expect megaflow updates message to carry the original micro flow. If not, EINVAL is returned and kernel logs an error message. Now that the user space subfacet layer is removed, it is expected that flow updates can arrive with a micro flow other than the orig

[ovs-dev] [PATCH net 3/5] openvswitch: Fix ovs_dp_cmd_msg_size()

2014-02-02 Thread Jesse Gross
From: Daniele Di Proietto commit 43d4be9cb55f3bac5253e9289996fd9d735531db (openvswitch: Allow user space to announce ability to accept unaligned Netlink messages) introduced OVS_DP_ATTR_USER_FEATURES netlink attribute in datapath responses, but the attribute size was not taken into account in ovs

[ovs-dev] [PATCH net 1/5] openvswitch: Pad OVS_PACKET_ATTR_PACKET if linear copy was performed

2014-02-02 Thread Jesse Gross
From: Thomas Graf While the zerocopy method is correctly omitted if user space does not support unaligned Netlink messages. The attribute is still not padded correctly as skb_zerocopy() will not ensure padding and the attribute size is no longer pre calculated though nla_reserve() which ensured p

[ovs-dev] [GIT net] Open vSwitch

2014-02-02 Thread Jesse Gross
A handful of bug fixes for net/3.14. High level fixes are: * Regression introduced by the zerocopy changes, particularly with old userspaces. * A few bugs lingering from the introduction of megaflows. * Overly zealous error checking that is now being triggered frequently in common cases.

[ovs-dev] [PATCH net 4/5] openvswitch: Fix ovs_flow_free() ovs-lock assert.

2014-02-02 Thread Jesse Gross
From: Pravin B Shelar ovs_flow_free() is not called under ovs-lock during packet execute path (ovs_packet_cmd_execute()). Since packet execute does not touch flow->mask, there is no need to take that lock either. So move assert in case where flow->mask is checked. Found by code inspection. Sign

Re: [ovs-dev] [PATCH] tests: Re-fix a race.

2014-02-02 Thread YAMAMOTO Takashi
> Patch bf06c4fe (tests/ofproto-dpif.at: Workaround a race.), fixed a > race condition which patch 0a8763f (ofproto-dpif-upcall: Hardcode > max_idle to 1500ms.) unfixed. > > Signed-off-by: Ethan Jackson > Reported-by: YAMAMOTO Takashi looks good to me. YAMAMOTO Takashi > --- > tests/ofproto-