ODP has two functions, odp_pktin_recv_tmo and odp_pktin_recv_mq_tmo that allow sleeping for a certain time. However, the sleep was not a genuine interruptible sleep (select/poll/epoll) but rather a busy loop. This resulted in high CPU use when this call was used. This functionality adds to two pktio mechanisms a way to allow sleeping using select() system call. The way is used if all used pktio mechanisms support it. Signed-off-by: Juha-Matti Tilli juha-matti.ti...@iki.fi
----------------github------------------------ /** Email created from pull request 341 (jmtilli:genuinesleep) ** https://github.com/Linaro/odp/pull/341 ** Patch: https://github.com/Linaro/odp/pull/341.patch ** Base sha: 4f2ebb270c30a46c97355da84587a2220281798c ** Merge commit sha: fd0704cb6f80fd4a1741d66fb5d1a2e85b79d7dc **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 98 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 638 lines checked to_send-p-001.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 15 lines checked to_send-p-002.patch has no obvious style problems and is ready for submission. ----------------/checkpatch.pl------------------------