Re: [dpdk-dev] [PATCH] net/virtio-user: fix recognize physical devices

2017-04-27 Thread Yuanhan Liu
On Fri, Apr 21, 2017 at 02:28:09AM +, Jianfeng Tan wrote: > Segfault happens when using virtio-user after commit 7f0a669e7b04 > ("ethdev: add allocation helper for virtual drivers"). > > It's due to we use ethdev->device to recognize physical devices, > but after above commit, this field is al

Re: [dpdk-dev] [PATCH] net/virtio-user: fix recognize physical devices

2017-04-25 Thread Yuanhan Liu
On Fri, Apr 21, 2017 at 02:28:09AM +, Jianfeng Tan wrote: > Segfault happens when using virtio-user after commit 7f0a669e7b04 > ("ethdev: add allocation helper for virtual drivers"). > > It's due to we use ethdev->device to recognize physical devices, > but after above commit, this field is al

[dpdk-dev] [PATCH] net/virtio-user: fix recognize physical devices

2017-04-20 Thread Jianfeng Tan
Segfault happens when using virtio-user after commit 7f0a669e7b04 ("ethdev: add allocation helper for virtual drivers"). It's due to we use ethdev->device to recognize physical devices, but after above commit, this field is also filled for virtual devices. Then we obtain the wrong pci_dev pointer