Skip to content

Commit

Permalink
reset state vars used during cntrack key fast matching if a pkt is go…
Browse files Browse the repository at this point in the history
…ing to be offloaded
  • Loading branch information
byteocean committed Aug 2, 2023
1 parent 8073477 commit a89d0e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dp_cntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a89d0e4

Please sign in to comment.