summaryrefslogtreecommitdiff
path: root/ipanat/src/ipa_nat_drvi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipanat/src/ipa_nat_drvi.c')
-rw-r--r--ipanat/src/ipa_nat_drvi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipanat/src/ipa_nat_drvi.c b/ipanat/src/ipa_nat_drvi.c
index 74161a7..32114b5 100644
--- a/ipanat/src/ipa_nat_drvi.c
+++ b/ipanat/src/ipa_nat_drvi.c
@@ -665,6 +665,9 @@ int ipa_nati_add_ipv4_tbl(uint32_t public_ip_addr,
return -EINVAL;
}
+ /* Reset the nat table before posting init cmd */
+ ipa_nati_reset_tbl(tbl_indx);
+
/* Initialize the ipa hw with nat table dimensions */
ret = ipa_nati_post_ipv4_init_cmd(tbl_indx);
if (0 != ret) {
@@ -672,8 +675,6 @@ int ipa_nati_add_ipv4_tbl(uint32_t public_ip_addr,
return -EINVAL;
}
- ipa_nati_reset_tbl(tbl_indx);
-
/* Return table handle */
ipv4_nat_cache.table_cnt++;
*tbl_hdl = ipv4_nat_cache.table_cnt;