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

2018-10-26 Thread Stojaczyk, Dariusz
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, October 25, 2018 1:49 PM > To: Stojaczyk, Dariusz > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [PATCH] eal: fixup hotplugging an already present device > > 25/10/2018 12:51, Darek Stojaczyk:

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

2018-10-25 Thread Thomas Monjalon
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,

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

2018-10-25 Thread 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