[dpdk-dev] [PATCH] rte_memory.h: include stdio.h for FILE

2014-06-17 Thread Xie, Huawei
Hi Shimamoto: At least rte_tailq.h, rte_mbuf.h should also include stdio.h. -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Hiroshi Shimamoto Sent: Thursday, June 12, 2014 4:11 PM To: dev at dpdk.org Cc: Hayato Momma Subject: [dpdk-dev] [PATCH] rte_memory.h: include

[dpdk-dev] [PATCH v4 1/3] vhost: Fix packet length issue

2014-11-05 Thread Xie, Huawei
> -Original Message- > From: Ouyang, Changchun > Sent: Wednesday, November 05, 2014 12:11 AM > To: dev at dpdk.org > Cc: Xie, Huawei; Ananyev, Konstantin; Cao, Waterman; Ouyang, Changchun > Subject: [PATCH v4 1/3] vhost: Fix packet length issue > > As HW vlan stri

[dpdk-dev] [PATCH v4 3/3] vhost: Check offset value

2014-11-05 Thread Xie, Huawei
> -Original Message- > From: Ouyang, Changchun > Sent: Wednesday, November 05, 2014 12:11 AM > To: dev at dpdk.org > Cc: Xie, Huawei; Ananyev, Konstantin; Cao, Waterman; Ouyang, Changchun > Subject: [PATCH v4 3/3] vhost: Check offset value > > This patch checks

[dpdk-dev] [PATCH v4 3/3] vhost: Check offset value

2014-11-05 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, November 05, 2014 10:01 AM > To: Xie, Huawei > Cc: dev at dpdk.org; Ouyang, Changchun > Subject: Re: [dpdk-dev] [PATCH v4 3/3] vhost: Check offset value > &g

[dpdk-dev] [PATCH] lib/librte_vhost: code style fixes

2014-11-05 Thread Xie, Huawei
:(. Resent done. Please drop this patch. > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, November 05, 2014 2:10 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] lib/librte_vhost: code s

[dpdk-dev] [PATCH] lib/librte_vhost: code style fixes

2014-11-05 Thread Xie, Huawei
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, November 05, 2014 1:42 PM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] lib/librte_vhost: code style fixes > > Hi Huawei, > > checkpatch.pl reports som

[dpdk-dev] [PATCH] lib/librte_vhost: code style fixes

2014-11-05 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Wednesday, November 05, 2014 2:25 PM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] lib/librte_vhost: code style fixes > > 2014-11-05 21:21, Xie, H

[dpdk-dev] [PATCH] lib/librte_pmd_i40e: i40e vlan filter set fix

2014-11-06 Thread Xie, Huawei
Thomas, comments for this patch? > -Original Message- > From: Xie, Huawei > Sent: Saturday, September 27, 2014 10:49 PM > To: dev at dpdk.org > Cc: Xie, Huawei; Chen, Jing D; Zhang, Helin > Subject: [PATCH] lib/librte_pmd_i40e: i40e vlan filter set fix > > the ri

[dpdk-dev] [PATCH] librte_vhost: Fix the path test issue

