From a89d0e439d47592522b0e67b8e4d9a7844b55b2e Mon Sep 17 00:00:00 2001 From: Tao Date: Wed, 2 Aug 2023 11:56:51 +0200 Subject: [PATCH] reset state vars used during cntrack key fast matching if a pkt is going to be offloaded --- src/dp_cntrack.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dp_cntrack.c b/src/dp_cntrack.c index 1ec86ed9f..4eadb9392 100644 --- a/src/dp_cntrack.c +++ b/src/dp_cntrack.c @@ -110,6 +110,11 @@ static __rte_always_inline void dp_cntrack_set_pkt_offload_decision(struct dp_fl df->flags.offload_decision = df->conntrack->offload_flags.orig; else df->flags.offload_decision = df->conntrack->offload_flags.reply; + + if (df->flags.offload_decision == DP_FLOW_OFFLOAD_INSTALL) { + prev_key = NULL; + prev_flow_val = NULL; + } } static __rte_always_inline struct flow_value *flow_table_insert_entry(struct flow_key *key, struct dp_flow *df, struct rte_mbuf *m)