On Tue, Oct 17, 2023 at 04:45:32PM +0100, Bruce Richardson wrote: > After calling rte_event_dev_info_get() the ".dev" field of the info > structure should have a pointer to the underlying device, allowing the > user to e.g. get the device name using using rte_dev_name(info.dev). > > The distributed software eventdev info structure did not return a correct > device pointer, though, instead returning NULL, which caused crashes > getting "rte_dev_name". Initializing the dev pointer inside the > "eventdev" struct in the device probe function fixes this by ensuring we > have a valid pointer to return in info_get calls. > > Fixes: 46a186b1f0c5 ("event/dsw: add device registration and build > system") Cc: mattias.ronnb...@ericsson.com > > Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- Since checkpatch has flagged a duplicated word in my commit log above, copy-pasted from the equivalent event/sw patch fix, I'm sending a v2 of the two together in a patchset. See thread [1] for that v2.
/Bruce [1] https://inbox.dpdk.org/dev/20231017155148.153095-1-bruce.richard...@intel.com/