[dpdk-dev] [PATCH v5] vfio: change to use generic multi-process channel

2018-03-04 Thread Jianfeng Tan
Previously, vfio uses its own private channel for the secondary process to get container fd and group fd from the primary process. This patch changes to use the generic mp channel. Test: 1. Bind two NICs to vfio-pci. 2. Start the primary and secondary process. $ (symmetric_mp) -c 2 -- -p

[dpdk-dev] [PATCH] hash: fix missing spinlock unlock in add key

2018-03-04 Thread Pavan Nikhilesh
Fix missing spinlock unlock during add key when key is already present. Fixes: be856325cba3 ("hash: add scalable multi-writer insertion with Intel TSX") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh --- lib/librte_hash/rte_cuckoo_hash.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

[dpdk-dev] [PATCH] pdump: change to use generic multi-process channel

2018-03-04 Thread Jianfeng Tan
The original code replies on the private channel for primary and secondary communication. Change to use the generic multi-process channel. Note with this change, dpdk-pdump will be not compatible with old version DPDK applications. Cc: reshma.pat...@intel.com Signed-off-by: Jianfeng Tan --- li

[dpdk-dev] [PATCH 0/4] allow procinfo and pdump on eth vdev

2018-03-04 Thread Jianfeng Tan
As we know, we have below limitations in vdev: - dpdk-procinfo cannot get the stats of (most) vdev in primary process; - dpdk-pdump cannot dump the packets for (most) vdev in primary proces; - secondary process cannot use (most) vdev in primary process. The very first reason is that the seco

[dpdk-dev] [PATCH 1/4] eal: bring forward multi-process channel init

2018-03-04 Thread Jianfeng Tan
Adjust the init sequence: put mp channel init before bus scan so that we can init the vdev bus through mp channel in the secondary process before the bus scan. Signed-off-by: Jianfeng Tan --- lib/librte_eal/bsdapp/eal/eal.c | 23 +-- lib/librte_eal/linuxapp/eal/eal.c | 23 +

[dpdk-dev] [PATCH 4/4] drivers/net: share vdev data to secondary process

2018-03-04 Thread Jianfeng Tan
dpdk-procinfo, as a secondary process, cannot fetch stats for vdev. This patch enables that by attaching the port from the shared data. We also fill the eth dev ops, with only some ops works in secondary process, for example, stats_get(). Note that, we still cannot Rx/Tx packets on the ports whic

[dpdk-dev] [PATCH 2/4] bus/vdev: bus scan by multi-process channel

2018-03-04 Thread Jianfeng Tan
To scan the vdevs in primary, we send request to primary process to obtain the names for vdevs. Only the name is shared from the primary. In probe(), the device driver is supposed to locate (or request more) the detail information from the primary. Signed-off-by: Jianfeng Tan --- drivers/bus/vd

[dpdk-dev] [PATCH 3/4] drivers/net: do not allocate rte_eth_dev_data privately

2018-03-04 Thread Jianfeng Tan
We introduced private rte_eth_dev_data to allow vdev to be created both in primary process and secondary process(es). This is not friendly to multi-process model, for example, it leads to port id contention issue if two processes both find the data entry is free. And to get stats of primary vdev i

Re: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: add support for avp device

2018-03-04 Thread Zhang, Xiaohua
Hi Yigit, Should I create an update one and send out? BR. Xiaohua Zhang -Original Message- From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] Sent: Friday, March 02, 2018 11:35 PM To: Zhang, Xiaohua; dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] usertools/dpdk-devbind.py: add support for

Re: [dpdk-dev] 16.11.5 (LTS) patches review and test

2018-03-04 Thread gowrishankar muthukrishnan
Hi Luca, In powerpc to support i40e, we wish below patch be merged: c3def6a8724 net/i40e: implement vector PMD for altivec I have verified br-16.11 with the above commit (in cherry-pick, I needed to remove release notes which was meant for 17.05 release which hope is fine here). Could you plea

Re: [dpdk-dev] [PATCH 1/4] vhost: move fdset functions from fd_man.c to fd_man.h

2018-03-04 Thread Yang, Zhiyong
> -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, March 1, 2018 10:14 PM > To: Tan, Jianfeng > Cc: Maxime Coquelin ; Yang, Zhiyong > ; dev@dpdk.org; y...@fridaylinux.org; Bie, Tiwei > ; Wang, Zhihong ; Wang, > Dong1 > Subject: Re: [PATCH 1/4] vh