[PATCH v2 15/17] net/dpaa2: use CHECK_INTERVAL macro in set_link_down

Maxime Leroy
2026-02-26T14:36:14Z

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>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
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 d5e30ce5fb..a70e6895c8 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -2305,7 +2305,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