1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_xdp_attached_mode.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(XDP_ATTACHED_NONE) || (defined(HAVE_DECL_XDP_ATTACHED_NONE) && HAVE_DECL_XDP_ATTACHED_NONE)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((XDP_ATTACHED_NONE) == (0), "XDP_ATTACHED_NONE != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define XDP_ATTACHED_NONE 0
12 #endif
13 #if defined(XDP_ATTACHED_DRV) || (defined(HAVE_DECL_XDP_ATTACHED_DRV) && HAVE_DECL_XDP_ATTACHED_DRV)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((XDP_ATTACHED_DRV) == (1), "XDP_ATTACHED_DRV != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define XDP_ATTACHED_DRV 1
19 #endif
20 #if defined(XDP_ATTACHED_SKB) || (defined(HAVE_DECL_XDP_ATTACHED_SKB) && HAVE_DECL_XDP_ATTACHED_SKB)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((XDP_ATTACHED_SKB) == (2), "XDP_ATTACHED_SKB != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define XDP_ATTACHED_SKB 2
26 #endif
27 #if defined(XDP_ATTACHED_HW) || (defined(HAVE_DECL_XDP_ATTACHED_HW) && HAVE_DECL_XDP_ATTACHED_HW)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((XDP_ATTACHED_HW) == (3), "XDP_ATTACHED_HW != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define XDP_ATTACHED_HW 3
33 #endif
34 #if defined(XDP_ATTACHED_MULTI) || (defined(HAVE_DECL_XDP_ATTACHED_MULTI) && HAVE_DECL_XDP_ATTACHED_MULTI)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((XDP_ATTACHED_MULTI) == (4), "XDP_ATTACHED_MULTI != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define XDP_ATTACHED_MULTI 4
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 #  error static const struct xlat rtnl_ifla_xdp_attached_mode in mpers mode
47 
48 # else
49 
50 static
51 const struct xlat rtnl_ifla_xdp_attached_mode[] = {
52  [XDP_ATTACHED_NONE] = XLAT(XDP_ATTACHED_NONE),
53  [XDP_ATTACHED_DRV] = XLAT(XDP_ATTACHED_DRV),
54  [XDP_ATTACHED_SKB] = XLAT(XDP_ATTACHED_SKB),
55  [XDP_ATTACHED_HW] = XLAT(XDP_ATTACHED_HW),
56  [XDP_ATTACHED_MULTI] = XLAT(XDP_ATTACHED_MULTI),
57  XLAT_END
58 };
59 
60 # endif /* !IN_MPERS */
61 
62 #endif /* !XLAT_MACROS_ONLY */
63