Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-05 Thread Tan, Jianfeng
Hi Benjamin, On 1/5/2017 5:34 AM, Walker, Benjamin wrote: On Wed, 2017-01-04 at 19:39 +0800, Tan, Jianfeng wrote: Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: DPDK today begins by allocating all of the required hugepages, then finds all of the physical addresses for those

Re: [dpdk-dev] [RFC] igb_uio: deprecate iomem and ioport mapping

2017-01-05 Thread Tan, Jianfeng
Hi, > -Original Message- > From: Yigit, Ferruh > Sent: Thursday, January 5, 2017 11:24 PM > To: Tan, Jianfeng; Stephen Hemminger > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [RFC] igb_uio: deprecate iomem and ioport mapping > > On 12/5/2016 7:04

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-09 Thread Tan, Jianfeng
Hi Jason, On 1/9/2017 12:39 PM, Jason Wang wrote: On 2016年12月23日 15:14, Jianfeng Tan wrote: This patch add support vhost kernel as the backend for virtio_user. Three main hook functions are added: - vhost_kernel_setup() to open char device, each vq pair needs one vhostfd; - vhost_

Re: [dpdk-dev] [PATCH v3 0/7] virtio_user as an alternative exception path

2017-01-10 Thread Tan, Jianfeng
On 1/9/2017 10:06 PM, Bruce Richardson wrote: On Wed, Jan 04, 2017 at 03:59:19AM +, Jianfeng Tan wrote: v3: - Drop the patch to postpone driver ok sending patch, superseded it with a bug fix to disable all virtqueues and re-init the device. (you might wonder why not just send

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-10 Thread Tan, Jianfeng
On 1/10/2017 4:46 PM, Thomas Monjalon wrote: 2017-01-10 14:11, Tan, Jianfeng: On 1/9/2017 12:39 PM, Jason Wang wrote: On 2016年12月23日 15:14, Jianfeng Tan wrote: [...] +/* TUNSETIFF ifr flags */ +#define IFF_TAP 0x0002 +#define IFF_NO_PI0x1000 +#define IFF_ONE_QUEUE

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-10 Thread Tan, Jianfeng
Hi Jason, On 1/9/2017 12:39 PM, Jason Wang wrote: +if (!enable) { +if (dev->tapfds[pair_idx]) { +close(dev->tapfds[pair_idx]); +dev->tapfds[pair_idx] = -1; +} +return vhost_kernel_set_backend(vhostfd, -1); If this is used to for thing like e

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-10 Thread Tan, Jianfeng
On 1/11/2017 10:42 AM, Jason Wang wrote: On 2017年01月10日 14:11, Tan, Jianfeng wrote: Hi Jason, On 1/9/2017 12:39 PM, Jason Wang wrote: On 2016年12月23日 15:14, Jianfeng Tan wrote: This patch add support vhost kernel as the backend for virtio_user. Three main hook functions are added

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-12 Thread Tan, Jianfeng
Hi Jason, Ok, just want to show its advantages. It can be added on top. And two more suggestions: - better to split tap support out of vhost file Good suggestion! Will do that in next version. - kernel support more than 8 queues on recent kernel, so there's no need to limit it to 8. When ru

Re: [dpdk-dev] [dpdk-users] IGB_UIO: PCI Resources Management

2017-01-12 Thread Tan, Jianfeng
> -Original Message- > From: users [mailto:users-boun...@dpdk.org] On Behalf Of Ferruh Yigit > Sent: Thursday, January 12, 2017 8:22 PM > To: Alejandro Lucero > Cc: Gregory Etelson; dev; us...@dpdk.org > Subject: Re: [dpdk-users] [dpdk-dev] IGB_UIO: PCI Resources Management > > On 1/12/2

Re: [dpdk-dev] [dpdk-users] IGB_UIO: PCI Resources Management

2017-01-12 Thread Tan, Jianfeng
> -Original Message- > From: Yigit, Ferruh > Sent: Friday, January 13, 2017 10:05 AM > To: Tan, Jianfeng; Alejandro Lucero > Cc: Gregory Etelson; dev; us...@dpdk.org > Subject: Re: [dpdk-users] [dpdk-dev] IGB_UIO: PCI Resources Management > > On 1/13/2017 1:51

Re: [dpdk-dev] [PATCH v5 02/20] eal: Allow passing const rte_intr_handle

2017-01-16 Thread Tan, Jianfeng
Hi Jan, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jan Blunck > Sent: Friday, December 23, 2016 11:58 PM > To: dev@dpdk.org > Cc: shreyansh.j...@nxp.com; david.march...@6wind.com; > step...@networkplumber.org > Subject: [dpdk-dev] [PATCH v5 02/20] eal: Allo

Re: [dpdk-dev] [PATCH v3 09/10] examples/l3fwd-power: add parse-ptype option

2017-01-16 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Tuesday, January 17, 2017 1:16 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org; Yao, Lei A > Subject: Re: [PATCH v3 09/10] examples/l3fwd-power: add parse-ptyp

Re: [dpdk-dev] net/virtio: build is broken on FreeBSD

2017-01-17 Thread Tan, Jianfeng
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Wednesday, January 18, 2017 6:10 AM > To: Andrew Rybchenko; Yuanhan Liu; Tan, Jianfeng > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] net/virtio: build is broken on FreeBSD > >

Re: [dpdk-dev] [PATCH] app/testpmd: refine xstats show

2017-01-17 Thread Tan, Jianfeng
Hi Pablo, > -Original Message- > From: De Lara Guarch, Pablo > Sent: Wednesday, January 18, 2017 12:04 AM > To: Tan, Jianfeng; dev@dpdk.org > Cc: Wu, Jingjing; Tan, Jianfeng > Subject: RE: [dpdk-dev] [PATCH] app/testpmd: refine xstats show > > Hi Jianfeng, >

Re: [dpdk-dev] [PATCH] app/testpmd: refine xstats show

2017-01-18 Thread Tan, Jianfeng
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Wednesday, January 18, 2017 5:03 PM > To: Tan, Jianfeng; dev@dpdk.org > Cc: Wu, Jingjing > Subject: RE: [dpdk-dev] [PATCH] app/testpmd: refine xstats show > > Hi Jianfeng, > > > -Or

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name

2017-01-18 Thread Tan, Jianfeng
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Wednesday, January 18, 2017 7:53 PM > To: Tan, Jianfeng; dev@dpdk.org > Cc: Liu, Yuanhan; sta...@dpdk.org > Subject: Re: [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name > > On 1/18/201

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name

2017-01-18 Thread Tan, Jianfeng
Hi Ferruh, > -Original Message- > From: Yigit, Ferruh > Sent: Wednesday, January 18, 2017 11:55 PM > To: Tan, Jianfeng; dev@dpdk.org > Cc: Liu, Yuanhan; sta...@dpdk.org > Subject: Re: [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name > > On 1/18/201

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name

2017-01-19 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Thursday, January 19, 2017 4:16 PM > To: Tan, Jianfeng > Cc: Yigit, Ferruh; dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-stable] [PATCH] net/virtio-user: fix missing driver nam

Re: [dpdk-dev] [dpdk-users] IGB_UIO: PCI Resources Management

2017-01-19 Thread Tan, Jianfeng
On 1/19/2017 11:59 PM, Ferruh Yigit wrote: On 1/13/2017 5:33 AM, Tan, Jianfeng wrote: -Original Message- From: Yigit, Ferruh Sent: Friday, January 13, 2017 10:05 AM To: Tan, Jianfeng; Alejandro Lucero Cc: Gregory Etelson; dev; us...@dpdk.org Subject: Re: [dpdk-users] [dpdk-dev

Re: [dpdk-dev] [PATCH v4 8/8] doc: add guide to use virtio_user as exceptional path

2017-01-21 Thread Tan, Jianfeng
On 1/22/2017 8:46 AM, Aws Ismail wrote: On Jan 13, 2017 9:42 AM, "Jianfeng Tan" > wrote: Signed-off-by: Jianfeng Tan mailto:jianfeng@intel.com>> --- .../img/virtio_user_as_excpetional_path.png| Bin 0 -> 38600 bytes doc/guides/

Re: [dpdk-dev] [PATCH 3/3] doc: remove ABI changes in igb_uio

2017-01-31 Thread Tan, Jianfeng
On 1/31/2017 1:52 AM, Thomas Monjalon wrote: 2017-01-24 13:35, Ferruh Yigit: On 1/24/2017 7:34 AM, Jianfeng Tan wrote: We announced ABI changes to remove iomem and ioport mapping in igb_uio. But it has potential backward compatibility issue: cannot run old version DPDK on modified igb_uio. T

[dpdk-dev] vhost user MTU and promisc mode

2017-02-05 Thread Tan, Jianfeng
Hi Maxime, Have seen that you submit a feature in QEMU, commit c5f048d8fb69 ("vhost-user: Add MTU protocol feature and op"). Appreciate your insights on: (1) Do you have plan to enable it in DPDK vhost user? (2) How about another similar feature, promisc mode enable/disable? Thanks, Jianfeng

Re: [dpdk-dev] vhost user MTU and promisc mode

2017-02-07 Thread Tan, Jianfeng
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Monday, February 6, 2017 6:20 PM > To: Tan, Jianfeng > Cc: m...@redhat.com; Liu, Yuanhan; dev@dpdk.org > Subject: Re: vhost user MTU and promisc mode > > Hi Jianfeng, >

Re: [dpdk-dev] vhost user MTU and promisc mode

2017-02-08 Thread Tan, Jianfeng
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, February 8, 2017 12:33 AM > To: Tan, Jianfeng > Cc: Maxime Coquelin; Liu, Yuanhan; dev@dpdk.org > Subject: Re: vhost user MTU and promisc mode > > On Tue, Feb 07, 2017

Re: [dpdk-dev] [PATCH v3 1/3] examples/ip_reassembly: add parse-ptype option

2017-02-10 Thread Tan, Jianfeng
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Friday, February 10, 2017 4:36 PM > To: Liu, Yong > Cc: Tan, Jianfeng; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 1/3] examples/ip_reassembly: add parse- > ptype o

[dpdk-dev] [PATCH v2] eal: restrict cores detection

2016-09-01 Thread Tan, Jianfeng
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Wednesday, August 31, 2016 11:31 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; david.marchand at 6wind.com; pmatilai at redhat.com; > thomas.monjalon at 6wind.com &g

Re: [dpdk-dev] [RFC] igb_uio: deprecate iomem and ioport mapping

2016-12-04 Thread Tan, Jianfeng
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Saturday, December 3, 2016 7:47 AM > To: Tan, Jianfeng > Cc: dev@dpdk.org; david.march...@6wind.com; Yigit, Ferruh > Subject: Re: [RFC] igb_uio: deprecate iomem

Re: [dpdk-dev] [PATCH 5/5] examples/l3fwd: add parse-ptype option

2016-12-07 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Thursday, December 8, 2016 2:59 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH 5/5] examples/l3fwd: add parse-ptype option > > On Su

Re: [dpdk-dev] [PATCH v2 2/7] net/virtio_user: postpone DRIVER OK notification

2016-12-25 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, December 26, 2016 2:27 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Yigit, Ferruh; Liang, Cunming > Subject: Re: [PATCH v2 2/7] net/virtio_user: postpone DRIVER OK notification &

Re: [dpdk-dev] [PATCH v2 3/7] net/virtio_user: move vhost user specific code

2016-12-25 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, December 26, 2016 2:28 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Yigit, Ferruh; Liang, Cunming > Subject: Re: [PATCH v2 3/7] net/virtio_user: move vhost user specific code &

Re: [dpdk-dev] [PATCH v2 2/7] net/virtio_user: postpone DRIVER OK notification

2016-12-26 Thread Tan, Jianfeng
As discussed offline, this will lead to many DRIVER OK among dev_stop()/dev_start(). I'll remove this patch. Thanks, Jianfeng > -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, December 26, 2016 4:02 PM > To: Tan, Jianfeng &

Re: [dpdk-dev] [PATCH v2 0/9] rxq interrupt mode for virtio PMD

2016-12-28 Thread Tan, Jianfeng
Forget to mention a key part, when we bind virtio to vfio-pci driver in the VM, we need to insert vfio kernel module like this: $ modprobe vfio enable_unsafe_noiommu_mode=1 $ modprobe vfio-pci Thanks, Jianfeng > -Original Message- > From: Tan, Jianfeng > Sent: Thursday, De

Re: [dpdk-dev] [PATCH v2 3/7] net/virtio_user: move vhost user specific code

2016-12-29 Thread Tan, Jianfeng
Hi Yuanhan, On 12/26/2016 3:57 PM, Yuanhan Liu wrote: On Mon, Dec 26, 2016 at 06:58:58AM +, Tan, Jianfeng wrote: -Original Message- From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] Sent: Monday, December 26, 2016 2:28 PM To: Tan, Jianfeng Cc: dev@dpdk.org; Yigit, Ferruh

