From: Florin Coras Date: Sat, 2 Apr 2016 18:30:39 +0000 (+0200) Subject: Fix DPDK check in udp.h X-Git-Tag: v16.06-rc1~193 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=aff04a092124b34a07dd5530a97a44d819c879fe;p=vpp.git Fix DPDK check in udp.h Change-Id: I4734b248f512e223703d234d28542257af1a8074 Signed-off-by: Florin Coras --- 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