mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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: 7baf2429a1
("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>
This commit is contained in:
parent
ce225298a0
commit
d29334c15d
5 changed files with 14 additions and 6 deletions
|
@ -25,7 +25,8 @@ int ovs_ct_execute(struct net *, struct sk_buff *, struct sw_flow_key *,
|
|||
const struct ovs_conntrack_info *);
|
||||
int ovs_ct_clear(struct sk_buff *skb, struct sw_flow_key *key);
|
||||
|
||||
void ovs_ct_fill_key(const struct sk_buff *skb, struct sw_flow_key *key);
|
||||
void ovs_ct_fill_key(const struct sk_buff *skb, struct sw_flow_key *key,
|
||||
bool post_ct);
|
||||
int ovs_ct_put_key(const struct sw_flow_key *swkey,
|
||||
const struct sw_flow_key *output, struct sk_buff *skb);
|
||||
void ovs_ct_free_action(const struct nlattr *a);
|
||||
|
@ -74,7 +75,8 @@ static inline int ovs_ct_clear(struct sk_buff *skb,
|
|||
}
|
||||
|
||||
static inline void ovs_ct_fill_key(const struct sk_buff *skb,
|
||||
struct sw_flow_key *key)
|
||||
struct sw_flow_key *key,
|
||||
bool post_ct)
|
||||
{
|
||||
key->ct_state = 0;
|
||||
key->ct_zone = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue