[dpdk-dev] [PATCH v3] net/af_packet: support Tx scattered mbuf input

2017-08-07 Thread Wenfeng Liu
Signed-off-by: Wenfeng Liu --- v3: * Remove trailing whitespace v2: * Fixed coding style issues reported by checkpatch drivers/net/af_packet/rte_eth_af_packet.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b

[dpdk-dev] [PATCH v2] net/af_packet: support Tx scattered mbuf input

2017-08-07 Thread Wenfeng Liu
Signed-off-by: Wenfeng Liu --- v2: * Fixed coding style issues reported by checkpatch drivers/net/af_packet/rte_eth_af_packet.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet

[dpdk-dev] [PATCH] net/af_packet: support Tx scattered mbuf input

2017-08-07 Thread Wenfeng Liu
Signed-off-by: Wenfeng Liu --- drivers/net/af_packet/rte_eth_af_packet.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/af_packet/rte_eth_af_packet.c b/drivers/net/af_packet/rte_eth_af_packet.c index 9a47852..a6cab9b 100644 --- a/drivers/net

[dpdk-dev] [PATCH v3] net/virtio-user: support changing tap interface name

2017-03-28 Thread Wenfeng Liu
This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as backend. Signed-off-by: Wenfeng Liu Reviewed-by: Jianfeng Tan --- v3: * Add a sanity check and raise an exception if it's given for vhost-user backend v2: * Remov

[dpdk-dev] 答复: [PATCH v2] net/virtio-user: support changing tap interface name

2017-03-28 Thread Wenfeng Liu
Hi Yuanhan, Yes, that make sense. I will send an update patch later. Thanks. Regards, liuwf -邮件原件- 发件人: Yuanhan Liu [mailto:yuanhan@linux.intel.com] 发送时间: 2017年3月28日 14:22 收件人: Wenfeng Liu 抄送: jianfeng@intel.com; maxime.coque...@redhat.com; dev@dpdk.org 主题: Re: [PATCH v2] net

[dpdk-dev] [PATCH v2] net/virtio-user: support changing tap interface name

2017-03-27 Thread Wenfeng Liu
This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as backend. Signed-off-by: Wenfeng Liu Reviewed-by: Jianfeng Tan --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 12 drivers/net/virtio/virtio_user/virtio_user_

[dpdk-dev] 答复: [PATCH] net/virtio-user: support changing tap interface name

2017-03-27 Thread Wenfeng Liu
Hi Jianfeng, At 2017-03-28 10:05:11, "Tan, Jianfeng" wrote: >Hi Wenfeng, > >Thank you for implementing this. > >On 3/11/2017 11:36 PM, Wenfeng Liu wrote: >> This patch adds a new option 'iface' to change the interface name of >> tap device wi

[dpdk-dev] [PATCH v2] net/virtio-user: fix overflow

2017-03-14 Thread Wenfeng Liu
uot;) Cc: sta...@dpdk.org Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_pci.h | 3 ++- drivers/net/virtio/virtio_user/virtio_user_dev.c | 2 +- drivers/net/virtio/virtio_user/virtio_user_dev.h | 6 +++--- drivers/net/virtio/virtio_user_ethdev.c | 7 +++ 4 file

[dpdk-dev] 答复: [PATCH] net/virtio-user: fix overflow

2017-03-14 Thread Wenfeng Liu
Hi Yuanhan, >On Mon, Mar 13, 2017 at 03:09:15PM +0000, Wenfeng Liu wrote: >> This commit fixes an array overflow when number of queues is higher than 8. > >Firstly, this commit log could be a bit more informative, to something >like: > >virtio-user limits the qeueue

[dpdk-dev] [PATCH] net/virtio-user: fix tapfds close issue

2017-03-13 Thread Wenfeng Liu
The valid tap file descriptor range should be equal or greater than zero instead of non-zero Fixes: e3b434818bbb ("net/virtio-user: support kernel vhost") Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_user/vhost_kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[dpdk-dev] [PATCH] net/virtio-user: fix overflow

2017-03-13 Thread Wenfeng Liu
This commit fixes an array overflow when number of queues is higher than 8. Fixes: 37a7eb2ae816 ("net/virtio-user: add device emulation layer") Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_pci.h | 3 ++- drivers/net/virtio/virtio_user/virtio_user

[dpdk-dev] [PATCH] net/virtio-user: support changing tap interface name

2017-03-10 Thread Wenfeng Liu
This patch adds a new option 'iface' to change the interface name of tap device with vhost-kernel as backend. Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 12 drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +- drivers/

[dpdk-dev] [PATCH v4] mempool: use cache in single producer or consumer mode

2017-01-10 Thread Wenfeng Liu
Currently we will check mempool flags when we put/get objects from mempool. However, this makes cache useless when mempool is SC|SP, SC|MP, MC|SP cases. This patch makes cache available in above cases and improves performance. Signed-off-by: Wenfeng Liu --- lib/librte_mempool/rte_mempool.h | 26

[dpdk-dev] [PATCH v3] mempool: don't check mempool flags when cache is enabled

2017-01-10 Thread Wenfeng Liu
Currently we will check mempool flags when we put/get objects from mempool. However, this makes cache useless when mempool is SC|SP, SC|MP, MC|SP cases. This patch makes cache available in above cases and improves performance. Signed-off-by: Wenfeng Liu --- lib/librte_mempool/rte_mempool.h | 25

[dpdk-dev] [PATCH v2] mempool: don't check mempool flags when cache is enabled

2017-01-10 Thread Wenfeng Liu
Currently we will check mempool flags when we put/get objects from mempool. However, this makes cache useless when mempool is SC|SP, SC|MP, MC|SP cases. This patch makes cache available in above cases and improves performance. --- lib/librte_mempool/rte_mempool.h | 25 ++--- 1

[dpdk-dev] [PATCH] mempool: try to get objects from cache when the mempool is single consumer and multiple producer

2017-01-09 Thread Wenfeng Liu
We put objects to cache when the mempool is multiple producer, however the cache will not be used when it is single consumer. With this patch we can get objects from cache when the single consumer is happen to be one of the producers, and this improves performance. Signed-off-by: Wenfeng Liu

[dpdk-dev] 答复: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Wenfeng Liu
ntel.com] : 2015?6?17? 11:59 ???: Wenfeng Liu ??: dev at dpdk.org ??: RE: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create() > -Original Message----- > From: Wenfeng Liu [mailto:liuwf at arraynetworks.com.cn] > Sent: Monday, June 15, 2015 12:

[dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-15 Thread Wenfeng Liu
#x27;s virtual PID instead of current->pid. Signed-off-by: Wenfeng Liu --- lib/librte_eal/linuxapp/kni/kni_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 1935d32..18fb677 100644

[dpdk-dev] [PATCH] kni: Passing virtual PID to get_net_ns_by_pid(), so we can create kni interfaces in containers like docker

2015-06-01 Thread Wenfeng Liu
Signed-off-by: Wenfeng Liu --- lib/librte_eal/linuxapp/kni/kni_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index 1935d32..18fb677 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c