• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_ifla_vf_port_attrs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IFLA_VF_PORT_UNSPEC) || (defined(HAVE_DECL_IFLA_VF_PORT_UNSPEC) && HAVE_DECL_IFLA_VF_PORT_UNSPEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IFLA_VF_PORT_UNSPEC) == (0), "IFLA_VF_PORT_UNSPEC != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IFLA_VF_PORT_UNSPEC 0
12 #endif
13 #if defined(IFLA_VF_PORT) || (defined(HAVE_DECL_IFLA_VF_PORT) && HAVE_DECL_IFLA_VF_PORT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((IFLA_VF_PORT) == (1), "IFLA_VF_PORT != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define IFLA_VF_PORT 1
19 #endif
20 
21 #ifndef XLAT_MACROS_ONLY
22 
23 # ifdef IN_MPERS
24 
25 #  error static const struct xlat rtnl_ifla_vf_port_attrs in mpers mode
26 
27 # else
28 
29 static
30 const struct xlat rtnl_ifla_vf_port_attrs[] = {
31  XLAT(IFLA_VF_PORT_UNSPEC),
32  XLAT(IFLA_VF_PORT),
33  XLAT_END
34 };
35 
36 # endif /* !IN_MPERS */
37 
38 #endif /* !XLAT_MACROS_ONLY */
39