[PATCH 09/11] net/dpaa2: use CHECK_INTERVAL macro in set_link_down

Maxime Leroy
2026-02-18T16:06:03Z

Replace hardcoded rte_delay_us(100 * 1000) with
rte_delay_ms(CHECK_INTERVAL) for consistency with the rest of the
driver.

No functional change.

Signed-off-by: Maxime Leroy <maxime@leroys.fr>
---
drivers/net/dpaa2/dpaa2_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 885f43de19..888be4e467 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -2355,7 +2355,7 @@ dpaa2_dev_set_link_down(struct rte_eth_dev *dev)
}
if (dpni_enabled)
/* Allow the MC some slack */
- rte_delay_us(100 * 1000);
+ rte_delay_ms(CHECK_INTERVAL);
} while (dpni_enabled && --retries);

if (!retries) {
--
2.43.0