summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/dpdk.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-03-06 21:51:00 +0100
committerJohn Lo <loj@cisco.com>2017-03-08 19:29:29 +0000
commit25f635852aee76255f7210c43d43668a80fdccce (patch)
treeb85ae2321eaafa672e7df3c47dae7dd465890191 /src/plugins/dpdk/device/dpdk.h
parent239d3fec80a5351f4d5f0cdeaec7f781a4e6ad32 (diff)
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>
Diffstat (limited to 'src/plugins/dpdk/device/dpdk.h')
-rw-r--r--src/plugins/dpdk/device/dpdk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h
index 092c7dca604..84f86ae28dd 100644
--- a/src/plugins/dpdk/device/dpdk.h
+++ b/src/plugins/dpdk/device/dpdk.h
@@ -338,6 +338,9 @@ typedef struct
/* per-thread recycle lists */
u32 **recycle;
+ /* per-thread buffer templates */
+ vlib_buffer_t *buffer_templates;
+
/* buffer flags template, configurable to enable/disable tcp / udp cksum */
u32 buffer_flags_template;