Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_tc_attrs.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(TCA_UNSPEC) || (defined(HAVE_DECL_TCA_UNSPEC) && HAVE_DECL_TCA_UNSPEC)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((TCA_UNSPEC) == (0), "TCA_UNSPEC != 0");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define TCA_UNSPEC 0
     12 #endif
     13 #if defined(TCA_KIND) || (defined(HAVE_DECL_TCA_KIND) && HAVE_DECL_TCA_KIND)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((TCA_KIND) == (1), "TCA_KIND != 1");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define TCA_KIND 1
     19 #endif
     20 #if defined(TCA_OPTIONS) || (defined(HAVE_DECL_TCA_OPTIONS) && HAVE_DECL_TCA_OPTIONS)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((TCA_OPTIONS) == (2), "TCA_OPTIONS != 2");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define TCA_OPTIONS 2
     26 #endif
     27 #if defined(TCA_STATS) || (defined(HAVE_DECL_TCA_STATS) && HAVE_DECL_TCA_STATS)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((TCA_STATS) == (3), "TCA_STATS != 3");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define TCA_STATS 3
     33 #endif
     34 #if defined(TCA_XSTATS) || (defined(HAVE_DECL_TCA_XSTATS) && HAVE_DECL_TCA_XSTATS)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((TCA_XSTATS) == (4), "TCA_XSTATS != 4");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define TCA_XSTATS 4
     40 #endif
     41 #if defined(TCA_RATE) || (defined(HAVE_DECL_TCA_RATE) && HAVE_DECL_TCA_RATE)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((TCA_RATE) == (5), "TCA_RATE != 5");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define TCA_RATE 5
     47 #endif
     48 #if defined(TCA_FCNT) || (defined(HAVE_DECL_TCA_FCNT) && HAVE_DECL_TCA_FCNT)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((TCA_FCNT) == (6), "TCA_FCNT != 6");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define TCA_FCNT 6
     54 #endif
     55 #if defined(TCA_STATS2) || (defined(HAVE_DECL_TCA_STATS2) && HAVE_DECL_TCA_STATS2)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((TCA_STATS2) == (7), "TCA_STATS2 != 7");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define TCA_STATS2 7
     61 #endif
     62 #if defined(TCA_STAB) || (defined(HAVE_DECL_TCA_STAB) && HAVE_DECL_TCA_STAB)
     63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     64 static_assert((TCA_STAB) == (8), "TCA_STAB != 8");
     65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     66 #else
     67 # define TCA_STAB 8
     68 #endif
     69 #if defined(TCA_PAD) || (defined(HAVE_DECL_TCA_PAD) && HAVE_DECL_TCA_PAD)
     70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     71 static_assert((TCA_PAD) == (9), "TCA_PAD != 9");
     72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     73 #else
     74 # define TCA_PAD 9
     75 #endif
     76 #if defined(TCA_DUMP_INVISIBLE) || (defined(HAVE_DECL_TCA_DUMP_INVISIBLE) && HAVE_DECL_TCA_DUMP_INVISIBLE)
     77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     78 static_assert((TCA_DUMP_INVISIBLE) == (10), "TCA_DUMP_INVISIBLE != 10");
     79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     80 #else
     81 # define TCA_DUMP_INVISIBLE 10
     82 #endif
     83 #if defined(TCA_CHAIN) || (defined(HAVE_DECL_TCA_CHAIN) && HAVE_DECL_TCA_CHAIN)
     84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     85 static_assert((TCA_CHAIN) == (11), "TCA_CHAIN != 11");
     86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     87 #else
     88 # define TCA_CHAIN 11
     89 #endif
     90 #if defined(TCA_HW_OFFLOAD) || (defined(HAVE_DECL_TCA_HW_OFFLOAD) && HAVE_DECL_TCA_HW_OFFLOAD)
     91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     92 static_assert((TCA_HW_OFFLOAD) == (12), "TCA_HW_OFFLOAD != 12");
     93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     94 #else
     95 # define TCA_HW_OFFLOAD 12
     96 #endif
     97 #if defined(TCA_INGRESS_BLOCK) || (defined(HAVE_DECL_TCA_INGRESS_BLOCK) && HAVE_DECL_TCA_INGRESS_BLOCK)
     98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     99 static_assert((TCA_INGRESS_BLOCK) == (13), "TCA_INGRESS_BLOCK != 13");
    100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    101 #else
    102 # define TCA_INGRESS_BLOCK 13
    103 #endif
    104 #if defined(TCA_EGRESS_BLOCK) || (defined(HAVE_DECL_TCA_EGRESS_BLOCK) && HAVE_DECL_TCA_EGRESS_BLOCK)
    105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
    106 static_assert((TCA_EGRESS_BLOCK) == (14), "TCA_EGRESS_BLOCK != 14");
    107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
    108 #else
    109 # define TCA_EGRESS_BLOCK 14
    110 #endif
    111 
    112 #ifndef XLAT_MACROS_ONLY
    113 
    114 # ifdef IN_MPERS
    115 
    116 #  error static const struct xlat rtnl_tc_attrs in mpers mode
    117 
    118 # else
    119 
    120 static
    121 const struct xlat rtnl_tc_attrs[] = {
    122  XLAT(TCA_UNSPEC),
    123  XLAT(TCA_KIND),
    124  XLAT(TCA_OPTIONS),
    125  XLAT(TCA_STATS),
    126  XLAT(TCA_XSTATS),
    127  XLAT(TCA_RATE),
    128  XLAT(TCA_FCNT),
    129  XLAT(TCA_STATS2),
    130  XLAT(TCA_STAB),
    131  XLAT(TCA_PAD),
    132  XLAT(TCA_DUMP_INVISIBLE),
    133  XLAT(TCA_CHAIN),
    134  XLAT(TCA_HW_OFFLOAD),
    135  XLAT(TCA_INGRESS_BLOCK),
    136  XLAT(TCA_EGRESS_BLOCK),
    137  XLAT_END
    138 };
    139 
    140 # endif /* !IN_MPERS */
    141 
    142 #endif /* !XLAT_MACROS_ONLY */
    143