• Samuel Gauthier's avatar
    openvswitch: fix conntrack netlink event delivery · d913d3a7
    Samuel Gauthier authored
    Only the first and last netlink message for a particular conntrack are
    actually sent. The first message is sent through nf_conntrack_confirm when
    the conntrack is committed. The last one is sent when the conntrack is
    destroyed on timeout. The other conntrack state change messages are not
    advertised.
    
    When the conntrack subsystem is used from netfilter, nf_conntrack_confirm
    is called for each packet, from the postrouting hook, which in turn calls
    nf_ct_deliver_cached_events to send the state change netlink messages.
    
    This commit fixes the problem by calling nf_ct_deliver_cached_events in the
    non-commit case as well.
    
    Fixes: 7f8a436e ("openvswitch: Add conntrack action")
    CC: Joe Stringer <joestringer@nicira.com>
    CC: Justin Pettit <jpettit@nicira.com>
    CC: Andy Zhou <azhou@nicira.com>
    CC: Thomas Graf <tgraf@suug.ch>
    Signed-off-by: default avatarSamuel Gauthier <samuel.gauthier@6wind.com>
    Acked-by: default avatarJoe Stringer <joe@ovn.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d913d3a7
conntrack.c 36.1 KB