• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_tc_action_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(TCA_ACT_UNSPEC) || (defined(HAVE_DECL_TCA_ACT_UNSPEC) && HAVE_DECL_TCA_ACT_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((TCA_ACT_UNSPEC) == (0), "TCA_ACT_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define TCA_ACT_UNSPEC 0
12 #endif
13 #if defined(TCA_ACT_KIND) || (defined(HAVE_DECL_TCA_ACT_KIND) && HAVE_DECL_TCA_ACT_KIND)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((TCA_ACT_KIND) == (1), "TCA_ACT_KIND != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define TCA_ACT_KIND 1
19 #endif
20 #if defined(TCA_ACT_OPTIONS) || (defined(HAVE_DECL_TCA_ACT_OPTIONS) && HAVE_DECL_TCA_ACT_OPTIONS)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((TCA_ACT_OPTIONS) == (2), "TCA_ACT_OPTIONS != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define TCA_ACT_OPTIONS 2
26 #endif
27 #if defined(TCA_ACT_INDEX) || (defined(HAVE_DECL_TCA_ACT_INDEX) && HAVE_DECL_TCA_ACT_INDEX)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((TCA_ACT_INDEX) == (3), "TCA_ACT_INDEX != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define TCA_ACT_INDEX 3
33 #endif
34 #if defined(TCA_ACT_STATS) || (defined(HAVE_DECL_TCA_ACT_STATS) && HAVE_DECL_TCA_ACT_STATS)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((TCA_ACT_STATS) == (4), "TCA_ACT_STATS != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define TCA_ACT_STATS 4
40 #endif
41 #if defined(TCA_ACT_PAD) || (defined(HAVE_DECL_TCA_ACT_PAD) && HAVE_DECL_TCA_ACT_PAD)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((TCA_ACT_PAD) == (5), "TCA_ACT_PAD != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define TCA_ACT_PAD 5
47 #endif
48 #if defined(TCA_ACT_COOKIE) || (defined(HAVE_DECL_TCA_ACT_COOKIE) && HAVE_DECL_TCA_ACT_COOKIE)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((TCA_ACT_COOKIE) == (6), "TCA_ACT_COOKIE != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define TCA_ACT_COOKIE 6
54 #endif
55 
56 #ifndef XLAT_MACROS_ONLY
57 
58 # ifdef IN_MPERS
59 
60 #  error static const struct xlat rtnl_tc_action_attrs in mpers mode
61 
62 # else
63 
64 static
65 const struct xlat rtnl_tc_action_attrs[] = {
66  XLAT(TCA_ACT_UNSPEC),
67  XLAT(TCA_ACT_KIND),
68  XLAT(TCA_ACT_OPTIONS),
69  XLAT(TCA_ACT_INDEX),
70  XLAT(TCA_ACT_STATS),
71  XLAT(TCA_ACT_PAD),
72  XLAT(TCA_ACT_COOKIE),
73  XLAT_END
74 };
75 
76 # endif /* !IN_MPERS */
77 
78 #endif /* !XLAT_MACROS_ONLY */
79