Re: [dpdk-dev] [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device

2016-12-29 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, December 30, 2016 2:45 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close > de

Re: [dpdk-dev] [PATCH v2 8/9] examples/l3fwd: add parse-ptype option

2016-12-29 Thread Tan, Jianfeng
Hi, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, December 30, 2016 2:40 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 8/9] examples/l3fwd: add parse-ptype option > >

Re: [dpdk-dev] [PATCH v3 3/7] net/virtio_user: move vhost user specific code

2017-01-03 Thread Tan, Jianfeng
Hi Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Wednesday, January 4, 2017 2:03 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Yigit, Ferruh; Liang, Cunming > Subject: Re: [PATCH v3 3/7] net/virtio_user: move vhost user spe

Re: [dpdk-dev] [PATCH v2 5/9] net/virtio: setup rxq interrupts

2017-01-03 Thread Tan, Jianfeng
On 12/30/2016 2:27 PM, Yuanhan Liu wrote: On Thu, Dec 29, 2016 at 07:30:39AM +, Jianfeng Tan wrote: This patch mainly allocates structure to store queue/irq mapping, and configure queue/irq mapping down through PCI ops. It also creates eventfds for each Rx queue and tell the kernel about t

Re: [dpdk-dev] [PATCH v2 5/7] net/virtio_user: add vhost kernel support

