Go to file
Yuanhan Liu 87308b5370 vhost: reset device properly
Currently, we reset all fields of a device to zero when reset
happens, which is wrong, since for some fields like device_fh,
ifname, and virt_qp_nb, they should be same and be kept after
reset until the device is removed. And this is what's the new
helper function reset_device() for.

And use rte_zmalloc() instead of rte_malloc, so that we could
avoid init_device(), which basically dose zero reset only so far.
Hence, init_device() is dropped in this patch.

This patch also removes a hack of using the offset a specific
field (which is virtqueue now) inside of `virtio_net' structure
to do reset, which could be broken easily if someone changed the
field order without caution.

Cc: Tetsuya Mukawa <mukawa@igel.co.jp>
Cc: Huawei Xie <huawei.xie@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
2015-11-12 12:39:08 +01:00
app ixgbe: fix Tx hang when RS distance exceeds HW limit 2015-11-12 00:22:26 +01:00
config config: turn off fm10k driver on IBM POWER 2015-11-04 18:49:41 +01:00
doc ixgbe: fix Tx hang when RS distance exceeds HW limit 2015-11-12 00:22:26 +01:00
drivers i40e: fix VSI allocation for VMDq 2015-11-12 12:39:08 +01:00
examples eal: set name to threads 2015-11-03 15:32:34 +01:00
lib vhost: reset device properly 2015-11-12 12:39:08 +01:00
mk mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00
pkg version: 2.1.0 2015-08-17 19:35:37 +02:00
scripts mk: enable next abi preview 2015-07-09 00:56:40 +02:00
tools tools: fix comment in bind script 2015-08-03 19:22:42 +02:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile drivers: create new directory 2015-05-22 15:51:38 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS app/test: add performance test for ring driver 2015-11-03 02:01:58 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00