Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix multi-process issue

2017-02-23 Thread Ami Sabo
Mistakenly sent only partial diff. Resent the all patch (from the original code base) as a reply to the first message in the thread. -- Ami -Original Message- From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] Sent: Thursday, February 23, 2017 4:55 AM To: Ami Sabo Cc: dev@dpdk.org

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix multi-process issue

2017-02-22 Thread Yuanhan Liu
On Wed, Feb 22, 2017 at 05:40:28PM +0200, Ami Sabo wrote: > diff --git a/drivers/net/virtio/virtio_user_ethdev.c > b/drivers/net/virtio/virtio_user_ethdev.c > index 5291294..9b3c266 100644 > --- a/drivers/net/virtio/virtio_user_ethdev.c > +++ b/drivers/net/virtio/virtio_user_ethdev.c > @@ -418,25

[dpdk-dev] [PATCH v2] net/virtio-user: fix multi-process issue

2017-02-22 Thread Ami Sabo
Secondary process doesn't properly attach to the rte_eth_device initialized by the primary process. Accessing device from secondary process (e.g. via rte_eth_rx_burst), causes process to crash. because rte_eth_dev_data is not properly set. The issue was flood by 'commit 7f95f78a8aea ("ethdev: cl