2014-11-06 Thread Xie, Huawei
> path = realpath(memfile, resolved_path); > - if (path == NULL) { > + if ((path == NULL) && (strlen(resolved_path) == 0)) { > RTE_LOG(ERR, VHOST_CONFIG, > "(%"PRIu64") Failed to resolve fd directory\n", >

[dpdk-dev] [PATCH] librte_vhost: Fix the path test issue

2014-11-06 Thread Xie, Huawei
> -Original Message- > From: Ouyang, Changchun > Sent: Wednesday, November 05, 2014 10:20 PM > To: Xie, Huawei; dev at dpdk.org > Cc: Ouyang, Changchun > Subject: RE: [dpdk-dev] [PATCH] librte_vhost: Fix the path test issue > > Hi Huawei, > Thanks for the com

[dpdk-dev] [PATCH] librte_vhost: Fix the path test issue

2014-11-06 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ouyang Changchun > Sent: Monday, November 03, 2014 1:12 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] librte_vhost: Fix the path test issue > > Commit aec8283d47d4e4366b6 fixes the compilation issue,

[dpdk-dev] [RFC PATCH 0/7] lib/librte_vhost: Add vhost-user extension

2014-11-07 Thread Xie, Huawei
Tetsuya: Will do careful review. You send all the patches including vhost-user implementation, seems I don't have to send mine, :). When do you plan to send formal patch? > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tetsuya Mukawa > Sent: Thursday, Novem

[dpdk-dev] [RFC PATCH 0/7] lib/librte_vhost: Add vhost-user extension

2014-11-07 Thread Xie, Huawei
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Thursday, November 06, 2014 10:10 PM > To: Xie, Huawei; dev at dpdk.org > Cc: nakajima.yoshihiro at lab.ntt.co.jp; masutani.hitoshi at lab.ntt.co.jp; > Thomas > Monjalon (thomas.

[dpdk-dev] [RFC PATCH 3/7] lib/librte_vhost: Add an abstraction layer tointerpret messages

2014-11-07 Thread Xie, Huawei
> -struct vhost_net_device_ops const *get_virtio_net_callbacks(void); > +struct vhost_net_device_ops const *get_virtio_net_callbacks( > + vhost_driver_type_t type); Tetsuya: I feel currently it is better we still keep the common get_virtio_net_callbacks(). For the message flow from c

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-07 Thread Xie, Huawei
How about using client/server model and select/poll event handing mechanism rather than poll? The polling could cause periodic jitter. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tetsuya Mukawa > Sent: Thursday, November 06, 2014 4:15 AM > To: dev at dpd

[dpdk-dev] [PATCH v2 1/2] lib/librte_pmd_i40e: set vlan filter fix

2014-11-10 Thread Xie, Huawei
> -Original Message- > From: Zhang, Helin > Sent: Sunday, November 09, 2014 10:09 PM > To: Xie, Huawei; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 1/2] lib/librte_pmd_i40e: set vlan filter > fix > > > > > -Original Message- >

[dpdk-dev] [PATCH v2 2/2] lib/librte_pmd_i40e: add I40E_VFTA_IDX and I40E_VFTA_BIT macros for VFTA related operation

2014-11-10 Thread Xie, Huawei
> -Original Message- > From: Zhang, Helin > Sent: Sunday, November 09, 2014 10:08 PM > To: Xie, Huawei; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2 2/2] lib/librte_pmd_i40e: add I40E_VFTA_IDX > and I40E_VFTA_BIT macros for VFTA related operat

[dpdk-dev] [RFC PATCH 3/7] lib/librte_vhost: Add an abstraction layer tointerpret messages

2014-11-10 Thread Xie, Huawei
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Sunday, November 09, 2014 10:13 PM > To: Xie, Huawei; dev at dpdk.org > Cc: nakajima.yoshihiro at lab.ntt.co.jp; masutani.hitoshi at lab.ntt.co.jp > Subject: Re: [dpdk-dev] [RFC PATCH 3/7

[dpdk-dev] [RFC PATCH 7/7] lib/librte_vhost: Add vhost-user implementation

2014-11-10 Thread Xie, Huawei
Tetsuya: I already did this, :), and will publish the code for review after I do some cleanup next week. > -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Sunday, November 09, 2014 10:11 PM > To: Xie, Huawei; dev at dpdk.org > Cc: nakaji

[dpdk-dev] vhost-user technical isssues

2014-11-11 Thread Xie, Huawei
Hi Tetsuya: There are two major technical issues in my mind for vhost-user implementation. 1) memory region map Vhost-user passes us file fd and offset for each memory region. Unfortunately the mmap offset is "very" wrong. I discovered this issue long time ago, and also found that I couldn't mma

[dpdk-dev] [PATCH] Added Spinlock to l3fwd-vf example to prevent race conditioning

2014-11-11 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Tuesday, November 11, 2014 3:57 PM > To: Mrzyglod, DanielX T > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] Added Spinlock to l3fwd-vf example to prevent > race conditioning > >

[dpdk-dev] Question on using SR-IOV with dpdk apps

2014-08-05 Thread Xie, Huawei
Since some version of ixgbe driver, it will not generate mac address for the VFs. You could use ip link set to set mac address for the VFs. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Patrick McGleenon > Sent: Tuesday, August 05, 2014 10:39 PM > To: Anj

[dpdk-dev] [PATCH v3] lib/librte_vhost: vhost library support to facilitate integration with DPDK accelerated vswitch.

2014-08-05 Thread Xie, Huawei
This v3 patch fixes plenty of checkpatch issues. > -Original Message- > From: Xie, Huawei > Sent: Tuesday, August 05, 2014 11:54 PM > To: dev at dpdk.org > Cc: Xie, Huawei > Subject: [PATCH v3] lib/librte_vhost: vhost library support to facilitate > integration

[dpdk-dev] [PATCH 3/3] examples/vhost: add new vhost example

2014-08-06 Thread Xie, Huawei
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, August 06, 2014 11:33 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 3/3] examples/vhost: add new vhost example > > &g

[dpdk-dev] One pkt in mbuf chain - virtio pmd driver

2014-08-07 Thread Xie, Huawei
Hi Tomasz: This is a known issue in user space vhost. Will be fixed in subsequent patch once the vhost lib is applied. BR. -Huawei > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Czaus, Tomasz > Sent: Thursday, August 07, 2014 2:20 PM > To: dev at dpdk.org >

[dpdk-dev] [PATCH 1/2] lib/librte_vhost: vhost library support to facilitate integration with vswitch.

2014-08-08 Thread Xie, Huawei
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Friday, August 08, 2014 1:59 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/2] lib/librte_vhost: vhost library support to > facilitate int

[dpdk-dev] [PATCH 0/3] vhost example based on user space vhost library.

