[dpdk-dev] [PATCH] devargs: do not replace already inserted devargs

Thomas Monjalon thomas at monjalon.net
Thu Nov 8 13:26:17 CET 2018


08/11/2018 12:25, Stojaczyk, Dariusz:
> From: Thomas Monjalon [mailto:thomas at monjalon.net]
> > 
> > The devargs of a device can be replaced by a newly allocated one
> > when trying to probe again the same device (multi-process or
> > multi-ports scenarios). This is breaking some pointer references.
> > 
> > It can be avoided by copying the new content, freeing the new devargs,
> > and returning the already inserted pointer.
> > 
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> 
> Tested-by: Darek Stojaczyk <dariusz.stojaczyk at intel.com>

Is it fixing any use case?




More information about the dev mailing list