2017-01-03 Thread Tan, Jianfeng
Sorry, I forget to reply this comment. On 12/26/2016 3:44 PM, Yuanhan Liu wrote: [...] + + /* Does not work when VIRTIO_F_IOMMU_PLATFORM now, why? */ Because this feature need the vhost IOTLB support from the device emulation. Patches for QEMU hasn't been merged yet, but it has been the

Re: [dpdk-dev] [PATCH v2 5/9] net/virtio: setup rxq interrupts

2017-01-03 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Wednesday, January 4, 2017 3:23 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; step...@networkplumber.org > Subject: Re: [PATCH v2 5/9] net/virtio: setup rxq interrupts > > On We

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-04 Thread Tan, Jianfeng
Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: Hi all, I've been digging in to what it would take to run DPDK as an unprivileged user and I have some findings that I thought were worthy of discussion. The assumptions here are that I'm using a very recent Linux kernel (4.8.15 to be

Re: [dpdk-dev] Running DPDK as an unprivileged user

2017-01-05 Thread Tan, Jianfeng
Hi, On 1/5/2017 6:16 PM, Sergio Gonzalez Monroy wrote: On 05/01/2017 10:09, Sergio Gonzalez Monroy wrote: On 04/01/2017 21:34, Walker, Benjamin wrote: On Wed, 2017-01-04 at 19:39 +0800, Tan, Jianfeng wrote: Hi Benjamin, On 12/30/2016 4:41 AM, Walker, Benjamin wrote: DPDK today begins by

Re: [dpdk-dev] [PATCH v10 2/3] lib/gro: add TCP/IPv4 GRO support

2017-07-02 Thread Tan, Jianfeng
On 7/1/2017 7:08 PM, Jiayu Hu wrote: In this patch, we introduce five APIs to support TCP/IPv4 GRO. - gro_tcp4_tbl_create: create a TCP/IPv4 reassembly table, which is used to merge packets. - gro_tcp4_tbl_destroy: free memory space of a TCP/IPv4 reassembly table. - gro_tcp4_tbl_timeout_fl

Re: [dpdk-dev] [PATCH v10 1/3] lib: add Generic Receive Offload API framework

2017-07-02 Thread Tan, Jianfeng
On 7/1/2017 7:08 PM, Jiayu Hu wrote: Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. This patchset is to support GRO in DPDK. To support GRO, this patch imp

Re: [dpdk-dev] [PATCH] eal: fix secondary process segfault on multipe virtio devices

2017-07-03 Thread Tan, Jianfeng
HI Thomas, > -Original Message- > From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Saturday, July 1, 2017 10:10 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; yuanhan@linux.intel.com; > maxime.coque...@redhat.com > Subject: Re: [dpdk-dev] [PATCH] eal:

Re: [dpdk-dev] [PATCH v11 2/3] lib/gro: add TCP/IPv4 GRO support

2017-07-06 Thread Tan, Jianfeng
On 7/5/2017 12:08 PM, Jiayu Hu wrote: In this patch, we introduce five APIs to support TCP/IPv4 GRO. - gro_tcp4_tbl_create: create a TCP/IPv4 reassembly table, which is used to merge packets. - gro_tcp4_tbl_destroy: free memory space of a TCP/IPv4 reassembly table. - gro_tcp4_tbl_timeout_f

Re: [dpdk-dev] [PATCH v11 1/3] lib: add Generic Receive Offload API framework

2017-07-06 Thread Tan, Jianfeng
On 7/5/2017 12:08 PM, Jiayu Hu wrote: Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. This patchset is to support GRO in DPDK. To support GRO, this patch im

Re: [dpdk-dev] [PATCH v11 1/3] lib: add Generic Receive Offload API framework

2017-07-07 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tan, Jianfeng > Sent: Friday, July 7, 2017 2:56 PM > To: Hu, Jiayu; dev@dpdk.org > Cc: Ananyev, Konstantin; y...@fridaylinux.org; > step...@networkplumber.org; Wu, Jingjing; Yao, Lei A > S

Re: [dpdk-dev] [PATCH v12 1/3] lib: add Generic Receive Offload API framework

2017-07-08 Thread Tan, Jianfeng
Hi Jiayu, On 7/7/2017 6:39 PM, Jiayu Hu wrote: Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. This patchset is to support GRO in DPDK. To support GRO, this

Re: [dpdk-dev] [PATCH v12 2/3] lib/gro: add TCP/IPv4 GRO support

2017-07-08 Thread Tan, Jianfeng
On 7/7/2017 6:39 PM, Jiayu Hu wrote: In this patch, we introduce five APIs to support TCP/IPv4 GRO. - gro_tcp4_reassemble: reassemble an inputted TCP/IPv4 packet. - gro_tcp4_tbl_create: create a TCP/IPv4 reassembly table, which is used to merge packets. - gro_tcp4_tbl_destroy: free memory

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-09 Thread Tan, Jianfeng
Hi Thotton, > -Original Message- > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > Sent: Friday, July 7, 2017 7:14 PM > To: dev@dpdk.org > Cc: Yigit, Ferruh; Gregory Etelson; Thomas Monjalon; Stephen Hemminger; > Tan, Jianfeng; Lu, Wenzhuo > Subjec

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-10 Thread Tan, Jianfeng
> -Original Message- > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > Sent: Monday, July 10, 2017 3:11 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Yigit, Ferruh; Gregory Etelson; Thomas Monjalon; > Stephen Hemminger; Lu, Wenzhuo > Subject: R

Re: [dpdk-dev] [RFC] pci: force address of mappings in secondary process

2017-07-10 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Tuesday, July 11, 2017 9:13 AM > To: dev@dpdk.org > Cc: Stephen Hemminger > Subject: [dpdk-dev] [RFC] pci: force address of mappings in secondary > process > > The PCI memory resources

Re: [dpdk-dev] [RFC] pci: force address of mappings in secondary process

2017-07-11 Thread Tan, Jianfeng
> -Original Message- > From: Gonzalez Monroy, Sergio > Sent: Tuesday, July 11, 2017 7:36 PM > To: Tan, Jianfeng; Stephen Hemminger; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC] pci: force address of mappings in secondary > process > > On 11/07/2017 02

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-11 Thread Tan, Jianfeng
> -Original Message- > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > Sent: Monday, July 10, 2017 6:43 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Yigit, Ferruh; Gregory Etelson; Thomas Monjalon; > Stephen Hemminger; Lu, Wenzhuo > Subject: R

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-11 Thread Tan, Jianfeng
> -Original Message- > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > Sent: Friday, July 7, 2017 7:14 PM > To: dev@dpdk.org > Cc: Yigit, Ferruh; Gregory Etelson; Thomas Monjalon; Stephen Hemminger; > Tan, Jianfeng; Lu, Wenzhuo > Subject: [PATCH v

Re: [dpdk-dev] [RFC] pci: force address of mappings in secondary process

2017-07-12 Thread Tan, Jianfeng
> -Original Message- > From: Gonzalez Monroy, Sergio > Sent: Wednesday, July 12, 2017 3:32 PM > To: Tan, Jianfeng; Stephen Hemminger; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC] pci: force address of mappings in secondary > process > > On 12/07/2017 03

