[dpdk-dev] What's the point of RTE_MBUF_PREFETCH_TO_FREE()?

Mike Stolarchuk mike.stolarchuk at bigswitch.com
Fri Nov 3 21:28:18 CET 2017


It seems to be used to prefetch the mbuf in preparation for a free of an
mbuf.

But RTE_MBUF_PREFETCH_TO_FREE() currently does a prefetch for the
ffirst cache line in the mbuf,  but doesn't a free do a put to the mbuf's
mempool?

And isn't the mempool reference in the mbuf's second cache line?

regards,
mts.


More information about the dev mailing list