[dpdk-dev] [PATCH v2 5/5] eal/x86: force inlining of all memcpy and mov helpers

David Marchand david.marchand at redhat.com
Mon May 20 10:30:32 CEST 2019


On Fri, May 17, 2019 at 5:14 PM Maxime Coquelin <maxime.coquelin at redhat.com>
wrote:

> Some helpers in the header file are forced inlined other are
> only inlined, this patch forces inline for all.
>
> It will avoid it to be embedded as functions when called multiple
> times in the same object file. For example, when we added packed
> ring support in vhost-user library, rte_memcpy_generic got no
> more inlined.
>

Weird that we have only some functions marked as always inlined in commit:
https://git.dpdk.org/dpdk/commit/?id=1c9467a6efd8d85b5bbbf7004a4407cae2d09431

Bruce, is there a reason for this?


-- 
David Marchand


More information about the dev mailing list