mbox series

[net-next,0/2] net: openvswitch: add drop action

Message ID 20230629203005.2137107-1-eric@garver.life (mailing list archive)
Headers show
Series net: openvswitch: add drop action | expand

Message

Eric Garver June 29, 2023, 8:30 p.m. UTC
Prior to this series the "drop" action was implicit by an empty set of
actions. This series adds support for an explicit drop action. The
primary motivation is to allow passing xlate_error from userspace such
that xlater_error can be passed to kfree_skb_reason() and therefore
traced.                                                               

Eric Garver (2):
  net: openvswitch: add drop reasons
  net: openvswitch: add drop action

 include/net/dropreason.h                      |  6 ++++
 include/uapi/linux/openvswitch.h              |  2 ++
 net/openvswitch/actions.c                     | 13 +++++++
 net/openvswitch/datapath.c                    | 17 ++++++++++
 net/openvswitch/drop.h                        | 34 +++++++++++++++++++
 net/openvswitch/flow_netlink.c                | 12 ++++++-
 .../selftests/net/openvswitch/ovs-dpctl.py    |  3 ++
 7 files changed, 86 insertions(+), 1 deletion(-)
 create mode 100644 net/openvswitch/drop.h