]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: kernel datapath clone action
authorYifeng Sun <pkusunyifeng@gmail.com>
Mon, 2 Jul 2018 15:18:03 +0000 (08:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 02:13:25 +0000 (11:13 +0900)
commit9b94634d802f47d221dd73c5d4fe2a2d094c2f25
tree345441a88e44d3c9f0fd59327c4b2c138367f1e8
parent2a3d2d808366160a2d0806b5b53280bc0c8a7241
openvswitch: kernel datapath clone action

Add 'clone' action to kernel datapath by using existing functions.
When actions within clone don't modify the current flow, the flow
key is not cloned before executing clone actions.

This is a follow up patch for this incomplete work:
https://patchwork.ozlabs.org/patch/722096/

v1 -> v2:
Refactor as advised by reviewer.

Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Andy Zhou <azhou@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/openvswitch.h
include/uapi/linux/openvswitch.h
net/openvswitch/actions.c
net/openvswitch/flow_netlink.c