This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via 7f87f43fca88cac2cd36ed5fcffcea8ebee10694 (commit) from 8b10c2fece805dd35b7396526ee0a09b8fee91c7 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 7f87f43fca88cac2cd36ed5fcffcea8ebee10694 Author: Matias Elo matias.elo@nokia.com Date: Thu Jul 7 17:52:27 2016 +0300
test: l2fwd: prefetch packet data
Prefetch ethernet addresses. This is a no-op on odp-linux but improves performance significantly on odp-dpdk implementation.
Signed-off-by: Matias Elo matias.elo@nokia.com Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 164f7f5..e296b94 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -255,6 +255,9 @@ static inline void fill_eth_addrs(odp_packet_t pkt_tbl[],
for (i = 0; i < num; ++i) { pkt = pkt_tbl[i]; + + odp_packet_prefetch(pkt, 0, ODPH_ETHHDR_LEN); + if (odp_packet_has_eth(pkt)) { eth = (odph_ethhdr_t *)odp_packet_l2_ptr(pkt, NULL);
-----------------------------------------------------------------------
Summary of changes: test/performance/odp_l2fwd.c | 3 +++ 1 file changed, 3 insertions(+)
hooks/post-receive