ovn-northd: Introduce pre-stateful table.
authorGurucharan Shetty <guru@ovn.org>
Wed, 25 May 2016 08:05:46 +0000 (01:05 -0700)
committerGurucharan Shetty <guru@ovn.org>
Sun, 3 Jul 2016 19:53:08 +0000 (12:53 -0700)
commitfacf8652480a736a3f34e0841f037ef84c153383
treefc4e4df8f4d9da4f1a323fd66527de32a3b3b2cc
parent4fe9aa64eda3ff3ac0424c75913645177d90a314
ovn-northd: Introduce pre-stateful table.

Currently, the only use of stateful services in conntrack is
OVN ACLs. In table pre-ACL, we send the packet to conntrack
to track it (to get its status) and to defrag via the ct_next
action.

As we introduce more stateful services, the ACL feature will
have to share the conntrack module with others. As
preparation for more stateful features like loadbalancing,
this commit introduces a new pre-stateful table that is
responsible to send packets through conntrack via
ct_next action. If pre-ACL table needs to send a packet
through conntrack, it just sets the 'reg0[0]' as 1.
Pre-stateful table in-turn will send the packet to conntrack
if 'reg0[0]' is 1.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.8.xml
ovn/northd/ovn-northd.c