• Adrian Moreno's avatar
    net: openvswitch: add last-action drop reason · 9d802da4
    Adrian Moreno authored
    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: default avatarAdrian Moreno <amorenoz@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9d802da4
actions.c 40.3 KB