From 5f6e4946ba08a4774a551381fa48054d8839644e Mon Sep 17 00:00:00 2001 From: Xueming Li Date: Fri, 13 Dec 2024 21:23:34 +0800 Subject: [PATCH] Revert "test/bonding: fix loop on members" This reverts commit cdf2912166f9506aea46ceb61152c6795f3eebf2 which revealed a pre-existing bug. Signed-off-by: Xueming Li --- app/test/test_link_bonding.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c index b752a5ecbf..b53f512815 100644 --- a/app/test/test_link_bonding.c +++ b/app/test/test_link_bonding.c @@ -2288,7 +2288,12 @@ test_activebackup_rx_burst(void) } /* free mbufs */ - rte_pktmbuf_free_bulk(rx_pkt_burst, burst_size); + for (i = 0; i < MAX_PKT_BURST; i++) { + if (rx_pkt_burst[i] != NULL) { + rte_pktmbuf_free(rx_pkt_burst[i]); + rx_pkt_burst[i] = NULL; + } + } /* reset bonding device stats */ rte_eth_stats_reset(test_params->bonding_port_id);