Skip to content

RFC Allow excluding sw flow key from upcalls

Aaron Conole linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6openvswitch: exclude kernel flow key from upcallsinclude/uapi/linux/openvswitch.h net/openvswitch/datapath.c net/openvswitch/datapath.h+30 -46 replies
2/6selftests: openvswitch: add interface supporttools/testing/selftests/net/openvswitch/openvswitch.sh tools/testing/selftests/net/openvswitch/ovs-dpctl.py+165 -90 replies
3/6selftests: openvswitch: add flow dump supporttools/testing/selftests/net/openvswitch/ovs-dpctl.py+780 -10 replies
4/6selftests: openvswitch: adjust datapath NL messagetools/testing/selftests/net/openvswitch/ovs-dpctl.py+2 -20 replies
5/6selftests: openvswitch: add upcall supporttools/testing/selftests/net/openvswitch/ovs-dpctl.py+133 -70 replies
6/6selftests: openvswitch: add exclude support for packet commandstools/testing/selftests/net/openvswitch/openvswitch.sh tools/testing/selftests/net/openvswitch/ovs-dpctl.py+81 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC net-next 0/6] Allow excluding sw flow key from upcalls

Userspace applications can choose to completely ignore the kernel provided flow key and instead regenerate a fresh key for processing in userspace. Currently, userspace ovs-vswitchd does this in some instances (for example, MISS upcall command). This means that kernel spends time to copy and send the flow key into userspace without any benefit to the system.

Introduce a way for userspace to tell kernel not to send the flow key. This lets userspace and kernel space save time and memory pressure.

This patch set is quite a bit larger because it introduces the ability to decode a sw flow key into a compatible datapath-string. We use this as a method of implementing a test to show that the feature is working by decoding and dumping the flow (to make sure we capture the correct packet).

Aaron Conole (6):
openvswitch: exclude kernel flow key from upcalls
selftests: openvswitch: add interface support
selftests: openvswitch: add flow dump support
selftests: openvswitch: adjust datapath NL message
selftests: openvswitch: add upcall support
selftests: openvswitch: add exclude support for packet commands

 include/uapi/linux/openvswitch.h              |    6 +
 net/openvswitch/datapath.c                    |   26 +-
 net/openvswitch/datapath.h                    |    2 +
 .../selftests/net/openvswitch/openvswitch.sh  |  101 +-
 .../selftests/net/openvswitch/ovs-dpctl.py    | 1069 ++++++++++++++++-
 5 files changed, 1183 insertions(+), 21 deletions(-)
Signature · 1 line
2.34.3