ipsec: remove dependency on DPDK > 0
[vpp.git] / dpdk / dpdk-16.04_patches / 0010-Fix-O0-clang-build.patch
1 From 2b82c248638bba6e98ecf388c6e0b1f5f0b44028 Mon Sep 17 00:00:00 2001
2 From: Damjan Marion <damarion@cisco.com>
3 Date: Tue, 26 Apr 2016 12:36:52 +0200
4 Subject: [PATCH] Fix -O0 clang build
5
6 Signed-off-by: Damjan Marion <damarion@cisco.com>
7 ---
8  lib/librte_eal/common/include/arch/x86/rte_rtm.h | 3 +++
9  1 file changed, 3 insertions(+)
10
11 diff --git a/lib/librte_eal/common/include/arch/x86/rte_rtm.h b/lib/librte_eal/common/include/arch/x86/rte_rtm.h
12 index d935641..30c1969 100644
13 --- a/lib/librte_eal/common/include/arch/x86/rte_rtm.h
14 +++ b/lib/librte_eal/common/include/arch/x86/rte_rtm.h
15 @@ -50,11 +50,14 @@ void rte_xend(void)
16          asm volatile(".byte 0x0f,0x01,0xd5" ::: "memory");
17  }
18  
19 +#define rte_xabort(x) asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (x) : "memory")
20 +#if 0
21  static __attribute__((__always_inline__)) inline
22  void rte_xabort(const unsigned int status)
23  {
24         asm volatile(".byte 0xc6,0xf8,%P0" :: "i" (status) : "memory");
25  }
26 +#endif
27  
28  static __attribute__((__always_inline__)) inline
29  int rte_xtest(void)
30 -- 
31 2.7.4
32