diff options
author | Adrian Moreno <amorenoz@redhat.com> | 2023-08-11 17:12:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-14 10:01:06 +0300 |
commit | 9d802da40b7c820deb9c60fc394457ea565cafc8 (patch) | |
tree | ff60cda621b7504ac5ce43fde491c630584173c0 /include/net/dropreason.h | |
parent | afb0c19242a0c9a19fc2013dd1389b553acc0ede (diff) | |
download | linux-9d802da40b7c820deb9c60fc394457ea565cafc8.tar.xz |
net: openvswitch: add last-action drop reason
Create a new drop reason subsystem for openvswitch and add the first
drop reason to represent last-action drops.
Last-action drops happen when a flow has an empty action list or there
is no action that consumes the packet (output, userspace, recirc, etc).
It is the most common way in which OVS drops packets.
Implementation-wise, most of these skb-consuming actions already call
"consume_skb" internally and return directly from within the
do_execute_actions() loop so with minimal changes we can assume that
any skb that exits the loop normally is a packet drop.
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dropreason.h')
-rw-r--r-- | include/net/dropreason.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/dropreason.h b/include/net/dropreason.h index 685fb37df8e8..56cb7be92244 100644 --- a/include/net/dropreason.h +++ b/include/net/dropreason.h @@ -23,6 +23,12 @@ enum skb_drop_reason_subsys { */ SKB_DROP_REASON_SUBSYS_MAC80211_MONITOR, + /** + * @SKB_DROP_REASON_SUBSYS_OPENVSWITCH: openvswitch drop reasons, + * see net/openvswitch/drop.h + */ + SKB_DROP_REASON_SUBSYS_OPENVSWITCH, + /** @SKB_DROP_REASON_SUBSYS_NUM: number of subsystems defined */ SKB_DROP_REASON_SUBSYS_NUM }; |