netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] ovs: refresh a flow via netlink
@ 2016-03-16 15:07 Samuel Gauthier
  2016-03-16 15:07 ` [PATCH net-next 1/2] ovs: split ovs_flow_stats_update into skb and stats Samuel Gauthier
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Samuel Gauthier @ 2016-03-16 15:07 UTC (permalink / raw)
  To: Pravin Shelar, David S. Miller; +Cc: netdev, dev, Samuel Gauthier

This patchset adds a netlink api to refresh an existing flow in
openvswitch.

When a packet is sent in the openvswitch kernel datapath and no
flow is found, the packet is sent to the ovs-vswitchd daemon,
which will process the packet, and ask the kernel to create a new
flow. The next packets for this flow will be processed by the
kernel datapath. If a flow is not used for a (configurable)
period of time, ovs-vswitchd removes the flow from the kernel.

As a result, it can be tricky to test the kernel datapath against
packets, as the first packets of each flow will have to go
through the ovs-vswitchd daemon. For instance, to do a zeroloss
performance test, you establish the flows, and then you have to
perform your zeroloss test before the flow is removed by
ovs-vswitchd.

It is possible to configure a flow timeout in ovs-vswitchd (using
other_config:max-idle option), but it changes the behavior for
all the flows, which is not always what you want.

I tested this with a patch for the openvswitch tree of the
ovs-dpctl mod-flow command, which adds a --refresh flag. I will
submit the patch if this patchset is accepted.

Samuel Gauthier (2):
  ovs: split ovs_flow_stats_update into skb and stats
  ovs: support to refresh a flow via netlink

 net/openvswitch/datapath.c |  4 +++-
 net/openvswitch/flow.c     | 23 ++++++++++++++++++-----
 net/openvswitch/flow.h     |  5 +++--
 3 files changed, 24 insertions(+), 8 deletions(-)

-- 
2.2.1.62.g3f15098

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-03-17 22:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 15:07 [PATCH net-next 0/2] ovs: refresh a flow via netlink Samuel Gauthier
2016-03-16 15:07 ` [PATCH net-next 1/2] ovs: split ovs_flow_stats_update into skb and stats Samuel Gauthier
2016-03-16 15:07 ` [PATCH net-next 2/2] ovs: support to refresh a flow via netlink Samuel Gauthier
     [not found] ` <1458140872-22438-1-git-send-email-samuel.gauthier-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2016-03-16 23:23   ` [PATCH net-next 0/2] ovs: " Jesse Gross
2016-03-17 16:24     ` Samuel Gauthier
     [not found]       ` <CAMEOZh+TR3S+30e+u9yVH04XN2Z26WEnhNK=t7DFq8YaBmjFyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-17 22:54         ` Jesse Gross
2016-03-17  3:35 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).