]> 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)
commitd29334c15d33a6a92d2043ca88f84cd5ad026c57
tree3c0f9da1ac342ca7305feda8d48519e33f76ba49
parentce225298a0cde9e64494292bf34422553a22b68c
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: 7baf2429a1a9 ("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