net: openvswitch: add psample action
authorAdrian Moreno <amorenoz@redhat.com>
Thu, 4 Jul 2024 08:56:56 +0000 (10:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Jul 2024 00:45:47 +0000 (17:45 -0700)
commitaae0b82b46cb5004bdf82a000c004d69a0885c33
treeaa4171e7d03a01fe90e3831dbd089a76ea70c87d
parent7b1b2b60c63f070e0dfbe072ccaae13168b38d01
net: openvswitch: add psample action

Add support for a new action: psample.

This action accepts a u32 group id and a variable-length cookie and uses
the psample multicast group to make the packet available for
observability.

The maximum length of the user-defined cookie is set to 16, same as
tc_cookie, to discourage using cookies that will not be offloadable.

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Link: https://patch.msgid.link/20240704085710.353845-6-amorenoz@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/ovs_flow.yaml
include/uapi/linux/openvswitch.h
net/openvswitch/Kconfig
net/openvswitch/actions.c
net/openvswitch/flow_netlink.c