diff options
author | Anand Kumar <kumaranand@vmware.com> | 2017-06-21 13:33:55 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2017-06-21 18:55:34 -0700 |
commit | 6c6204b67886ff9b051417376ab69d64191c35f4 (patch) | |
tree | 72f303d6c6ecbc01ef91fd3c14d6adb742a6a613 /datapath-windows/ovsext/DpInternal.h | |
parent | f32b745b3f33e9aa706eebcc22b4ed0dba6fcda7 (diff) | |
download | openvswitch-6c6204b67886ff9b051417376ab69d64191c35f4.tar.gz |
datapath-windows: Add support for UPDATE events in Conntrack
Introduce a new event type OVS_EVENT_CT_UPDATE to send a conntrack event
whenever a MARK and/or LABEL gets changed for an existing conntrack entry.
- Parse netlink conntrack attribute OVS_CT_ATTR_EVENTMASK, which is used
to set the mask of bits specifying which conntrack events (IPCT_*)
should be delivered via the Netfilter netlink multicast groups.
- Send update event only when OVS_CT_ATTR_EVENTMASK attribute has the mask
of bits set for IPCT_MARK and/or IPCT_LABEL.
Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/DpInternal.h')
-rw-r--r-- | datapath-windows/ovsext/DpInternal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/DpInternal.h b/datapath-windows/ovsext/DpInternal.h index 743891ca3..3e351b770 100644 --- a/datapath-windows/ovsext/DpInternal.h +++ b/datapath-windows/ovsext/DpInternal.h @@ -336,7 +336,8 @@ enum { enum { OVS_EVENT_CT_NEW = (1 << 0), OVS_EVENT_CT_DELETE = (1 << 1), - OVS_EVENT_CT_MASK_ALL = 0x3 + OVS_EVENT_CT_UPDATE = (1 << 2), + OVS_EVENT_CT_MASK_ALL = 0x7 }; /* Supported mcast event groups */ |