numam-dpdk/drivers/net
Olivier Matz 25f80d1087 net/virtio: fix packet corruption
The support of virtio-user changed the way the mbuf dma address is
retrieved, using a physical address in case of virtio-pci and a virtual
address in case of virtio-user.

This change introduced some possible memory corruption in packets,
replacing:
  m->buf_physaddr + RTE_PKTMBUF_HEADROOM
by:
  m->buf_physaddr + m->data_off     (through a macro)

This patch fixes this issue, restoring the original behavior.

By the way, it also rework the macros, adding a "VIRTIO_" prefix and
API comments.

Fixes: f24f8f9fee ("net/virtio: allow virtual address to fill vring descriptors")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-07-22 00:27:29 +02:00
..
af_packet drivers: split parameters infos in multiple lines 2016-07-10 14:51:09 +02:00
bnx2x net/bnx2x: move PCI device ids to the driver 2016-07-11 17:45:48 +02:00
bnxt net/bnxt: move PCI device ids to the driver 2016-07-11 17:47:20 +02:00
bonding net/bonding: fix exported symbol versioning 2016-07-11 14:56:51 +02:00
cxgbe ethdev: get registers width 2016-07-10 14:55:42 +02:00
e1000 net/e1000: move em PCI device ids to the driver 2016-07-11 17:36:56 +02:00
ena net/ena: remove unneeded PCI macro 2016-07-11 17:48:49 +02:00
enic net/enic: fix crash on error interrupt 2016-07-15 23:37:13 +02:00
fm10k net/fm10k: fix FTAG mode with multiple queues 2016-07-15 22:58:18 +02:00
i40e net/i40e: revert VLAN filtering fix 2016-07-15 22:31:06 +02:00
ixgbe net/ixgbe: fix build whith offload flags disabled 2016-07-05 10:59:28 +02:00
mlx4 net/mlx4: add link up/down callback functions 2016-07-05 12:53:50 +02:00
mlx5 net/mlx5: work around gcc error 2016-07-15 23:01:15 +02:00
mpipe drivers: remove static driver names 2016-07-10 14:51:09 +02:00
nfp drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
null drivers: split parameters infos in multiple lines 2016-07-10 14:51:09 +02:00
pcap drivers: split parameters infos in multiple lines 2016-07-10 14:51:09 +02:00
qede net/qede: add xstats 2016-07-08 22:55:19 +02:00
ring drivers: split parameters infos in multiple lines 2016-07-10 14:51:09 +02:00
szedata2 drivers: remove static driver names 2016-07-10 14:51:09 +02:00
thunderx net/thunderx: fix memory alloc issue when changing ring size 2016-07-05 11:20:52 +02:00
vhost net/vhost: fix queue state not reset on destroy 2016-07-11 04:57:39 +02:00
virtio net/virtio: fix packet corruption 2016-07-22 00:27:29 +02:00
vmxnet3 net/vmxnet3: move PCI device ids to the driver 2016-07-11 17:42:54 +02:00
xenvirt drivers: add virtio and xenvirt parameters infos 2016-07-10 14:51:09 +02:00
Makefile net/thunderx: add PMD skeleton 2016-06-20 17:21:54 +02:00