Re: [dpdk-dev] [PATCH] net/virtio: fix fail to configure rxq interrupt

2017-07-19 Thread Tan, Jianfeng
On 7/19/2017 4:08 AM, Yuanhan Liu wrote: On Wed, Jul 19, 2017 at 11:18:23AM +0800, Jiayu Hu wrote: When use rte_eth_dev_configure() to enable rx queue interrupt for virtio devices, virtio_configure_intr() isn't called to set up the interrupt environment, which causes rx queue interrupt setup f

Re: [dpdk-dev] [PATCH] doc: deprecate Xen dom0 support

2017-08-03 Thread Tan, Jianfeng
Hi Thomas, On 8/3/2017 7:49 AM, Thomas Monjalon wrote: Following the calls on the mailing list: http://dpdk.org/ml/archives/dev/2017-June/068151.html The Technical Board decided to drop Xen dom0 support from EAL: http://dpdk.org/ml/archives/dev/2017-June/068615.html As dom0 is

Re: [dpdk-dev] [PATCH] doc: announce API and ABI change for ethdev

2017-08-03 Thread Tan, Jianfeng
On 7/12/2017 12:58 AM, Zhiyong Yang wrote: This is an API/ABI change notice for DPDK 17.11 on redefinition of A nit: we usually don't indent at the commit message paragraph. port_id. port_id is defined as uint8_t by now, which is just ranged from 0 to 255. For more and more scenerioes, m

