[dpdk-dev] [PATCH] eal: fixup hotplugging an already present device

Thomas Monjalon thomas at monjalon.net
Thu Oct 25 13:49:26 CEST 2018


25/10/2018 12:51, Darek Stojaczyk:
> We were returning rc = -1 from a device probing function
> whenever the provided device was already probed before.
> 
> This basically broke hotplugging a device in secondary
> process when the same device was already hotplugged in
> the primary.
> 
> To fix it, just return 0 instead of -1. I believe this is
> the originally intented behavior.

The intent was to return the error seen during probing again.
If there is no error, the PMD must return 0.
It means I reject this patch so far.





More information about the dev mailing list