numam-dpdk/drivers/net/virtio
Olivier Matz 3976f19e13 net/virtio: fix compilation with -Og
The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following
error:

  CC virtio_rxtx.o
  virtio_rxtx.c: In function ‘virtio_rx_offload’:
  virtio_rxtx.c:680:10: error: ‘csum’ may be used uninitialized in
                        this function [-Werror=maybe-uninitialized]
       csum = ~csum;
       ~~~~~^~~~~~~

The function rte_raw_cksum_mbuf() may indeed return an error, and
in this case, csum won't be initialized. Fix it by initializing csum
to 0.

Fixes: 96cb671193 ("net/virtio: support Rx checksum offload")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2017-10-12 01:36:57 +01:00
..
virtio_user net/virtio-user: fix TAP name string termination 2017-10-10 15:54:31 +02:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: use pointer to replace memcpy 2017-10-10 15:54:31 +02:00
virtio_ethdev.h net/virtio: fix queue setup consistency 2017-10-10 15:51:04 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c net/virtio: replace magic number with PCI constant 2017-10-10 15:48:53 +02:00
virtio_pci.h net/virtio: keep Rx handler whatever the Tx queue config 2017-10-10 15:52:27 +02:00
virtio_ring.h net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx_simple_neon.c update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
virtio_rxtx_simple_sse.c net/virtio: support to turn on/off traffic flow 2017-04-19 10:49:06 +02:00
virtio_rxtx_simple.c net/virtio: fix mbuf port for simple Rx function 2017-10-10 15:51:04 +02:00
virtio_rxtx_simple.h mbuf: make segment prefree function public 2017-04-05 11:30:29 +02:00
virtio_rxtx.c net/virtio: fix compilation with -Og 2017-10-12 01:36:57 +01:00
virtio_rxtx.h net/virtio: fix a typo 2017-10-10 15:54:31 +02:00
virtio_user_ethdev.c net/virtio: keep Rx handler whatever the Tx queue config 2017-10-10 15:52:27 +02:00
virtqueue.c net/virtio: add Rx interrupt enable/disable functions 2017-01-17 09:26:52 +01:00
virtqueue.h net/virtio: fix indent 2017-10-10 15:48:53 +02:00