1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_xdp_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(IFLA_XDP_UNSPEC) || (defined(HAVE_DECL_IFLA_XDP_UNSPEC) && HAVE_DECL_IFLA_XDP_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((IFLA_XDP_UNSPEC) == (0), "IFLA_XDP_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define IFLA_XDP_UNSPEC 0 12 #endif 13 #if defined(IFLA_XDP_FD) || (defined(HAVE_DECL_IFLA_XDP_FD) && HAVE_DECL_IFLA_XDP_FD) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((IFLA_XDP_FD) == (1), "IFLA_XDP_FD != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define IFLA_XDP_FD 1 19 #endif 20 #if defined(IFLA_XDP_ATTACHED) || (defined(HAVE_DECL_IFLA_XDP_ATTACHED) && HAVE_DECL_IFLA_XDP_ATTACHED) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((IFLA_XDP_ATTACHED) == (2), "IFLA_XDP_ATTACHED != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define IFLA_XDP_ATTACHED 2 26 #endif 27 #if defined(IFLA_XDP_FLAGS) || (defined(HAVE_DECL_IFLA_XDP_FLAGS) && HAVE_DECL_IFLA_XDP_FLAGS) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((IFLA_XDP_FLAGS) == (3), "IFLA_XDP_FLAGS != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define IFLA_XDP_FLAGS 3 33 #endif 34 #if defined(IFLA_XDP_PROG_ID) || (defined(HAVE_DECL_IFLA_XDP_PROG_ID) && HAVE_DECL_IFLA_XDP_PROG_ID) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((IFLA_XDP_PROG_ID) == (4), "IFLA_XDP_PROG_ID != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define IFLA_XDP_PROG_ID 4 40 #endif 41 #if defined(IFLA_XDP_DRV_PROG_ID) || (defined(HAVE_DECL_IFLA_XDP_DRV_PROG_ID) && HAVE_DECL_IFLA_XDP_DRV_PROG_ID) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((IFLA_XDP_DRV_PROG_ID) == (5), "IFLA_XDP_DRV_PROG_ID != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define IFLA_XDP_DRV_PROG_ID 5 47 #endif 48 #if defined(IFLA_XDP_SKB_PROG_ID) || (defined(HAVE_DECL_IFLA_XDP_SKB_PROG_ID) && HAVE_DECL_IFLA_XDP_SKB_PROG_ID) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((IFLA_XDP_SKB_PROG_ID) == (6), "IFLA_XDP_SKB_PROG_ID != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define IFLA_XDP_SKB_PROG_ID 6 54 #endif 55 #if defined(IFLA_XDP_HW_PROG_ID) || (defined(HAVE_DECL_IFLA_XDP_HW_PROG_ID) && HAVE_DECL_IFLA_XDP_HW_PROG_ID) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((IFLA_XDP_HW_PROG_ID) == (7), "IFLA_XDP_HW_PROG_ID != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define IFLA_XDP_HW_PROG_ID 7 61 #endif 62 63 #ifndef XLAT_MACROS_ONLY 64 65 # ifdef IN_MPERS 66 67 # error static const struct xlat rtnl_ifla_xdp_attrs in mpers mode 68 69 # else 70 71 static 72 const struct xlat rtnl_ifla_xdp_attrs[] = { 73 XLAT(IFLA_XDP_UNSPEC), 74 XLAT(IFLA_XDP_FD), 75 XLAT(IFLA_XDP_ATTACHED), 76 XLAT(IFLA_XDP_FLAGS), 77 XLAT(IFLA_XDP_PROG_ID), 78 XLAT(IFLA_XDP_DRV_PROG_ID), 79 XLAT(IFLA_XDP_SKB_PROG_ID), 80 XLAT(IFLA_XDP_HW_PROG_ID), 81 XLAT_END 82 }; 83 84 # endif /* !IN_MPERS */ 85 86 #endif /* !XLAT_MACROS_ONLY */ 87