[dpdk-dev] [PATCH v3 1/2] mbuf: provide rte_pktmbuf_alloc_bulk API

2015-12-24 Thread Xie, Huawei
On 12/24/2015 2:49 AM, Ananyev, Konstantin wrote: > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Stephen Hemminger >> Sent: Wednesday, December 23, 2015 6:38 PM >> To: Xie, Huawei >> Cc: dev at dpdk.org; dprovan at bivio.net >> Subject: Re: [dpdk-dev]

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Tetsuya Mukawa
On 2015/12/22 13:47, Rich Lane wrote: > On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu > wrote: > >> On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane wrote: >>> I'm using the vhost callbacks and struct virtio_net with the vhost PMD >> in a few >>> ways: >> Rich, thanks for the info! >> >>> 1.

[dpdk-dev] [Question] How pmd virtio works without UIO?

2015-12-24 Thread Yuanhan Liu
On Wed, Dec 23, 2015 at 11:26:17PM +0100, Thomas Monjalon wrote: > 2015-12-23 10:09, Yuanhan Liu: > > On Wed, Dec 23, 2015 at 09:55:54AM +0800, Peter Xu wrote: > > > On Tue, Dec 22, 2015 at 04:38:30PM +, Xie, Huawei wrote: > > > > On 12/22/2015 7:39 PM, Peter Xu wrote: > > > > > I tried to

[dpdk-dev] [PATCH] virtio: fix crashes in virtio stats functions

2015-12-24 Thread Yuanhan Liu
On Wed, Dec 23, 2015 at 09:45:19AM +, Bernard Iremonger wrote: > This initialisation of nb_rx_queues and nb_tx_queues has been removed > from eth_virtio_dev_init. > > The nb_rx_queues and nb_tx_queues were being initialised in > eth_virtio_dev_init > before the tx_queues and rx_queues arrays

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Yuanhan Liu
On Wed, Dec 23, 2015 at 11:00:15PM +0100, Thomas Monjalon wrote: > 2015-12-23 10:44, Yuanhan Liu: > > On Tue, Dec 22, 2015 at 01:38:29AM -0800, Rich Lane wrote: > > > On Mon, Dec 21, 2015 at 9:47 PM, Yuanhan Liu > > linux.intel.com> > > > wrote: > > > > > > On Mon, Dec 21, 2015 at 08:47:28PM

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Tetsuya Mukawa
On 2015/12/24 12:09, Tetsuya Mukawa wrote: > On 2015/12/22 13:47, Rich Lane wrote: >> On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu >> wrote: >> >>> On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane wrote: I'm using the vhost callbacks and struct virtio_net with the vhost PMD >>> in a few

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Yuanhan Liu
On Thu, Dec 24, 2015 at 12:09:10PM +0900, Tetsuya Mukawa wrote: > On 2015/12/22 13:47, Rich Lane wrote: > > On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu > linux.intel.com> > > wrote: > > > >> On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane wrote: > >>> I'm using the vhost callbacks and struct

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Tetsuya Mukawa
On 2015/12/24 12:51, Yuanhan Liu wrote: > On Wed, Dec 23, 2015 at 11:00:15PM +0100, Thomas Monjalon wrote: >> 2015-12-23 10:44, Yuanhan Liu: >>> On Tue, Dec 22, 2015 at 01:38:29AM -0800, Rich Lane wrote: On Mon, Dec 21, 2015 at 9:47 PM, Yuanhan Liu >>> linux.intel.com> wrote:

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Tetsuya Mukawa
On 2015/12/24 13:00, Yuanhan Liu wrote: > On Thu, Dec 24, 2015 at 12:09:10PM +0900, Tetsuya Mukawa wrote: >> On 2015/12/22 13:47, Rich Lane wrote: >>> On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu >> linux.intel.com> >>> wrote: >>> On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane wrote:

[dpdk-dev] rte_prefetch0() is effective?

2015-12-24 Thread Moon-Sang Lee
I see codes as below in example directory, and I wonder it is effective. Coherent IO is adopted to modern architectures, so I think that DMA initiation by rte_eth_rx_burst() might already fulfills cache lines of RX buffers. Do I really need to call rte_prefetchX()? nb_rx =

[dpdk-dev] [PATCH v5 1/3] vhost: Add callback and private data for vhost PMD

