]> 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)
commit903b260bafc1a87d572df00a5468481de699b2df
tree3c0f9da1ac342ca7305feda8d48519e33f76ba49
parent226f640aea55553b7af2cae5cdf7a63b0649c17d
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: 1556e8188f82 ("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