Skip to content

Commit

Permalink
minor revision on code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
byteocean committed Aug 1, 2023
1 parent 769d638 commit 87e7c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dp_cntrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ static __rte_always_inline struct flow_value *flow_table_insert_entry(struct flo
flow_val->flow_key[DP_FLOW_DIR_ORG] = *key;
flow_val->flow_status = DP_FLOW_STATUS_FLAG_NONE;
/* Target ip of the traffic is an alias prefix of a VM in the same VNI on this dp-service */
/* This will be an uni-directional traffic. So prepare the flag to offload immediately */
/* This will be an uni-directional traffic, which does not expect its corresponding reverse traffic */
/* Details can be found in https://github.com/onmetal/net-dpservice/pull/341 */
if (offload_mode_enabled
&& (df->flags.flow_type != DP_FLOW_TYPE_INCOMING)
&& !DP_FAILED(dp_get_vnf_entry(&vnf_val, DP_VNF_TYPE_LB_ALIAS_PFX, m->port, DP_VNF_MATCH_ALL_PORT_ID))
Expand Down

0 comments on commit 87e7c4b

Please sign in to comment.