Re: [dpdk-dev] [PATCH 4/5] net/virtio-user: add lsc support with vhost-user adapter

2017-03-26 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, March 17, 2017 4:29 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [PATCH 4/5] net/virtio-user: add lsc support with vhost-user > adapte

Re: [dpdk-dev] [PATCH 3/5] net/virtio-user: support to report net status

2017-03-27 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, March 17, 2017 2:55 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [PATCH 3/5] net/virtio-user: support to report net status > > On

Re: [dpdk-dev] [PATCH 2/5] net/virtio-user: add rxq interrupt mode support

2017-03-27 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Friday, March 17, 2017 2:48 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; david.march...@6wind.com > Subject: Re: [PATCH 2/5] net/virtio-user: add rxq interrupt mode support > > On

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

2017-03-27 Thread Tan, Jianfeng
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 with vhost-kernel as backend. Signed-off-by: Wenfeng Liu --- drivers/net/virtio/virtio_user/virtio_user_dev.c | 12 -

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

2017-03-27 Thread Tan, Jianfeng
On 3/28/2017 11:02 AM, Wenfeng Liu wrote: 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 devi

Re: [dpdk-dev] [PATCH v2 2/5] net/virtio: add interrupt configure for vdev

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 2:27 PM, Yuanhan Liu wrote: On Tue, Mar 28, 2017 at 08:21:53AM +, Jianfeng Tan wrote: For virtio PCI devices, interrupt should be configured before setting VIRTIO_CONFIG_STATUS_DRIVER_OK so that QEMU can properly set eventfds in the host. For virtio virtual devices, VIRTIO_CO

