numam-dpdk/lib/net
David Marchand e7c727c307 net: fix build with sparse on L2TPv2 bitfields
An external project that wants to do additional checks on fields
endianness can remap rte_beXX types to instrumented types and use
sparse.

The current code breaks OVS build with sparse:
../../lib/ofp-packet.c: note: in included file (through
  .../ovs/dpdk-dir/build/include/rte_flow.h, ../../lib/netdev-dpdk.h,
  ../../lib/dp-packet.h):
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:92:37:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:93:37:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:94:40:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:95:37:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:96:40:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:97:37:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:98:37:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h:99:40:
  error: invalid bitfield specifier for type restricted ovs_be16.
.../ovs/dpdk-dir/build/include/rte_l2tpv2.h💯39:
  error: invalid bitfield specifier for type restricted ovs_be16.
make[3]: *** [lib/ofp-packet.lo] Error 1

Use simple uint16_t types for bitfields in L2TPv2 struct.

Fixes: 3a929df1f2 ("ethdev: support L2TPv2 and PPP procotol")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-10-28 20:28:01 +02:00
..
meson.build ethdev: support L2TPv2 and PPP procotol 2021-10-21 14:15:59 +02:00
net_crc_avx512.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc_neon.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc_sse.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
net_crc.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_arp.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
rte_arp.h net: promote make rarp packet function to stable 2021-10-02 11:12:32 +02:00
rte_ecpri.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_esp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ether.c net: enable random address on Windows 2021-09-30 20:51:11 +02:00
rte_ether.h net: avoid cast-align warning in VLAN insert function 2021-10-25 17:27:17 +02:00
rte_geneve.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_gre.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_gtp.h net: add extension header for GTP PSC 2021-09-28 12:34:58 +02:00
rte_higig.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_icmp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ip.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
rte_l2tpv2.h net: fix build with sparse on L2TPv2 bitfields 2021-10-28 20:28:01 +02:00
rte_mpls.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net_crc.c log: register with standardized names 2021-05-11 15:17:55 +02:00
rte_net_crc.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_net.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
rte_ppp.h ethdev: support L2TPv2 and PPP procotol 2021-10-21 14:15:59 +02:00
rte_sctp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tcp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_udp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vxlan.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map net: promote IPv6 external headers skip API as stable 2021-10-13 12:57:12 +02:00