]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_api: fix miss set post_ct for ovs after do conntrack in act_ct
authorwenxu <wenxu@ucloud.cn>
Tue, 16 Mar 2021 08:33:54 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:22:18 +0000 (15:22 -0700)
commitd756d80c98a9b5cdd69ce44a53de0577cbbc56a4
tree3c0f9da1ac342ca7305feda8d48519e33f76ba49
parente0b09250a9196b89e42374bfc248c493d3092c74
net/sched: act_api: fix miss set post_ct for ovs after do conntrack in act_ct

When openvswitch conntrack offload with act_ct action. The first rule
do conntrack in the act_ct in tc subsystem. And miss the next rule in
the tc and fallback to the ovs datapath but miss set post_ct flag
which will lead the ct_state_key with -trk flag.

Fixes: 4c72a1db37dc ("net/sched: cls_flower add CT_FLAGS_INVALID flag support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/openvswitch/conntrack.c
net/openvswitch/conntrack.h
net/openvswitch/flow.c
net/sched/cls_api.c