On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: > When ring PMD created via PMD specific API instead of EAL abstraction > it is missing the virtual device creation done by EAL vdev. > > And this makes eth_dev unusable exact same as other PMDs used, because > of some missing fields, like rte_device->name. > > Now API creates a virtual device and sets proper fields, not all, and it > still won't be linked in the virtual device list eal keeps track. But > makes PMD usable in usual manner. > > Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com> > ---
Is a better fix not to have this API call into the EAL to create the vdev and add it to the lists as with other vdevs? [If it makes it easier, the extra parameters passed in to the library-local function can be saved in a context that can be accessed when the EAL calls back into the driver, rather than having to flatten them out into devargs and re-parsed again.] Regards, /Bruce