]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/openvswitch/conntrack.c
openvswitch: Add eventmask support to CT action.
authorJarno Rajahalme <jarno@ovn.org>
Fri, 21 Apr 2017 23:48:06 +0000 (16:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 17:53:25 +0000 (13:53 -0400)
commit120645513f55a4ac5543120d9e79925d30a0156f
tree5a079ff418ef0a96bdd11558f90295d3461bd465
parentabd0a4f2b41812e9ba334945e256909e3d28da57
openvswitch: Add eventmask support to CT action.

Add a new optional conntrack action attribute OVS_CT_ATTR_EVENTMASK,
which can be used in conjunction with the commit flag
(OVS_CT_ATTR_COMMIT) to set the mask of bits specifying which
conntrack events (IPCT_*) should be delivered via the Netfilter
netlink multicast groups.  Default behavior depends on the system
configuration, but typically a lot of events are delivered.  This can be
very chatty for the NFNLGRP_CONNTRACK_UPDATE group, even if only some
types of events are of interest.

Netfilter core init_conntrack() adds the event cache extension, so we
only need to set the ctmask value.  However, if the system is
configured without support for events, the setting will be skipped due
to extension not being found.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Joe Stringer <joe@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/openvswitch.h
net/openvswitch/conntrack.c