Skip to contentSkip to conversation

raw/cnxk_gpio: stop device once tests are complete

PATCH Applied Tomasz Duszynski 2 participants 2 messages Feb 25, 2022 – Feb 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raw/cnxk_gpio: stop device once tests are complete

Started device should eventually be stopped.

Fixes 0e6557b448fa ("raw/cnxk_gpio: add self test")
---
 drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c | 1 +
 1 file changed, 1 insertion(+)
drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c +1 -0
index acb65afa65..10742b5dc4 100644
@@ -390,6 +390,7 @@ cnxk_gpio_selftest(uint16_t dev_id)
 
 out:
 	close(fd);
+	rte_rawdev_stop(dev_id);
 
 	return ret;
 }
Signature · 1 line
2.25.1