mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
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>
This commit is contained in:
parent
9d802da40b
commit
ec7bfb5e5a
2 changed files with 2 additions and 1 deletions
|
|
@ -1488,7 +1488,7 @@ static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
|
|||
}
|
||||
|
||||
if (unlikely(err)) {
|
||||
kfree_skb(skb);
|
||||
ovs_kfree_skb_reason(skb, OVS_DROP_ACTION_ERROR);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#define OVS_DROP_REASONS(R) \
|
||||
R(OVS_DROP_LAST_ACTION) \
|
||||
R(OVS_DROP_ACTION_ERROR) \
|
||||
/* deliberate comment for trailing \ */
|
||||
|
||||
enum ovs_drop_reason {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue