In case of multi segment inline IPsec reassembly burst test
of 4 fragment per packet where each fragment is multi
segmented ~11k bytes and sometimes few of reassembly fails
out of 33 such burst.

Delay of 1ms after burst Tx is not sufficient in this case,
hence need to increase to 10ms to avoid random reassembly
failures in functional tests.

Signed-off-by: Rahul Bhansali <[email protected]>
---
 app/test/test_security_inline_proto.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/test/test_security_inline_proto.c 
b/app/test/test_security_inline_proto.c
index b0cce5ebd9..55d81041df 100644
--- a/app/test/test_security_inline_proto.c
+++ b/app/test/test_security_inline_proto.c
@@ -1107,6 +1107,7 @@ test_ipsec_with_reassembly(struct reassembly_vector 
*vector,
        void *ctx;
        unsigned int i, nb_rx = 0, j;
        uint32_t ol_flags;
+       uint32_t delay_ms;
        bool outer_ipv4;
        int ret = 0;
 
@@ -1214,7 +1215,9 @@ test_ipsec_with_reassembly(struct reassembly_vector 
*vector,
                goto out;
        }
 
-       rte_delay_ms(1);
+       /* Multi-segment fragments requires more delay for burst Tx and 
reassembly in Rx path. */
+       delay_ms = sg_mode ? 10 : 1;
+       rte_delay_ms(delay_ms);
 
        /* Retry few times before giving up */
        nb_rx = 0;
-- 
2.34.1

Reply via email to