1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_tca_stats_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(TCA_STATS_UNSPEC) || (defined(HAVE_DECL_TCA_STATS_UNSPEC) && HAVE_DECL_TCA_STATS_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((TCA_STATS_UNSPEC) == (0), "TCA_STATS_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define TCA_STATS_UNSPEC 0 12 #endif 13 #if defined(TCA_STATS_BASIC) || (defined(HAVE_DECL_TCA_STATS_BASIC) && HAVE_DECL_TCA_STATS_BASIC) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((TCA_STATS_BASIC) == (1), "TCA_STATS_BASIC != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define TCA_STATS_BASIC 1 19 #endif 20 #if defined(TCA_STATS_RATE_EST) || (defined(HAVE_DECL_TCA_STATS_RATE_EST) && HAVE_DECL_TCA_STATS_RATE_EST) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((TCA_STATS_RATE_EST) == (2), "TCA_STATS_RATE_EST != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define TCA_STATS_RATE_EST 2 26 #endif 27 #if defined(TCA_STATS_QUEUE) || (defined(HAVE_DECL_TCA_STATS_QUEUE) && HAVE_DECL_TCA_STATS_QUEUE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((TCA_STATS_QUEUE) == (3), "TCA_STATS_QUEUE != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define TCA_STATS_QUEUE 3 33 #endif 34 #if defined(TCA_STATS_APP) || (defined(HAVE_DECL_TCA_STATS_APP) && HAVE_DECL_TCA_STATS_APP) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((TCA_STATS_APP) == (4), "TCA_STATS_APP != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define TCA_STATS_APP 4 40 #endif 41 #if defined(TCA_STATS_RATE_EST64) || (defined(HAVE_DECL_TCA_STATS_RATE_EST64) && HAVE_DECL_TCA_STATS_RATE_EST64) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((TCA_STATS_RATE_EST64) == (5), "TCA_STATS_RATE_EST64 != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define TCA_STATS_RATE_EST64 5 47 #endif 48 #if defined(TCA_STATS_PAD) || (defined(HAVE_DECL_TCA_STATS_PAD) && HAVE_DECL_TCA_STATS_PAD) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((TCA_STATS_PAD) == (6), "TCA_STATS_PAD != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define TCA_STATS_PAD 6 54 #endif 55 56 #ifndef XLAT_MACROS_ONLY 57 58 # ifdef IN_MPERS 59 60 # error static const struct xlat rtnl_tca_stats_attrs in mpers mode 61 62 # else 63 64 static 65 const struct xlat rtnl_tca_stats_attrs[] = { 66 XLAT(TCA_STATS_UNSPEC), 67 XLAT(TCA_STATS_BASIC), 68 XLAT(TCA_STATS_RATE_EST), 69 XLAT(TCA_STATS_QUEUE), 70 XLAT(TCA_STATS_APP), 71 XLAT(TCA_STATS_RATE_EST64), 72 XLAT(TCA_STATS_PAD), 73 XLAT_END 74 }; 75 76 # endif /* !IN_MPERS */ 77 78 #endif /* !XLAT_MACROS_ONLY */ 79