Using odp_time_local() on each iteration consumes too much cpu for no reason Netmap pktio reported ~550kpps prior to this and ~1.2Mpps after the patch, when odp_generator was used as a receiver. Signed-off-by: Ilias Apalodimas ilias.apalodi...@linaro.org
----------------github------------------------ /** Email created from pull request 157 (apalos:gen_cpu_fix) ** https://github.com/Linaro/odp/pull/157 ** Patch: https://github.com/Linaro/odp/pull/157.patch ** Base sha: 7508c5ac906bb7cb1d339b4c5e924f3a18e504ca ** Merge commit sha: 2679354c415eb41ed8f4272740f17284fe165de3 **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 29 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. ----------------/checkpatch.pl------------------------