numam-dpdk/drivers/net/virtio
Andrew Rybchenko 1526dd0532 net/virtio: fix Tx checksum offloads
Missing parenthesis around expression before type cast to struct
virtio_net_hdr pointer makes the arithmetic to be in
sizeof(struct virtio_net_hdr) units.

Use rte_pktmbuf_mtod_offset() to fix the problem.

Type of head_size is changed to signed since some compilers bark
on unary minus applied to unsigned.

Fixes: 1ae55ad38e ("net/virtio: fix mbuf data and packet length mismatch")
Cc: stable@dpdk.org

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2019-10-25 19:23:23 +02:00
..
virtio_user net/virtio: improve perf via one-way barriers on used flag 2019-10-23 16:43:09 +02:00
Makefile net/virtio: add Altivec Rx 2019-10-07 15:00:53 +02:00
meson.build net/virtio: add Altivec Rx 2019-10-07 15:00:53 +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: reject unsupported Tx multi-queue modes 2019-10-25 19:23:22 +02:00
virtio_ethdev.h net/virtio: remove remaining simple Tx related stuff 2019-09-06 17:32:42 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: unmap device on initialization error 2019-06-20 23:42:04 +02:00
virtio_pci.h net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
virtio_ring.h net/virtio: define avail and used flags as constants 2019-03-29 17:25:32 +01:00
virtio_rxtx_simple_altivec.c net/virtio: fix Rx AltiVec path by getting all packets 2019-10-23 16:43:09 +02:00
virtio_rxtx_simple_neon.c net/virtio: get all pending Rx packets in vectorized paths 2019-10-07 15:00:57 +02:00
virtio_rxtx_simple_sse.c net/virtio: get all pending Rx packets in vectorized paths 2019-10-07 15:00:57 +02:00
virtio_rxtx_simple.c eal: add macro for attribute weak 2018-10-25 02:11:23 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c net/virtio: fix Tx checksum offloads 2019-10-25 19:23:23 +02:00
virtio_rxtx.h net/virtio: fix Rx stats with vectorized functions 2019-10-07 15:00:57 +02:00
virtio_user_ethdev.c net/virtio_user: remove redundant declaration 2019-07-23 14:31:35 +02:00
virtqueue.c net/virtio: drop redundant suffix in packed ring structure 2019-03-20 18:15:42 +01:00
virtqueue.h net/virtio: improve perf via one-way barriers on used flag 2019-10-23 16:43:09 +02:00