• 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
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
actions.c Loading commit data...
conntrack.c Loading commit data...
conntrack.h Loading commit data...
datapath.c Loading commit data...
datapath.h Loading commit data...
dp_notify.c Loading commit data...
flow.c Loading commit data...
flow.h Loading commit data...
flow_netlink.c Loading commit data...
flow_netlink.h Loading commit data...
flow_table.c Loading commit data...
flow_table.h Loading commit data...
vport-geneve.c Loading commit data...
vport-gre.c Loading commit data...
vport-internal_dev.c Loading commit data...
vport-internal_dev.h Loading commit data...
vport-netdev.c Loading commit data...
vport-netdev.h Loading commit data...
vport-vxlan.c Loading commit data...
vport.c Loading commit data...
vport.h Loading commit data...