dpdk: dpdk-input optimizations and fixes 39/5639/5
authorDamjan Marion <damarion@cisco.com>
Mon, 6 Mar 2017 20:51:00 +0000 (21:51 +0100)
committerJohn Lo <loj@cisco.com>
Wed, 8 Mar 2017 19:29:29 +0000 (19:29 +0000)
commit25f635852aee76255f7210c43d43668a80fdccce
treeb85ae2321eaafa672e7df3c47dae7dd465890191
parent239d3fec80a5351f4d5f0cdeaec7f781a4e6ad32
dpdk: dpdk-input optimizations and fixes

- fix issue caused by assumption that ethertype starts at 0
- intoduce buffer templates to speed-up vlib_buffer_t metadata
initialization
- avoid check for multiseg buffers inside loop if multiseg is disabled
- interleave prefetches to reduce load on L1 cache

Change-Id: I3b76e6d3e1e15ed28f01625edb7fbe9f38112e03
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk.am
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c
src/plugins/dpdk/device/node.c