[dpdk-dev] [PATCH] ethdev: fix eth device released repeatedly
Thomas Monjalon
thomas at monjalon.net
Fri Oct 8 12:23:05 CEST 2021
08/10/2021 10:21, Huisong Li:
> In secondary process, because it doesn't clear eth_dev->data, the "eth_dev"
> above will not be NULL when rte_eth_dev_close() has been called before this
> interface is called. In this case, Ethernet device will be released
> repeatedly. The state of the Ethernet device is equal to RTE_ETH_DEV_UNUSED
> after calling rte_eth_dev_close(). Using this state resolves problem.
Sorry I have difficulties to understand.
The use of "it" everywhere doesn't help.
You should name things instead of refering to "it".
> Fixes: 99a2dd955fba ("lib: remove librte_ prefix from directory names")
For sure that's not the root cause.
More information about the dev
mailing list