On 09/11/20 12:31 +0100, Gaetan Rivet wrote: > Device name parsing is done on all buses during device iterations at > either EAL or ethdev levels. > > When a bus implements device name parsing slowly, all iterations are > impacted. Efficient implementation is important. > > The DPAA bus device name parsing has two issues: it allocates dynamic > memory and uses snprintf without a real need for it. Both can be > avoided, which improves the parsing performance. > > The function is also simpler and shorter. > > Signed-off-by: Gaetan Rivet <gr...@u256.net> > ---
Sorry I meant to annotate this patch before sending. Please note that I could not test with a real DPAA bus. There are some string offsets that should be correct but the parsing still needs to be tested. Cheers, -- Gaëtan