1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_dcb_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(DCB_ATTR_UNDEFINED) || (defined(HAVE_DECL_DCB_ATTR_UNDEFINED) && HAVE_DECL_DCB_ATTR_UNDEFINED) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((DCB_ATTR_UNDEFINED) == (0), "DCB_ATTR_UNDEFINED != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define DCB_ATTR_UNDEFINED 0 12 #endif 13 #if defined(DCB_ATTR_IFNAME) || (defined(HAVE_DECL_DCB_ATTR_IFNAME) && HAVE_DECL_DCB_ATTR_IFNAME) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((DCB_ATTR_IFNAME) == (1), "DCB_ATTR_IFNAME != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define DCB_ATTR_IFNAME 1 19 #endif 20 #if defined(DCB_ATTR_STATE) || (defined(HAVE_DECL_DCB_ATTR_STATE) && HAVE_DECL_DCB_ATTR_STATE) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((DCB_ATTR_STATE) == (2), "DCB_ATTR_STATE != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define DCB_ATTR_STATE 2 26 #endif 27 #if defined(DCB_ATTR_PFC_STATE) || (defined(HAVE_DECL_DCB_ATTR_PFC_STATE) && HAVE_DECL_DCB_ATTR_PFC_STATE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((DCB_ATTR_PFC_STATE) == (3), "DCB_ATTR_PFC_STATE != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define DCB_ATTR_PFC_STATE 3 33 #endif 34 #if defined(DCB_ATTR_PFC_CFG) || (defined(HAVE_DECL_DCB_ATTR_PFC_CFG) && HAVE_DECL_DCB_ATTR_PFC_CFG) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((DCB_ATTR_PFC_CFG) == (4), "DCB_ATTR_PFC_CFG != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define DCB_ATTR_PFC_CFG 4 40 #endif 41 #if defined(DCB_ATTR_NUM_TC) || (defined(HAVE_DECL_DCB_ATTR_NUM_TC) && HAVE_DECL_DCB_ATTR_NUM_TC) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((DCB_ATTR_NUM_TC) == (5), "DCB_ATTR_NUM_TC != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define DCB_ATTR_NUM_TC 5 47 #endif 48 #if defined(DCB_ATTR_PG_CFG) || (defined(HAVE_DECL_DCB_ATTR_PG_CFG) && HAVE_DECL_DCB_ATTR_PG_CFG) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((DCB_ATTR_PG_CFG) == (6), "DCB_ATTR_PG_CFG != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define DCB_ATTR_PG_CFG 6 54 #endif 55 #if defined(DCB_ATTR_SET_ALL) || (defined(HAVE_DECL_DCB_ATTR_SET_ALL) && HAVE_DECL_DCB_ATTR_SET_ALL) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((DCB_ATTR_SET_ALL) == (7), "DCB_ATTR_SET_ALL != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define DCB_ATTR_SET_ALL 7 61 #endif 62 #if defined(DCB_ATTR_PERM_HWADDR) || (defined(HAVE_DECL_DCB_ATTR_PERM_HWADDR) && HAVE_DECL_DCB_ATTR_PERM_HWADDR) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((DCB_ATTR_PERM_HWADDR) == (8), "DCB_ATTR_PERM_HWADDR != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define DCB_ATTR_PERM_HWADDR 8 68 #endif 69 #if defined(DCB_ATTR_CAP) || (defined(HAVE_DECL_DCB_ATTR_CAP) && HAVE_DECL_DCB_ATTR_CAP) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((DCB_ATTR_CAP) == (9), "DCB_ATTR_CAP != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define DCB_ATTR_CAP 9 75 #endif 76 #if defined(DCB_ATTR_NUMTCS) || (defined(HAVE_DECL_DCB_ATTR_NUMTCS) && HAVE_DECL_DCB_ATTR_NUMTCS) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((DCB_ATTR_NUMTCS) == (10), "DCB_ATTR_NUMTCS != 10"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define DCB_ATTR_NUMTCS 10 82 #endif 83 #if defined(DCB_ATTR_BCN) || (defined(HAVE_DECL_DCB_ATTR_BCN) && HAVE_DECL_DCB_ATTR_BCN) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((DCB_ATTR_BCN) == (11), "DCB_ATTR_BCN != 11"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define DCB_ATTR_BCN 11 89 #endif 90 #if defined(DCB_ATTR_APP) || (defined(HAVE_DECL_DCB_ATTR_APP) && HAVE_DECL_DCB_ATTR_APP) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((DCB_ATTR_APP) == (12), "DCB_ATTR_APP != 12"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define DCB_ATTR_APP 12 96 #endif 97 #if defined(DCB_ATTR_IEEE) || (defined(HAVE_DECL_DCB_ATTR_IEEE) && HAVE_DECL_DCB_ATTR_IEEE) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((DCB_ATTR_IEEE) == (13), "DCB_ATTR_IEEE != 13"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define DCB_ATTR_IEEE 13 103 #endif 104 #if defined(DCB_ATTR_DCBX) || (defined(HAVE_DECL_DCB_ATTR_DCBX) && HAVE_DECL_DCB_ATTR_DCBX) 105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 106 static_assert((DCB_ATTR_DCBX) == (14), "DCB_ATTR_DCBX != 14"); 107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 108 #else 109 # define DCB_ATTR_DCBX 14 110 #endif 111 #if defined(DCB_ATTR_FEATCFG) || (defined(HAVE_DECL_DCB_ATTR_FEATCFG) && HAVE_DECL_DCB_ATTR_FEATCFG) 112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 113 static_assert((DCB_ATTR_FEATCFG) == (15), "DCB_ATTR_FEATCFG != 15"); 114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 115 #else 116 # define DCB_ATTR_FEATCFG 15 117 #endif 118 #if defined(DCB_ATTR_CEE) || (defined(HAVE_DECL_DCB_ATTR_CEE) && HAVE_DECL_DCB_ATTR_CEE) 119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 120 static_assert((DCB_ATTR_CEE) == (16), "DCB_ATTR_CEE != 16"); 121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 122 #else 123 # define DCB_ATTR_CEE 16 124 #endif 125 126 #ifndef XLAT_MACROS_ONLY 127 128 # ifdef IN_MPERS 129 130 # error static const struct xlat rtnl_dcb_attrs in mpers mode 131 132 # else 133 134 static 135 const struct xlat rtnl_dcb_attrs[] = { 136 XLAT(DCB_ATTR_UNDEFINED), 137 XLAT(DCB_ATTR_IFNAME), 138 XLAT(DCB_ATTR_STATE), 139 XLAT(DCB_ATTR_PFC_STATE), 140 XLAT(DCB_ATTR_PFC_CFG), 141 XLAT(DCB_ATTR_NUM_TC), 142 XLAT(DCB_ATTR_PG_CFG), 143 XLAT(DCB_ATTR_SET_ALL), 144 XLAT(DCB_ATTR_PERM_HWADDR), 145 XLAT(DCB_ATTR_CAP), 146 XLAT(DCB_ATTR_NUMTCS), 147 XLAT(DCB_ATTR_BCN), 148 XLAT(DCB_ATTR_APP), 149 XLAT(DCB_ATTR_IEEE), 150 XLAT(DCB_ATTR_DCBX), 151 XLAT(DCB_ATTR_FEATCFG), 152 XLAT(DCB_ATTR_CEE), 153 XLAT_END 154 }; 155 156 # endif /* !IN_MPERS */ 157 158 #endif /* !XLAT_MACROS_ONLY */ 159