numam-dpdk/drivers
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
..
bus bus/dpaa: fix memory allocation during scan 2017-10-10 15:30:44 +02:00
crypto xen: remove dependency in libraries 2017-10-09 01:52:08 +02:00
event event/sw: add eth Rx adapter capabilities function 2017-10-10 18:33:19 +02:00
mempool mempool/octeontx: fix icc build 2017-10-09 16:17:33 +02:00
net net/virtio: fix compilation with -Og 2017-10-12 01:36:57 +01:00
Makefile mempool/octeontx: add build and log infrastructure 2017-10-08 19:24:07 +02:00