Re: [dpdk-dev] [PATCH 3/5] net/virtio-user: support to report net status

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 2:33 PM, Yuanhan Liu wrote: On Mon, Mar 27, 2017 at 07:46:32AM +, Tan, Jianfeng wrote: diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net/virtio/virtio_user/virtio_user_dev.c index 9777d6b..cc6f557 100644 --- a/drivers/net/virtio/virtio_user

Re: [dpdk-dev] [PATCH v2 2/5] net/virtio: add interrupt configure for vdev

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 3:09 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:03:16PM +0800, Tan, Jianfeng wrote: On 3/29/2017 2:27 PM, Yuanhan Liu wrote: On Tue, Mar 28, 2017 at 08:21:53AM +, Jianfeng Tan wrote: For virtio PCI devices, interrupt should be configured before setting

Re: [dpdk-dev] [PATCH 3/5] net/virtio-user: support to report net status

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 3:14 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:07:28PM +0800, Tan, Jianfeng wrote: On 3/29/2017 2:33 PM, Yuanhan Liu wrote: On Mon, Mar 27, 2017 at 07:46:32AM +, Tan, Jianfeng wrote: diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c b/drivers/net

Re: [dpdk-dev] [PATCH 3/5] net/virtio-user: support to report net status

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 4:00 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:48:04PM +0800, Tan, Jianfeng wrote: On 3/29/2017 3:14 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:07:28PM +0800, Tan, Jianfeng wrote: On 3/29/2017 2:33 PM, Yuanhan Liu wrote: On Mon, Mar 27, 2017 at 07:46:32AM +

Re: [dpdk-dev] [PATCH 3/5] net/virtio-user: support to report net status

2017-03-29 Thread Tan, Jianfeng
On 3/29/2017 4:36 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 04:33:20PM +0800, Tan, Jianfeng wrote: On 3/29/2017 4:00 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:48:04PM +0800, Tan, Jianfeng wrote: On 3/29/2017 3:14 PM, Yuanhan Liu wrote: On Wed, Mar 29, 2017 at 03:07:28PM +0800

Re: [dpdk-dev] [PATCH v2 3/3] doc: postpone ABI changes in igb_uio

2017-02-10 Thread Tan, Jianfeng
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] > Sent: Friday, February 10, 2017 6:44 PM > To: Tan, Jianfeng > Cc: Yigit, Ferruh; dev@dpdk.org; Mcnamara, John; > yuanhan@linux.intel.com; step...@networkplumber.org > Subject: Re: [

Re: [dpdk-dev] [PATCH] mem: balanced allocation of hugepages

2017-02-16 Thread Tan, Jianfeng
Hi, > -Original Message- > From: Ilya Maximets [mailto:i.maxim...@samsung.com] > Sent: Thursday, February 16, 2017 9:01 PM > To: dev@dpdk.org; David Marchand; Gonzalez Monroy, Sergio > Cc: Heetae Ahn; Yuanhan Liu; Tan, Jianfeng; Neil Horman; Pei, Yulong; Ilya > Maximet

[dpdk-dev] [PATCH 1/2] examples/tep_term: Fix l4_len issue

2016-10-24 Thread Tan, Jianfeng
> -Original Message- > From: Michael Qiu [mailto:qdy220091330 at gmail.com] > Sent: Tuesday, October 18, 2016 1:49 PM > To: dev at dpdk.org > Cc: Tan, Jianfeng; Michael Qiu > Subject: [PATCH 1/2] examples/tep_term: Fix l4_len issue > > l4_len is not fixed, althro

[dpdk-dev] [PATCH 2/2] examples/tep_term: Fix packet len for multi-seg mbuf

2016-10-24 Thread Tan, Jianfeng
> -Original Message- > From: Michael Qiu [mailto:qdy220091330 at gmail.com] > Sent: Tuesday, October 18, 2016 1:49 PM > To: dev at dpdk.org > Cc: Tan, Jianfeng; Michael Qiu > Subject: [PATCH 2/2] examples/tep_term: Fix packet len for multi-seg mbuf > >

[dpdk-dev] virtio kills qemu VM after stopping/starting ports

2016-09-02 Thread Tan, Jianfeng
Hi Kyle, On 9/2/2016 4:53 AM, Kyle Larose wrote: > Hello everyone, > > In my own testing, I recently stumbled across an issue where I could get qemu > to exit when sending traffic to my application. To do this, I simply needed > to do the following: > > 1) Start my virtio interfaces > 2) Send s

[dpdk-dev] virtio kills qemu VM after stopping/starting ports

2016-09-02 Thread Tan, Jianfeng
Hi Kyle, On 9/2/2016 8:35 PM, Kyle Larose wrote: > >> -Original Message- >> From: Tan, Jianfeng [mailto:jianfeng.tan at intel.com] >> Sent: Friday, September 02, 2016 2:56 AM >> To: Kyle Larose; dev at dpdk.org >> Cc: huawei.xie at intel.com; yuanhan.liu

[dpdk-dev] [RFC] igb_uio: deprecate iomem and ioport mapping

