numam-dpdk/drivers/net
Yuanhan Liu 1905e101dc virtio: retrieve header size from device setting
The mergeable virtio net hdr format has been the standard and the
only virtio net hdr format since virtio 1.0. Therefore, we can
not hardcode hdr_size to "sizeof(struct virtio_net_hdr)" any more
at virtio_recv_pkts(), otherwise, there would be a mismatch of
hdr size from rte_vhost_enqueue_burst() and virtio_recv_pkts(),
leading a packet corruption.

Instead, we should retrieve it from hw->vtnet_hdr_size; we will
do proper settings at eth_virtio_dev_init() in later patches.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Qian Xu <qian.q.xu@intel.com>
Reviewed-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Tested-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Huawei Xie <huawei.xie@intel.com>
2016-02-03 16:07:49 +01:00
..
af_packet af_packet: set input port in mbuf 2015-12-10 22:07:06 +01:00
bnx2x bnx2x: add version 2015-12-13 01:58:10 +01:00
bonding bonding: fix reordering of IP fragments 2015-12-14 22:53:17 +01:00
cxgbe cxgbe: fix Rx queue setup error management 2015-12-12 22:34:43 +01:00
e1000 remove double semicolons 2015-12-07 04:57:16 +01:00
enic enic: fix vlan filtering 2015-11-10 17:06:53 +01:00
fm10k fm10k: log Rx and Tx functions in use 2015-11-27 19:52:49 +01:00
i40e i40e: fix flow director index sign 2015-12-15 18:06:54 +01:00
ixgbe ixgbe/base: new FW values 2016-01-14 09:43:21 +01:00
mlx4 mlx4: allow operation in secondary processes 2015-11-24 17:49:27 +01:00
mlx5 mlx5: fix available entries in Tx rings 2015-11-24 17:49:27 +01:00
mpipe mk: fix external shared library dependencies of drivers 2015-12-08 00:09:43 +01:00
nfp nfp: add link status interrupt 2015-12-08 03:00:42 +01:00
null null: remove fake pci interface 2015-11-03 18:46:52 +01:00
pcap mk: fix shared library dependencies of drivers 2015-12-06 22:15:14 +01:00
ring ring: fix memory leak when detaching 2015-11-23 23:51:14 +01:00
szedata2 mk: fix shared library dependencies of drivers 2015-12-06 22:15:14 +01:00
virtio virtio: retrieve header size from device setting 2016-02-03 16:07:49 +01:00
vmxnet3 remove blank lines at end-of-file 2015-12-07 04:57:16 +01:00
xenvirt remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00
Makefile nfp: introduce driver initialization 2015-12-08 03:00:42 +01:00