Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: openvswitch: add action error drop reason

Add a drop reason for packets that are dropped because an action
returns a non-zero error code.

Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Adrian Moreno and committed by
David S. Miller
ec7bfb5e 9d802da4

+2 -1
+1 -1
net/openvswitch/actions.c
··· 1488 1488 } 1489 1489 1490 1490 if (unlikely(err)) { 1491 - kfree_skb(skb); 1491 + ovs_kfree_skb_reason(skb, OVS_DROP_ACTION_ERROR); 1492 1492 return err; 1493 1493 } 1494 1494 }
+1
net/openvswitch/drop.h
··· 10 10 11 11 #define OVS_DROP_REASONS(R) \ 12 12 R(OVS_DROP_LAST_ACTION) \ 13 + R(OVS_DROP_ACTION_ERROR) \ 13 14 /* deliberate comment for trailing \ */ 14 15 15 16 enum ovs_drop_reason {