2016-09-02 Thread Tan, Jianfeng
On 9/2/2016 8:31 PM, Ferruh Yigit wrote: > On 9/1/2016 3:16 AM, Jianfeng Tan wrote: >> Previously in igb_uio, iomem is mapped, and both ioport and io mem >> are recorded into uio framework, which is duplicated and makes the >> code too complex. >> >> For iomem, DPDK user space code never opens or

[dpdk-dev] virtio kills qemu VM after stopping/starting ports

2016-09-05 Thread Tan, Jianfeng
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tan, Jianfeng > Sent: Friday, September 2, 2016 8:54 PM > To: Kyle Larose; dev at dpdk.org > Cc: Xie, Huawei; yuanhan.liu at linux.intel.com > Subject: Re: [dpdk-dev] virtio kills qemu

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-09-06 Thread Tan, Jianfeng
Hi Yuanhan, On 9/6/2016 2:42 PM, Yuanhan Liu wrote: > On Fri, Aug 05, 2016 at 11:36:42AM +, Jianfeng Tan wrote: >> When virtio_user is used with VPP's native vhost user, it cannot >> send/receive any packets. >> >> The root cause is that vpp-vhost-user translates the message >> VHOST_USER_SET

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-09-08 Thread Tan, Jianfeng
On 9/6/2016 4:20 PM, Yuanhan Liu wrote: > On Tue, Sep 06, 2016 at 03:54:30PM +0800, Tan, Jianfeng wrote: >> Hi Yuanhan, >> >> >> On 9/6/2016 2:42 PM, Yuanhan Liu wrote: >>> On Fri, Aug 05, 2016 at 11:36:42AM +, Jianfeng Tan wrote: >>>> When

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-09-09 Thread Tan, Jianfeng
On 9/8/2016 8:18 PM, Yuanhan Liu wrote: > On Thu, Sep 08, 2016 at 04:53:22PM +0800, Tan, Jianfeng wrote: >> >> On 9/6/2016 4:20 PM, Yuanhan Liu wrote: >>> On Tue, Sep 06, 2016 at 03:54:30PM +0800, Tan, Jianfeng wrote: >>>> Hi Yuanhan, >>>>

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-09-09 Thread Tan, Jianfeng
On 9/9/2016 12:19 PM, Yuanhan Liu wrote: >> >> >> Never mind, above fix on the vhost side will not take effect on >> existing >> vpp-vhost implementations. >> >> Actually, I was talking about the DPDK vhost implementation :) >> >> >> This patch is talking about vpp's native

[dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages

2016-09-09 Thread Tan, Jianfeng
On 9/9/2016 2:03 PM, Yuanhan Liu wrote: >> GET_PROTOCOL_FEATURES >> is not supported yet. I see those features in PROTOCOL_FEATURES is for live >> migration (right?). > Not exactly. PROTOCOL_FEATURES was firstly introduced while MQ was > enabled. Thus it's no wonder MQ is the first protocol featu

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-09 Thread Tan, Jianfeng
Hi Pankaj, Thanks for the massive and great work. On 9/5/2016 6:54 PM, Pankaj Chauhan wrote: > Introduce support for a generic framework for handling of switching between > physical and vhost devices. The vswitch framework introduces the following > concept: > > 1. vswitch_dev: Vswitch device is

[dpdk-dev] [RFC] igb_uio: deprecate iomem and ioport mapping

2016-09-09 Thread Tan, Jianfeng
Hi David, Thank you for reviewing this. On 9/9/2016 5:06 PM, David Marchand wrote: > Hello Jianfeng, > > On Thu, Sep 1, 2016 at 4:16 AM, Jianfeng Tan > wrote: >> Previously in igb_uio, iomem is mapped, and both ioport and io mem >> are recorded into uio framework, which is duplicated and makes

[dpdk-dev] [PATCH 1/2] examples/tep_term: fix offload on VXLAN failure

2016-09-12 Thread Tan, Jianfeng
Hi Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Sunday, September 11, 2016 8:09 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Ananyev, Konstantin; Wu, Jingjing; Kavanagh, Mark B; > Thomas Monjalon > Subject: Re:

[dpdk-dev] [PATCH 1/2] examples/tep_term: fix offload on VXLAN failure

2016-09-13 Thread Tan, Jianfeng
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Monday, September 12, 2016 5:36 PM > To: Tan, Jianfeng; Yuanhan Liu > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/2] examples/tep_term: fix offload on > VX

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-13 Thread Tan, Jianfeng
Hi Pankaj, On 9/12/2016 6:55 PM, Pankaj Chauhan wrote: > On 9/9/2016 2:26 PM, Tan, Jianfeng wrote: >> Hi Pankaj, >> >> Thanks for the massive and great work. > > Hi Jianfeng, > > Thanks for the review. >> >> On 9/5/2016 6:54 PM, Pankaj Chauhan wrote:

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-19 Thread Tan, Jianfeng
Hi Pankaj, >> Can we hide queues inside struct vswitch_port? I mean: >> For VMDQ switch, treat (port_id, queue_id) as a vswitch_port, so far >> you've already stored "struct vhost_dev *" into vswitch_port.priv when >> it's a virtual port, how about store queue_id into vswitch_port.priv >> when it'

