summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-04-02 20:30:39 +0200
committerFlorin Coras <fcoras@cisco.com>2016-04-02 20:33:41 +0200
commitaff04a092124b34a07dd5530a97a44d819c879fe (patch)
treecf98616486e3a217ce9fdba470d2eaf365f5d5d4
parente127a7e4528472a320bf1cc343d3656dcdd4b108 (diff)
Fix DPDK check in udp.h
Change-Id: I4734b248f512e223703d234d28542257af1a8074 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--vnet/vnet/ip/udp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/ip/udp.h b/vnet/vnet/ip/udp.h
index e9ee1e32faa..3aedf671779 100644
--- a/vnet/vnet/ip/udp.h
+++ b/vnet/vnet/ip/udp.h
@@ -124,7 +124,7 @@ ip4_udp_encap_one (vlib_main_t * vm, vlib_buffer_t * b0, u8 * ec0, u32 ec_len)
ip0 = vlib_buffer_get_current(b0);
/* Apply the encap string. */
-#if DPDK
+#if DPDK > 0
rte_memcpy(ip0, ec0, ec_len);
#else
memcpy(ip0, ec0, ec_len);
@@ -167,7 +167,7 @@ ip4_udp_encap_two (vlib_main_t * vm, vlib_buffer_t * b0, vlib_buffer_t * b1,
ip1 = vlib_buffer_get_current (b1);
/* Apply the encap string */
-#ifdef DPDK
+#if DPDK > 0
rte_memcpy (ip0, ec0, ec_len);
rte_memcpy (ip1, ec1, ec_len);
#else