2015-12-24 Thread Tetsuya Mukawa
On 2015/12/24 14:37, Rich Lane wrote: > On Wed, Dec 23, 2015 at 7:09 PM, Tetsuya Mukawa wrote: > >> On 2015/12/22 13:47, Rich Lane wrote: >>> On Mon, Dec 21, 2015 at 7:41 PM, Yuanhan Liu < >> yuanhan.liu at linux.intel.com> >>> wrote: >>> On Fri, Dec 18, 2015 at 10:01:25AM -0800, Rich Lane

[dpdk-dev] [PATCH 1/3] librte_ether: remove RTE_PROC_PRIMARY_OR_ERR_RET and RTE_PROC_PRIMARY_OR_RET

2015-12-24 Thread Qiu, Michael
On 12/23/2015 8:19 PM, Reshma Pattan wrote: > Macros RTE_PROC_PRIMARY_OR_ERR_RET and RTE_PROC_PRIMARY_OR_RET > are blocking the secondary process from using the APIs. > API access should be given to both secondary and primary. Just as the log says, is it safe to do so? Thanks, Michael > Fix

[dpdk-dev] [PATCH v5 0/6] interrupt mode for fm10k

2015-12-24 Thread Qiu, Michael
On 12/23/2015 3:38 PM, He, Shaopeng wrote: > This patch series adds interrupt mode support for fm10k, > contains four major parts: > > 1. implement rx_descriptor_done function in fm10k > 2. add rx interrupt support in fm10k PF and VF > 3. make sure default VID available in dev_init in fm10k > 4.

[dpdk-dev] [PATCH 1/3] app/test-pmd: Handle SIGINT and SIGTERM in testpmd

2015-12-24 Thread Qiu, Michael
On 12/24/2015 11:07 AM, Zhihong Wang wrote: > Handle SIGINT and SIGTERM in testpmd. > > Signed-off-by: Zhihong Wang > --- > app/test-pmd/testpmd.c | 23 +++ > 1 file changed, 23 insertions(+) > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index

[dpdk-dev] [PATCH 2/3] examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd

2015-12-24 Thread Qiu, Michael
On 12/24/2015 11:07 AM, Zhihong Wang wrote: > Handle SIGINT and SIGTERM in l2fwd. > > Signed-off-by: Zhihong Wang > --- > examples/l2fwd/main.c | 25 + > 1 file changed, 25 insertions(+) > > diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c > index

[dpdk-dev] [RFC PATCH 0/2] Reduce DPDK initialization time

2015-12-24 Thread Qiu, Michael
On 11/18/2015 6:30 PM, Zhihong Wang wrote: > This RFC patch aims to reduce DPDK initialization time, which is important in > cases such as micro service. > > Changes are: > > 1. Reduce timer initialization time > > 2. Remove unnecessary hugepage zero-filling operations > > With this patch: > > 1.

[dpdk-dev] Network software verification survey.

2015-12-24 Thread Arseniy Zaostrovnykh
Hello, I am a PhD student and I am doing research about verification of network applications. In order to maximize the utility of our efforts for the networking community, our team would grateful if you answer a couple of questions: http://goo.gl/cL760p This short form should take just 2-3

[dpdk-dev] [PATCH 1/3] app/test-pmd: Handle SIGINT and SIGTERM in testpmd

2015-12-24 Thread Wang, Zhihong
> > +/* When we receive a INT signal, close all ports */ static void > > +sigint_handler(__rte_unused int signum) { > > + unsigned portid; > > + > > + printf("Preparing to exit...\n"); > > Better to notice user "Signal xxx received, reparing to exit... " Can do that. > > > +

[dpdk-dev] [PATCH 3/3] examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd

2015-12-24 Thread Ananyev, Konstantin
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhihong Wang > Sent: Wednesday, December 23, 2015 8:03 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 3/3] examples/l3fwd: Handle SIGINT and SIGTERM in > l3fwd > > Handle SIGINT and SIGTERM in

[dpdk-dev] [PATCH v3] doc: announce ABI change for struct rte_eth_conf

2015-12-24 Thread Ivan Boule
Hi Jijiang, See my comments inline below prefixewd with IB> Ivan On 12/18/2015 03:00 AM, Liu, Jijiang wrote: > Hi Boule, > >> -Original Message- >> From: Ivan Boule [mailto:ivan.boule at 6wind.com] >> Sent: Tuesday, December 15, 2015 4:50 PM >> To: Liu, Jijiang >> Cc: dev at dpdk.org >>

