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

2017-03-02 Thread Ami Sabo
probe(). The fix is to call rte_eth_dev_attach_secondary(), for secondary process, from virtio_user_pmd_probe. Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") Cc: sta...@dpdk.org Signed-off-by: Ami Sabo --- drivers/net/virtio/virtio_user_ethdev.c | 26 --

[dpdk-dev] [PATCH 1/2] lib/librte_ether: export secondary attach function

2017-03-02 Thread Ami Sabo
Today eth_dev_attach_secondary is defined as static and can only be called by pci drivers. However, the functionality is also required for non-pci drivers - so the patch export the function. Signed-off-by: Ami Sabo --- v2: Fix coding style issues (Yuanhan Liu) --- lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH 0/2] Fix virtio-user multi-process crash.

2017-03-02 Thread Ami Sabo
initialized. The patchset contains 2 patches: 1. Export rte_eth_dev_attach_secondary, so non-pci drivers will be allowed to call it. 2. Fix the actual bug by calling the function during virtio_user probe. Ami Sabo (2): lib/librte_ether: export secondary attach function net/virtio-user: fix multi

[dpdk-dev] [PATCH v2 3/3] lib/librte_ether: fix code style issues

2017-03-01 Thread Ami Sabo
Fixed code style issues following Yuanhan Liu's review. Signed-off-by: Ami Sabo --- lib/librte_ether/rte_ethdev.h | 2 +- lib/librte_ether/rte_ether_version.map | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_

[dpdk-dev] [PATCH v2 0/3] Fix virtio-user multi-process crash.

2017-03-01 Thread Ami Sabo
l bug by calling the function during virtio_user probe. 3. Code style fixes following Yuanhan Lio's comments. Ami Sabo (3): lib/librte_ether: export secondary attach function net/virtio-user: fix multi-process issue lib/librte_ether: fix code style issues drivers/net/virtio/virtio_user_

[dpdk-dev] [PATCH v2 1/3] lib/librte_ether: export secondary attach function

2017-03-01 Thread Ami Sabo
Today eth_dev_attach_secondary is defined as static and can only be called by pci drivers. However, the functionality is also required for non-pci drivers - so the patch export the function. Signed-off-by: Ami Sabo --- lib/librte_ether/rte_ethdev.c | 6 +++--- lib/librte_ether

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

2017-03-01 Thread Ami Sabo
probe(). The fix is to call rte_eth_dev_attach_secondary(), for secondary process, from virtio_user_pmd_probe. Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") Cc: sta...@dpdk.org Signed-off-by: Ami Sabo --- drivers/net/virtio/virtio_user_ethdev.c | 26 --

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

2017-02-27 Thread Ami Sabo
ailto:yuanhan@linux.intel.com] Sent: Tuesday, February 28, 2017 8:40 AM To: Ami Sabo Cc: dev@dpdk.org; sta...@dpdk.org Subject: Re: [PATCH 2/2] net/virtio-user: fix multi-process issue On Sun, Feb 26, 2017 at 11:55:26AM +0200, Ami Sabo wrote: > Secondary process doesn't properly attach to the rte_eth_

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

2017-02-26 Thread Ami Sabo
probe(). The fix is to call rte_eth_dev_attach_secondary(), for secondary process, from virtio_user_pmd_probe. Fixes: 7f95f78a8aea ("ethdev: clear data when allocating device") Cc: sta...@dpdk.org Signed-off-by: Ami Sabo --- drivers/net/virtio/virtio_user_ethdev.c | 26 --

[dpdk-dev] [PATCH 1/2] lib/librte_ether: export secondary attach function

2017-02-26 Thread Ami Sabo
Today eth_dev_attach_secondary is defined as static and can only be called by pci drivers. However, the functionality is also required for non-pci drivers - so the patch export the function. Signed-off-by: Ami Sabo --- lib/librte_ether/rte_ethdev.c | 6 +++--- lib/librte_ether

[dpdk-dev] [PATCH 0/2] Fix virtio-user multi-process crash.

2017-02-26 Thread Ami Sabo
initialized. The patchset contains 2 patches: 1. Export rte_eth_dev_attach_secondary, so non-pci drivers will be allowed to call it. 2. Fix the actual bug by calling the function during virtio_user probe. Ami Sabo (2): lib/librte_ether: export secondary attach function net/virtio-user: fix multi

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

2017-02-23 Thread Ami Sabo
o_user_pmd_probe() is called instead of rte_eth_dev_pci_probe(). To fix it: Allow non-pci drivers call to dev_attach_secondary() and call it (for secondary process) from virtio_user_pmd_probe. Signed-off-by: Ami Sabo --- drivers/net/virtio/virtio_user_ethdev.c | 29 + l

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

[dpdk-dev] [PATCH] Signed-off-by: Ami Sabo

2017-02-23 Thread Ami Sabo
ndary(). However, for virtio-user virtio_user_pmd_probe() is called instead of rte_eth_dev_pci_probe(). To fix it: Allow non-pci drivers call to dev_attach_secondary() and call it (for secondary process) from virtio_user_pmd_probe. Signed-off-by: Ami Sabo --- drivers/net/virt

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

2017-02-22 Thread Ami Sabo
o_user_pmd_probe() is called instead of rte_eth_dev_pci_probe(). To fix it: Allow non-pci drivers call to dev_attach_secondary() and call it (for secondary process) from virtio_user_pmd_probe. --- v2: * Fix coding style issues. Signed-off-by: Ami Sabo --- drivers/net/virt

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

2017-02-22 Thread Ami Sabo
tio-user virtio_user_pmd_probe() is called instead of rte_eth_dev_pci_probe(). To fix it: Allow non-pci drivers call to dev_attach_secondary() and call it (for secondary process) from virtio_user_pmd_probe. Signed-off-by: Ami Sabo --- drivers/net/virtio/virtio_user_ethdev.c | 32 +++--