[dpdk-dev] [PATCH v2] bus/dpaa: optimize device name parsing
Thomas Monjalon
thomas at monjalon.net
Fri Jan 15 12:16:55 CET 2021
09/11/2020 14:37, Gaetan Rivet:
> 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 <grive at u256.net>
Applied, thanks
More information about the dev
mailing list