We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3254dd commit c52b306Copy full SHA for c52b306
src/dp_nat.c
@@ -774,11 +774,12 @@ int dp_remove_network_snat_port(const struct flow_value *cntrack)
774
}
775
rte_free(portmap_data);
776
777
- } else if (ret != -ENOENT) {
778
- DPS_LOG_ERR("Cannot lookup portoverload key", DP_LOG_RET(ret));
779
- return ret;
+ } else {
+ DPS_LOG_ERR("Cannot lookup portmap key", DP_LOG_RET(ret));
+ if (ret != -ENOENT)
780
+ return ret;
781
+ // otherwise already deleted, finish
782
- // otherwise already deleted, finish
783
784
created_port = dp_get_port_by_id(cntrack->created_port_id);
785
if (!created_port)
0 commit comments