[dpdk-dev] [PATCH v4 3/3] app/testpmd: fix Tx offload on tunneling packet

2016-09-21 Thread Tan, Jianfeng
Hi Konstantin, On 9/19/2016 8:09 PM, Ananyev, Konstantin wrote: > Hi Jainfeng, > >> -Original Message----- >> From: Tan, Jianfeng >> Sent: Monday, August 1, 2016 4:57 AM >> To: dev at dpdk.org >> Cc: thomas.monjalon at 6wind.com; De Lara Guarch, Pab

[dpdk-dev] [PATCH v4 3/3] app/testpmd: fix Tx offload on tunneling packet

2016-09-22 Thread Tan, Jianfeng
Hi Konstantin, On 9/21/2016 11:47 PM, Ananyev, Konstantin wrote: > Hi Jianfeng, > >> Hi Konstantin, >> >> >> On 9/19/2016 8:09 PM, Ananyev, Konstantin wrote: >>> Hi Jainfeng, >>> >>>> -Original Message- >>>> From:

[dpdk-dev] [PATCH] eal: remove single file segments related code

2016-09-23 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Friday, September 23, 2016 5:15 PM > To: Thomas Monjalon > Cc: dev at dpdk.org; David Marchand; Tan, Jianfeng > Subject: Re: [PATCH] eal: remove single file segments related code &

[dpdk-dev] [PATCH v4 0/3] Add TSO on tunneling packet

2016-09-28 Thread Tan, Jianfeng
Hi Konstantin, On 9/28/2016 1:29 AM, Ananyev, Konstantin wrote: > [...] > Acked-by: Konstantin Ananyev > I think you need to rebase your first one: mbuf: add Tx side tunneling type > against the mainline. The first one can be applied by 3-way merge, git am -k -3, so I did not rebase the first

Re: [dpdk-dev] [RFC PATCH] igb_uio: issue FLR during open and release of device file

2017-06-04 Thread Tan, Jianfeng
sue FLR by PMD's during init and close. > > Cc: Jianfeng Tan > > Jianfeng also implemented following patch: > http://dpdk.org/dev/patchwork/patch/17495/ > > Which also implements release and open ops, for slightly different > reason (prevent DMA access after app e

Re: [dpdk-dev] [PATCH v5 0/3] Support TCP/IPv4 GRO in DPDK

2017-06-18 Thread Tan, Jianfeng
Hi Jiayu, You need to update the document: - Release note file: release_17_08.rst. - A howto doc is welcomed. On 6/18/2017 3:21 PM, Jiayu Hu wrote: Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by rea

Re: [dpdk-dev] [PATCH v5 1/3] lib: add Generic Receive Offload API framework

2017-06-19 Thread Tan, Jianfeng
On 6/18/2017 3:21 PM, Jiayu Hu wrote: Generic Receive Offload (GRO) is a widely used SW-based offloading technique to reduce per-packet processing overhead. It gains performance by reassembling small packets into large ones. This patchset is to support GRO in DPDK. To support GRO, this patch im

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-19 Thread Tan, Jianfeng
On 6/18/2017 3:21 PM, Jiayu Hu wrote: In this patch, we introduce six APIs to support TCP/IPv4 GRO. Those functions are not used outside of this library. Don't make it as extern visible. - gro_tcp_tbl_create: create a TCP reassembly table, which is used to merge packets. Will tcp6

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Tan, Jianfeng
Hi Jiayu, On 6/20/2017 11:22 AM, Jiayu Hu wrote: Hi Jianfeng, On Mon, Jun 19, 2017 at 11:43:20PM +0800, Tan, Jianfeng wrote: On 6/18/2017 3:21 PM, Jiayu Hu wrote: In this patch, we introduce six APIs to support TCP/IPv4 GRO. Those functions are not used outside of this library. Don't

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-22 Thread Tan, Jianfeng
Hi Jiayu, > -Original Message- > From: Hu, Jiayu > Sent: Thursday, June 22, 2017 4:18 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Ananyev, Konstantin; y...@fridaylinux.org; Wiles, Keith; > Bie, Tiwei; Yao, Lei A > Subject: Re: [PATCH v5 2/3] lib/gro: add TCP/IPv4 GR

Re: [dpdk-dev] [PATCH v3 0/9] bus/pci: remove PCI bus from EAL

2017-06-22 Thread Tan, Jianfeng
Hi Gaetan, Do you (or anyone else) have plan to move vdev bus into drivers/bus/. Thanks, Jianfeng On 6/21/2017 7:36 AM, Gaetan Rivet wrote: This patchset moves the PCI bus out of the EAL to the drivers/bus subdirectory. Almost all dependencies have been worked out, only remains KNI to be made

  1   2   3   4   5   6   >