2014-08-19 Thread Xie, Huawei
; From: Tahhan, Maryam > Sent: Tuesday, August 19, 2014 4:51 PM > To: Cao, Waterman; Xie, Huawei; dev at dpdk.org > Cc: Long, Thomas > Subject: RE: [dpdk-dev] [PATCH 0/3] vhost example based on user space vhost > library. > > Hi > I see the eventfd module is still included.

[dpdk-dev] [PATCH v3] lib/librte_vhost: vhost library support to facilitate integration with DPDK accelerated vswitch.

2014-08-20 Thread Xie, Huawei
Hi: The support of qemu user space vhost has been planned. Thanks From: loy wolfe [mailto:loywo...@gmail.com] Sent: Wednesday, August 20, 2014 10:19 AM To: dev at dpdk.org; Xie, Huawei Subject: Re: [dpdk-dev] [PATCH v3] lib/librte_vhost: vhost library support to facilitate integration with DPDK

[dpdk-dev] [RFC] lib/librte_vhost: qemu vhost-user support into DPDK vhost library

2014-08-26 Thread Xie, Huawei
Hi all: We are implementing qemu official vhost-user interface into DPDK vhost library, so there would be two coexisting implementations for user space vhost backend. Pro and cons in my mind: Existing solution: Pros: works with qemu version before 2.1; Cons: depends on eventfd proxy kernel modu

[dpdk-dev] [RFC] lib/librte_vhost: qemu vhost-user support into DPDK vhost library

2014-08-27 Thread Xie, Huawei
> -Original Message- > From: Tetsuya.Mukawa [mailto:mukawa at igel.co.jp] > Sent: Wednesday, August 27, 2014 1:28 PM > To: Ouyang, Changchun; dev at dpdk.org > Cc: Xie, Huawei; Katsuya MATSUBARA; nakajima.yoshihiro at lab.ntt.co.jp; > Hitoshi Masutani > Subject: Re:

[dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary

2014-08-27 Thread Xie, Huawei
Hi David: The reason iopl is put in rte_eal_init is that we want all later created DPDK processes/threads inherit the iopl permission. If you only call iopl in pmd_init, RX/TX and other threads which needs io permission will segmentation fault. -huawei > -Original Message- > From: dev [

[dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary

2014-08-27 Thread Xie, Huawei
That is ok. If virtio PMD is a dynamic linked library, is it possible that virtio PMD is loaded later? From: David Marchand [mailto:david.march...@6wind.com] Sent: Wednesday, August 27, 2014 5:34 PM To: Xie, Huawei Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH RFC 0/3] only call iopl when

[dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary

2014-08-27 Thread Xie, Huawei
ok, as long as we ensure with virtio PMD, the parent DPDK process has the iopl permission so that all child threads inherits the permission. From: David Marchand [mailto:david.march...@6wind.com] Sent: Wednesday, August 27, 2014 6:05 PM To: Xie, Huawei Cc: dev at dpdk.org Subject: Re: [dpdk

[dpdk-dev] [PATCH RFC 2/3] eal: don't call rte_eal_iopl_init unconditionnally

2014-08-27 Thread Xie, Huawei
Acked-by: Huawei Xie > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of David Marchand > Sent: Tuesday, August 26, 2014 10:12 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH RFC 2/3] eal: don't call rte_eal_iopl_init > unconditionnally > > There is no ne

[dpdk-dev] [PATCH v3] lib/librte_vhost: vhost library support to facilitate integration with DPDK accelerated vswitch.

2014-08-29 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, August 29, 2014 4:16 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3] lib/librte_vhost: vhost library support to > facilitate

[dpdk-dev] [PATCH] i40e: Fix a vlan bug

2014-12-05 Thread Xie, Huawei
Hi Thomas: I will continue work on this fix. Do you have comments to the v4 patch? For Bruce's comment, I add some descriptive commit message for the commit. For the constant number, I define a macro as the wrapper for the VFA array index and value. One question is it isn't based on latest commit

[dpdk-dev] DDPK use of MAP_FIXED in mmap

2014-12-09 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Tuesday, December 09, 2014 2:55 AM > To: Karmarkar Suyash > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] DDPK use of MAP_FIXED in mmap > > On Mon, Dec 08, 2014 at 07:02:38PM +, Ka

[dpdk-dev] [PATCH v4] VFIO: Avoid to enable vfio while the module not loaded

2014-12-10 Thread Xie, Huawei
Hi Michael: > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Qiu, Michael > Sent: Monday, December 08, 2014 8:28 AM > To: Burakov, Anatoly; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4] VFIO: Avoid to enable vfio while the module > not loaded > > On 20

[dpdk-dev] [PATCH RFC v2 00/12] lib/librte_vhost: vhost-user support

2014-12-10 Thread Xie, Huawei
This patch set is based on latest vhost. It fixes vhost-user memory map/unmap alignment issue. It uses VHOST_USER_GET_VRING_BASE as the message for vhost device stop in vhost-user. It uses VHOST_SET_VRING_KICK as the message that tells us vhost device is ready in vhost-us

[dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user support

2014-12-11 Thread Xie, Huawei
> > Only support one vhost-user port ? Do you mean vhost server by "port"? If that is the case, yes, now only one vhost server is supported for multiple virtio devices. As stated in the cover letter, we have requirement and plan for multiple server support, though I am not sure if it is absolut

[dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user support

2014-12-11 Thread Xie, Huawei
> -Original Message- > From: Xie, Huawei > Sent: Thursday, December 11, 2014 10:13 AM > To: 'Linhaifeng'; dev at dpdk.org > Cc: haifeng.lin at intel.com > Subject: RE: [dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user > support > > &

[dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user support

2014-12-17 Thread Xie, Huawei
> > +{ > > + struct virtio_net *dev = get_device(ctx); > > + > > + /* We have to stop the queue (virtio) if it is running. */ > > + if (dev->flags & VIRTIO_DEV_RUNNING) > > + notify_ops->destroy_device(dev); > > I have an one concern about finalization of vrings. > Can vhost-backen

[dpdk-dev] [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user support

2014-12-17 Thread Xie, Huawei
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Tuesday, December 16, 2014 9:22 PM > To: Xie, Huawei; dev at dpdk.org > Cc: Linhaifeng (haifeng.lin at huawei.com) > Subject: Re: [PATCH RFC v2 08/12] lib/librte_vhost: vhost-user suppor

[dpdk-dev] [PATCH RFC v2 00/12] lib/librte_vhost: vhost-user support

2014-12-17 Thread Xie, Huawei
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Sunday, December 14, 2014 10:26 PM > To: Xie, Huawei; dev at dpdk.org > Cc: haifeng.lin at intel.com > Subject: Re: [PATCH RFC v2 00/12] lib/librte_vhost: vhost-user support > &g

[dpdk-dev] [PATCH RFC v2 07/12] lib/librte_vhost: async event and callback

2014-12-17 Thread Xie, Huawei
> > I got error from checkpatch.pl like followings. > > ERROR: trailing statements should be on next line > #74: FILE: lib/librte_vhost/vhost_user/fd_man.c:61: > + for (i = 0; i < pfdset->num && pfdset->fd[i].fd != fd; i++); Thanks. This is RFC, so maybe it is far from perfection, :). > > + i

[dpdk-dev] [PATCH] vhost: add interface name to virtio-net struct

2014-12-18 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Loftus, Ciara > Sent: Thursday, December 18, 2014 10:02 AM > To: Thomas Monjalon > Cc: dev at dpdk.org; Anthony Fee > Subject: Re: [dpdk-dev] [PATCH] vhost: add interface name to virtio-net struct > > Hi Thomas,

[dpdk-dev] Issue in virtio pmd available in dpdk 1.5 -

2014-01-18 Thread Xie, Huawei
Hi: Could you give the node information for your virtio device? Is it like this: /sys/devices/pci:00/:00:08.0/uio/uio0/portio/start ? You could also debug pci_uio_map_resource, see where is broken.

[dpdk-dev] [PATCH 5/7] virtio: fix build of debug dump

2014-07-03 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Wednesday, July 02, 2014 11:03 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 5/7] virtio: fix build of debug dump > > The commit 591a9d7985c1230 (add FILE argument to debug func

[dpdk-dev] [PATCH] examples/qos_sched: fix flow pause after 2M packets

2014-07-03 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yong Liu > Sent: Thursday, July 03, 2014 5:00 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] examples/qos_sched: fix flow pause after 2M > packets > > After enable vector pmd, qos_sched only send 3

[dpdk-dev] Testing memnic for VM to VM transfer

2014-07-07 Thread xie huawei
Hi Thomas: Do we have recommendation between virtio-PMD and memnic-PMD? On Thu, Jul 3, 2014 at 8:05 PM, Thomas Monjalon wrote: > 2014-07-03 19:03, GongJinrong: >> Hi, Thomas, I cannot find the host-sim, where can I get it? > > In memnic repository: > http://dpdk.org/browse/memnic/commit

[dpdk-dev] 32 bit virtio_pmd pkt i/o issue

2014-07-09 Thread Xie, Huawei
This is due to inappropriate conversion like vq->virtio_net_hdr_mem = (void *)(uintptr_t)vq->virtio_net_hdr_mz->phys_addr; Those two types have different width on 32bit and 64 bit, which cut higher 32 bits for 32bit APP running on 64bit system. Will provide fix for this. Don?t k

[dpdk-dev] VM2VM_HARDWARE mode on i350

2014-07-12 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wei-Chun Chao > Sent: Saturday, July 12, 2014 4:48 AM > To: dev at dpdk.org > Subject: [dpdk-dev] VM2VM_HARDWARE mode on i350 > > Hi, > I was playing with vhost example to measure VM to VM throughput. With > d

[dpdk-dev] [PATCH v2] user space vhost driver library

2014-07-18 Thread Xie, Huawei
Merged two patches in previous patch set into 1. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Friday, July 18, 2014 5:56 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] user space vhost driver library > > This user space vhos

[dpdk-dev] [PATCH v2] user space vhost driver library

2014-07-24 Thread Xie, Huawei
BAUDIN [mailto:Franck.BAUDIN at qosmos.com] > Sent: Thursday, July 24, 2014 5:23 PM > To: Xie, Huawei; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v2] user space vhost driver library > > Hello, > > My understanding is that this is a helper library, but not a PMD driver. Is

[dpdk-dev] [PATCH v2] virtio: Support mergeable buffer in virtio PMD

2014-07-25 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ouyang Changchun > Sent: Friday, July 25, 2014 2:03 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] virtio: Support mergeable buffer in virtio PMD > > v2 change: > - Resolve conflicts wiht the tip co

[dpdk-dev] [PATCH v2 0/3] Support setting TX rate for queue and VF

2014-06-06 Thread Xie, Huawei
Acked-by: Huawei Xie -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ouyang Changchun Sent: Monday, May 26, 2014 3:45 PM To: dev at dpdk.org Subject: [dpdk-dev] [PATCH v2 0/3] Support setting TX rate for queue and VF This patch v2 fixes some errors and warnings re

[dpdk-dev] Issues with example/vhost with running VM

2015-05-13 Thread Xie, Huawei
Try --socket-mem or -m 2048 to limit the vhost switch's memory consumption, note that vswitch requires several GB memory due to some issue in the example, so try allocating more huges pages. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Grochowski

[dpdk-dev] [PATCH v4 1/5] vhost: eventfd_link: moving ioctl to a function

2015-05-18 Thread Xie, Huawei
On 5/7/2015 9:17 PM, Pavel Boldin wrote: On Thu, May 7, 2015 at 10:57 AM, Xie, Huawei mailto:huawei.xie at intel.com>> wrote: On 4/3/2015 1:02 AM, Pavel Boldin wrote: > Move ioctl `EVENTFD_COPY' handler code to an inline function. Pavel: There is no necessity to inline this functi

[dpdk-dev] [PATCH] virtio: Fix enqueue/dequeue can't handle chained vring descriptors.

2015-05-18 Thread Xie, Huawei
On 5/4/2015 2:27 PM, Ouyang Changchun wrote: > Vring enqueue need consider the 2 cases: > 1. Vring descriptors chained together, the first one is for virtio header, > the rest are for real data; > 2. Only one descriptor, virtio header and real data share one single > descriptor; > > So does vri

[dpdk-dev] [PATCH] virtio: Fix enqueue/dequeue can't handle chained vring descriptors.

2015-05-20 Thread Xie, Huawei
On 5/18/2015 9:23 PM, Ouyang, Changchun wrote: > Hi Huawei, > >> -Original Message----- >> From: Xie, Huawei >> Sent: Monday, May 18, 2015 5:39 PM >> To: Ouyang, Changchun; dev at dpdk.org >> Subject: Re: [dpdk-dev] [PATCH] virtio: Fix enqueue/dequeue can&#

[dpdk-dev] [PATCH] vhost: make vhost lockless enqueue configurable

2015-05-21 Thread Xie, Huawei
On 4/29/2015 7:57 PM, Thomas Monjalon wrote: > 2015-04-29 13:38 GMT+02:00 Panu Matilainen : >> On 04/29/2015 02:29 PM, Huawei Xie wrote: >>> vhost enabled vSwitch could have their own thread-safe vring enqueue >>> policy. >>> Add the RTE_LIBRTE_VHOST_LOCKLESS_ENQ macro for vhost lockless enqueue. >

[dpdk-dev] [PATCH 2/3] lib/librte_vhost: vhost library support to facilitate integration with DPDK accelerated vswitch

2014-09-03 Thread Xie, Huawei
Thanks Tetsuya: Some of them are due to 80 character limitation. Is it ok to break the limitation for better indentation? > -Original Message- > From: Tetsuya.Mukawa [mailto:mukawa at igel.co.jp] > Sent: Wednesday, September 03, 2014 11:39 AM > To: Xie, Huawei; dev

[dpdk-dev] Wrong TCP checksum of packets sent by Linux guest (virtIO/vhost)

2014-09-03 Thread Xie, Huawei
> -Original Message- > From: Gray, Mark D > Sent: Wednesday, September 03, 2014 6:01 PM > To: Thomas Monjalon; Franck BAUDIN; Xie, Huawei > Cc: dev at dpdk.org; dpdk-ovs at lists.01.org > Subject: RE: [dpdk-dev] Wrong TCP checksum of packets sent by Linux gue

[dpdk-dev] Wrong TCP checksum of packets sent by Linux guest (virtIO/vhost)

2014-09-04 Thread Xie, Huawei
> -Original Message- > From: Franck Baudin [mailto:franck.baudin at qosmos.com] > Sent: Wednesday, September 03, 2014 10:13 PM > To: Xie, Huawei; Gray, Mark D; Thomas Monjalon > Cc: dev at dpdk.org; dpdk-ovs at lists.01.org > Subject: Re: [dpdk-dev] Wrong TCP checksum

[dpdk-dev] Wrong TCP checksum of packets sent by Linux guest (virtIO/vhost)

2014-09-04 Thread Xie, Huawei
> -Original Message- > From: Franck Baudin [mailto:franck.baudin at qosmos.com] > Sent: Thursday, September 04, 2014 5:24 PM > To: Xie, Huawei; Gray, Mark D; Thomas Monjalon > Cc: dev at dpdk.org; dpdk-ovs at lists.01.org > Subject: Re: [dpdk-dev] Wrong TCP checksum

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-12 Thread Xie, Huawei
Hi all: We had generated fixes for plenty of coding style issues in the old vhost example code, and will re-generate the fixes for coding style issue once this patch is applied. This patch focuses and only focuses on refactoring vhost example to a library. Any existing issue will be fixed in se

[dpdk-dev] [RFC] lib/librte_vhost: qemu vhost-user support into DPDK vhost library

2014-09-16 Thread Xie, Huawei
Hi Haifeng: Might be in the release after 1.8. > -Original Message- > From: Linhaifeng [mailto:haifeng.lin at huawei.com] > Sent: Saturday, September 13, 2014 1:28 PM > To: Xie, Huawei; dev at dpdk.org > Subject: Re: [dpdk-dev] [RFC] lib/librte_vhost: qemu vhost-user supp

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-23 Thread Xie, Huawei
Hi Thomas: Comments to this and the vhost example patch? BR. Huawei > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Friday, September 12, 2014 6:55 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space

[dpdk-dev] [PATCH] examples/vmdq: support i40e in vmdq example

2014-09-24 Thread Xie, Huawei
This patch depends on "[dpdk-dev] [PATCH 0/6] i40e VMDQ support" > -Original Message----- > From: Xie, Huawei > Sent: Wednesday, September 24, 2014 6:54 PM > To: dev at dpdk.org > Cc: Xie, Huawei > Subject: [PATCH] examples/vmdq: support i40e in vmdq example >

[dpdk-dev] [PATCH] examples/vmdq: support i40e in vmdq example

2014-09-24 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xie, Huawei > Sent: Wednesday, September 24, 2014 6:58 PM > To: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] examples/vmdq: support i40e in vmdq example > > This patch depends on &

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-25 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, September 25, 2014 12:22 AM > To: Xie, Huawei > Cc: dev at dpdk.org; Ouyang, Changchun > Subject: Re: [dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cus

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-25 Thread Xie, Huawei
comparison of vhost example and lib, the only change is the mbuf change. Debugging the issue. > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xie, Huawei > Sent: Thursday, September 25, 2014 11:10 AM > To: Thomas Monjalon > Cc: dev at dpdk.org >

[dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: user space vhost cuse driver library

2014-09-25 Thread Xie, Huawei
I turned off CONFIG_RTE_IXGBE_INC_VEC, everything works fine. > -Original Message- > From: Xie, Huawei > Sent: Thursday, September 25, 2014 10:27 PM > To: Xie, Huawei; Thomas Monjalon > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v4 0/5] lib/librte_vhost: use

[dpdk-dev] [PATCH v5 01/11] lib/librte_vhost: move src files in vhost example to vhost lib directory

2014-09-30 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, September 30, 2014 3:42 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 01/11] lib/librte_vhost: move src files in > vhost > exampl

[dpdk-dev] [PATCH v5 05/11] lib/librte_vhost: merge Oliver's mbuf change

2014-09-30 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, September 30, 2014 3:44 AM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 05/11] lib/librte_vhost: merge Oliver's mbuf > change >

[dpdk-dev] [PATCH v5 05/11] lib/librte_vhost: merge Oliver's mbuf change

2014-09-30 Thread Xie, Huawei
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, September 30, 2014 12:46 PM > To: Xie, Huawei > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5 05/11] lib/librte_vhost: merge Oliver's mbuf > change

[dpdk-dev] [memnic PATCH v2 6/7] pmd: add branch hint in recv/xmit

2014-09-30 Thread Xie, Huawei
The patch is ok. For the commit message, is it better "to reduce branch mispredication"? > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Hiroshi Shimamoto > Sent: Tuesday, September 30, 2014 7:15 PM > To: dev at dpdk.org > Cc: Hayato Momma > Subject: [dpdk-d

[dpdk-dev] [memnic PATCH v2 6/7] pmd: add branch hint in recv/xmit

2014-09-30 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Hiroshi Shimamoto > Sent: Tuesday, September 30, 2014 7:15 PM > To: dev at dpdk.org > Cc: Hayato Momma > Subject: [dpdk-dev] [memnic PATCH v2 6/7] pmd: add branch hint in recv/xmit > > From: Hiroshi Shimamoto

[dpdk-dev] [PATCH] cast used->idx to volatile

2015-04-01 Thread Xie, Huawei
On 4/1/2015 3:51 PM, Thomas Monjalon wrote: > 2015-03-30 15:56, Xie, Huawei: >> On 3/30/2015 5:21 PM, Linhaifeng wrote: >>> On 2015/3/24 18:06, Xie, Huawei wrote: >>>> On 3/24/2015 3:44 PM, Linhaifeng wrote: >>>>> On 2015/3/24 9:53, Xie, Huawei wrote:

[dpdk-dev] packet loss in usvhost dpdk interface

2015-04-08 Thread Xie, Huawei
On 4/6/2015 6:42 PM, Srinivasreddy R wrote: > Hi, > I have observed packet loss with usvhost dpdk interfaces even at a very > small rate . > This is because virtqueue [dev->virtqueue] is found to be full, > and my application should drop the packets . Maybe your virtio guest is slow in processin

[dpdk-dev] [snabb-devel] Re: memory barriers in virtq.lua?

2015-04-08 Thread Xie, Huawei
On 4/7/2015 10:23 PM, Luke Gorrie wrote: > Hi Michael, > > I'm writing to follow up the previous discussion about memory barriers in > virtio-net device implementations, and Cc'ing the DPDK list because I > believe this is relevant to them too. > > First, thanks again for getting in touch and revie

[dpdk-dev] [snabb-devel] Re: memory barriers in virtq.lua?

2015-04-09 Thread Xie, Huawei
ion at lists.linux-foundation.org > Subject: Re: [dpdk-dev] [snabb-devel] Re: memory barriers in virtq.lua? > > Howdy, > > On 8 April 2015 at 17:15, Xie, Huawei wrote: > > > luke: > > 1. host read the flag. 2 guest toggles the flag 3.guest checks the used. > > 4.

[dpdk-dev] [PATCH] vhost: flush used->idx update before reading avail->flags

2015-04-24 Thread Xie, Huawei
> -Original Message- > From: Linhaifeng [mailto:haifeng.lin at huawei.com] > Sent: Friday, April 24, 2015 9:01 AM > To: Xie, Huawei; dev at dpdk.org > Cc: luke at snabb.co; mst at redhat.com > Subject: Re: [PATCH] vhost: flush used->idx update before reading avail- &

[dpdk-dev] data copy in vhost-user

2015-04-28 Thread Xie, Huawei
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zoltan Kiss > Sent: Tuesday, April 28, 2015 12:27 AM > To: Nikita Kalyazin; dev at dpdk.org > Subject: Re: [dpdk-dev] data copy in vhost-user > > > > On 27/04/15 12:54, Nikita Kalyazin wrote: > > Hi, > > > >

[dpdk-dev] [PATCH] vchost: Notify application of ownership change

2015-08-12 Thread Xie, Huawei
On 8/8/2015 1:21 AM, Jan Kiszka wrote: > On VHOST_*_RESET_OWNER, we reinitialize the device but without telling > the application. That will cause crashes when it continues to invoke > vhost services on the device. Fix it by calling the destruction hook if > the device is still in use. > > Signed-o

[dpdk-dev] [RFC] combining dpdk with ovs via vhost_net

2015-08-20 Thread Xie, Huawei
Hi Yanping: I don't quite get your idea. Last year I had a design and POC which enables user space virtio interface in container. Don't know if it has similarity with your proposal. Would post the idea later in the following mail. > -Original Message- > From: dev [mailto:dev-bounces at

[dpdk-dev] vhost compliant virtio based networking interface in container

2015-08-20 Thread Xie, Huawei
Added dev at dpdk.org On 8/20/2015 6:04 PM, Xie, Huawei wrote: > Yanping: > I read your mail, seems what we did are quite similar. Here i wrote a > quick mail to describe our design. Let me know if it is the same thing. > > Problem Statement: > We don't have a high

[dpdk-dev] vhost compliant virtio based networking interface in container

2015-08-25 Thread Xie, Huawei
, and compliant with dpdkvhost. Interrupt like notification isn't supported. > > On 2015/08/20 19:14, Xie, Huawei wrote: >> Added dev at dpdk.org >> >> On 8/20/2015 6:04 PM, Xie, Huawei wrote: >>> Yanping: >>> I read your mail, seems what we did ar

[dpdk-dev] [PATCH 1/4] vhost: handle VHOST_USER_SET_LOG_BASE request

2015-12-08 Thread Xie, Huawei
On 12/2/2015 11:40 AM, Yuanhan Liu wrote: [...] > + > + addr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, off); > + if (addr == MAP_FAILED) { > + RTE_LOG(ERR, VHOST_CONFIG, "mmap log base failed!\n"); > + return -1; > + } Yuanhan: mmap could fail with

[dpdk-dev] [PATCH 0/6] Add virtio support in arm/arm64

2015-12-08 Thread Xie, Huawei
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, December 07, 2015 10:12 AM > To: Santosh Shukla > Cc: dev at dpdk.org; thomas.monjalon at 6wind.com; Xie, Huawei > Subject: Re: [PATCH 0/6] Add virtio support in arm/arm64 &

[dpdk-dev] [PATCH 3/4] vhost: log vring changes

2015-12-09 Thread Xie, Huawei
On 12/2/2015 10:09 PM, Victor Kaplansky wrote: > On Wed, Dec 02, 2015 at 11:43:12AM +0800, Yuanhan Liu wrote: >> Invoking vhost_log_write() to mark corresponding page as dirty while >> updating used vring. > Looks good, thanks! > > I didn't find where you log the dirty pages in result of data > wri

[dpdk-dev] [PATCH 2/4] vhost: introduce vhost_log_write

2015-12-09 Thread Xie, Huawei
On 12/2/2015 9:53 PM, Victor Kaplansky wrote: > On Wed, Dec 02, 2015 at 11:43:11AM +0800, Yuanhan Liu wrote: >> Introduce vhost_log_write() helper function to log the dirty pages we >> touched. Page size is harded code to 4096 (VHOST_LOG_PAGE), and each >> log is presented by 1 bit. >> >> Therefore

[dpdk-dev] [PATCH 0/4 for 2.3] vhost-user live migration support

2015-12-09 Thread Xie, Huawei
On 12/2/2015 11:40 AM, Yuanhan Liu wrote: > This patch set adds the initial vhost-user live migration support. > > The major task behind that is to log pages we touched during > live migration. So, this patch is basically about adding vhost > log support, and using it. > > Patchset > > - P

[dpdk-dev] [PATCH 2/4] vhost: introduce vhost_log_write

2015-12-09 Thread Xie, Huawei
On 12/9/2015 11:41 AM, Yuanhan Liu wrote: > On Wed, Dec 09, 2015 at 03:33:16AM +0000, Xie, Huawei wrote: > ... >>>> +static inline void __attribute__((always_inline)) >>>> +vhost_log_write(struct virtio_net *dev, struct vhost_virtqueue *vq, >>>>

[dpdk-dev] [PATCH] examples/vhost: fix strict aliasing error on gcc 4.4.7

2015-12-09 Thread Xie, Huawei
On 12/8/2015 7:24 PM, De Lara Guarch, Pablo wrote: > Fixes following error on gcc 4.4.7: > > make: Entering directory `/tmp/dpdk-tmp/examples/vhost' > CC main.o > cc1: warnings being treated as errors > /tmp/dpdk-tmp/examples/vhost/main.c: In function ?new_device?: > /tmp/dpdk-tmp/x86_64-native-l

[dpdk-dev] [PATCH v2] examples/vhost: fix strict aliasing error on gcc 4.4.7

2015-12-09 Thread Xie, Huawei
On 12/9/2015 5:40 PM, De Lara Guarch, Pablo wrote: > From: "De Lara Guarch, Pablo" > > Fixes following error on gcc 4.4.7: > > make: Entering directory `/tmp/dpdk-tmp/examples/vhost' > CC main.o > cc1: warnings being treated as errors > /tmp/dpdk-tmp/examples/vhost/main.c: In function ?new_devic

[dpdk-dev] [PATCH v4] Fixes following error on gcc 4.4.7:

2015-12-09 Thread Xie, Huawei
On 12/9/2015 8:20 PM, De Lara Guarch, Pablo wrote: > make: Entering directory `/tmp/dpdk-tmp/examples/vhost' > CC main.o [...] > - rte_ring_sc_dequeue(vpool->ring, (void **)&mbuf); > + rte_ring_sc_dequeue(vpool->ring, (void *)mbuf); Here we are expecting the address of &mbuf, not mbuf, wh

[dpdk-dev] [PATCH 1/1] doc: correct Vhost Sample Application guide

2015-12-09 Thread Xie, Huawei
On 12/9/2015 8:36 PM, Iremonger, Bernard wrote: > correct sample console commands > > Fixes: d0dff9ba445e ("doc: sample application user guide" > Fixes: 9bc23cb8209c ("doc: add vhost-user to sample guide") > Fixes: 43866bf71d58 ("doc: fix vhost sample parameter") > Signed-off-by: Bernard Iremonger

[dpdk-dev] [PATCH v4] Fixes following error on gcc 4.4.7:

2015-12-09 Thread Xie, Huawei
On 12/9/2015 10:01 PM, De Lara Guarch, Pablo wrote: > >> -Original Message- >> From: Xie, Huawei >> Sent: Wednesday, December 09, 2015 1:29 PM >> To: De Lara Guarch, Pablo; dev at dpdk.org >> Cc: yuanhan.liu at linux.intel.com >> Subject: Re: [PATCH

[dpdk-dev] [PATCH v5] examples/vhost: fix strict aliasing error on gcc 4.4.7

2015-12-09 Thread Xie, Huawei
On 12/9/2015 10:27 PM, De Lara Guarch, Pablo wrote: > From: "De Lara Guarch, Pablo" > > Fixes following error on gcc 4.4.7: > > make: Entering directory `/tmp/dpdk-tmp/examples/vhost' > CC main.o > cc1: warnings being treated as errors > /tmp/dpdk-tmp/examples/vhost/main.c: In function ?new_devi

  1   2   3   4   5   6   >