[dpdk-dev] [PATCH v1 0/2] Virtio-net PMD Extension to work on host

2015-12-24 Thread Tan, Jianfeng
Hi Tetsuya, After several days' studying your patch, I have some questions as follows: 1. Is physically-contig memory really necessary? This is a too strong requirement IMHO. IVSHMEM doesn't require this in its original meaning. So how do you think of Huawei Xie's idea of using virtual address

[dpdk-dev] [PATCH 1/3] librte_ether: remove RTE_PROC_PRIMARY_OR_ERR_RET and RTE_PROC_PRIMARY_OR_RET

2015-12-24 Thread Pattan, Reshma
> -Original Message- > From: Qiu, Michael > On 12/23/2015 8:19 PM, Reshma Pattan wrote: > > Macros RTE_PROC_PRIMARY_OR_ERR_RET and > RTE_PROC_PRIMARY_OR_RET are > > blocking the secondary process from using the APIs. > > API access should be given to both secondary and primary. > > Just

[dpdk-dev] DPDK OVS on Ubuntu 14.04# Issue's Resolved# Getting memory backing issues with qemu parameter passing

2015-12-24 Thread Abhijeet Karve
Hi Przemek, Thank you so much for your quick response. The guide( https://github.com/openstack/networking-ovs-dpdk/blob/stable/kilo/doc/source/getstarted/ubuntu.rst ) which you have suggested that is for openstack vhost user installations with devstack. Can't we have any reference for

[dpdk-dev] [PATCH 3/3] examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd

2015-12-24 Thread Stephen Hemminger
On Wed, 23 Dec 2015 15:03:15 -0500 Zhihong Wang wrote: > +/* When we receive a INT signal, close all ports */ > +static void > +sigint_handler(__rte_unused int signum) > +{ > + unsigned portid, nb_ports; > + > + printf("Preparing to exit...\n"); > + nb_ports = rte_eth_dev_count(); >

[dpdk-dev] [Question] How pmd virtio works without UIO?

2015-12-24 Thread Stephen Hemminger
On Thu, 24 Dec 2015 11:30:27 +0800 Yuanhan Liu wrote: > On Wed, Dec 23, 2015 at 11:26:17PM +0100, Thomas Monjalon wrote: > > 2015-12-23 10:09, Yuanhan Liu: > > > On Wed, Dec 23, 2015 at 09:55:54AM +0800, Peter Xu wrote: > > > > On Tue, Dec 22, 2015 at 04:38:30PM +, Xie, Huawei wrote: > > > >

[dpdk-dev] [PATCH v2 0/3] Handle SIGINT and SIGTERM in DPDK examples

2015-12-24 Thread Zhihong Wang
This patch handles SIGINT and SIGTERM in testpmd, l2fwd, and l3fwd, make sure all ports are properly stopped and closed. For virtual ports, the stop and close function may deal with resource cleanup, such as socket files unlinking. -- Changes in v2: 1. Make sure graceful exit for

[dpdk-dev] [PATCH v2 1/3] app/test-pmd: Handle SIGINT and SIGTERM in testpmd

2015-12-24 Thread Zhihong Wang
Handle SIGINT and SIGTERM in testpmd. Signed-off-by: Zhihong Wang --- app/test-pmd/cmdline.c | 19 +-- app/test-pmd/testpmd.c | 38 -- app/test-pmd/testpmd.h | 1 + 3 files changed, 46 insertions(+), 12 deletions(-) diff --git

[dpdk-dev] [PATCH v2 2/3] examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd

2015-12-24 Thread Zhihong Wang
Handle SIGINT and SIGTERM in l2fwd. Signed-off-by: Zhihong Wang --- examples/l2fwd/main.c | 60 +++ 1 file changed, 60 insertions(+) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 720fd5a..75899dd 100644 ---

[dpdk-dev] [PATCH v2 3/3] examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd

2015-12-24 Thread Zhihong Wang
Handle SIGINT and SIGTERM in l3fwd. Signed-off-by: Zhihong Wang --- examples/l3fwd/main.c | 110 +- 1 file changed, 90 insertions(+), 20 deletions(-) diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 5b0c2dd..b9f3232 100644 ---