mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif: Add support for OVS_ACTION_ATTR_CT_CLEAR
This supports using the ct_clear action in the kernel datapath. To preserve compatibility with current ct_clear behavior on old kernels, we only pass this action down to the datapath if a probe reveals the datapath actually supports it. Signed-off-by: Eric Garver <e@erig.me> Acked-by: William Tu <u9012063@gmail.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
committed by
Justin Pettit
parent
70bbaa4649
commit
1fe178d251
@@ -7400,6 +7400,7 @@ ofpacts_execute_action_set(struct ofpbuf *action_list,
|
||||
if (!ofpacts_copy_last(action_list, action_set, OFPACT_GROUP) &&
|
||||
!ofpacts_copy_last(action_list, action_set, OFPACT_OUTPUT) &&
|
||||
!ofpacts_copy_last(action_list, action_set, OFPACT_RESUBMIT) &&
|
||||
!ofpacts_copy_last(action_list, action_set, OFPACT_CT_CLEAR) &&
|
||||
!ofpacts_copy_last(action_list, action_set, OFPACT_CT)) {
|
||||
ofpbuf_clear(action_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user