1905e101dc
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> |
||
---|---|---|
.. | ||
af_packet | ||
bnx2x | ||
bonding | ||
cxgbe | ||
e1000 | ||
enic | ||
fm10k | ||
i40e | ||
ixgbe | ||
mlx4 | ||
mlx5 | ||
mpipe | ||
nfp | ||
null | ||
pcap | ||
ring | ||
szedata2 | ||
virtio | ||
vmxnet3 | ||
xenvirt | ||
Makefile |