ethdev: forbid closing started device
authorAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Wed, 20 Oct 2021 13:15:40 +0000 (16:15 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Oct 2021 17:24:22 +0000 (19:24 +0200)
commitfebc855b358e3579f0eb44c76c329b623f87a376
tree057f5262f9d449f280d622bac94f60be939f1193
parent59f3a8acbcdbafeebe816a26d76dfb06e6450f31
ethdev: forbid closing started device

Ethernet device must be stopped first before close in accordance
with the documentation.

Fixes: 980995f8cc56 ("ethdev: improve API comments of close and detach functions")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
lib/ethdev/rte_ethdev.c