numam-dpdk/lib/librte_net
Ivan Malov 39a9429919 net: fix how L4 checksum choice is tested
The API to prepare checksum offloads mistreats L4
checksum type enum values as self-contained flags.

Turning these flag checks into enum checks causes
warnings by GCC about possibly uninitialised IPv4
header pointer. The issue was found to show up in
the case of GCC versions 4.8.5 and 5.4.0, however,
it might be the case for a wider variety of other
versions. Initialise the pointer upon declaration.
and explain the reason behind this in the comment.

Fixes: 4fb7e803eb ("ethdev: add Tx preparation")
Cc: stable@dpdk.org

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2019-06-28 20:32:18 +02:00
..
Makefile net: add MPLS header structure 2018-10-26 22:14:06 +02:00
meson.build net: add MPLS header structure 2018-10-26 22:14:06 +02:00
net_crc_neon.h lib: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
net_crc_sse.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
rte_arp.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_arp.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_esp.h net: add rte prefix to ESP structure 2019-05-24 13:34:45 +02:00
rte_ether.h net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
rte_gre.h net: add rte prefix to GRE structure 2019-05-24 13:34:45 +02:00
rte_icmp.h net: add rte prefix to ICMP defines 2019-05-24 13:34:46 +02:00
rte_ip.h net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
rte_mpls.h net: add MPLS header structure 2018-10-26 22:14:06 +02:00
rte_net_crc.c lib: fix shifting 32-bit signed variable 31 times 2018-11-06 01:14:05 +01:00
rte_net_crc.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_net_version.map lib: clear experimental version tag in linker scripts 2018-05-14 03:37:28 +02:00
rte_net.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_net.h net: fix how L4 checksum choice is tested 2019-06-28 20:32:18 +02:00
rte_sctp.h net: add rte prefix to SCTP structure 2019-05-24 13:34:46 +02:00
rte_tcp.h net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
rte_udp.h net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00