[dpdk-dev] Hugetlbfs mounted with size option leads to mmap failure

2015-08-28 Thread Tan, Jianfeng
Hi Monroy, As hugetlbfs mounted with option "size=xxx", and xxx is smaller than that from /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages, error is raised like, EAL: map_all_hugepages(): mmap failed: Cannot allocate memory. Although this can be avoided by the parameter of

[dpdk-dev] [PATCH v2] examples/vhost: fix statistics error

2015-12-03 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Thursday, December 3, 2015 2:18 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] examples/vhost: fix statistics error > > On Thu, Dec 03,

[dpdk-dev] [PATCH] xenvirt: fix compilation issues

2015-12-12 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei at dpdk.org > Sent: Thursday, December 10, 2015 11:16 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] xenvirt: fix compilation issues > > Reported-by: Christian Ehrhardt > Signed-off-by: Huawei

[dpdk-dev] [PATCH] virtio: fix virtio_net_hdr desc pointing to the same buffer

2015-12-12 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei at dpdk.org > Sent: Friday, December 11, 2015 12:08 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] virtio: fix virtio_net_hdr desc pointing to the > same buffer > > The virtio_net_hdr desc all

[dpdk-dev] [PATCH] virtio: fix virtio_net_hdr desc pointing to the same buffer

2015-12-14 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei at dpdk.org > Sent: Friday, December 11, 2015 12:08 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] virtio: fix virtio_net_hdr desc pointing to the > same buffer > > The virtio_net_hdr desc all

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

2015-12-24 Thread Tan, Jianfeng
cember 16, 2015 4:37 PM > To: dev at dpdk.org > Cc: nakajima.yoshihiro at lab.ntt.co.jp; Tan, Jianfeng; Xie, Huawei; > mst at redhat.com; marcandre.lureau at gmail.com; Tetsuya Mukawa > Subject: [PATCH v1 0/2] Virtio-net PMD Extension to work on host > > [Change log] >

[dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling

2015-12-29 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > Sent: Thursday, December 10, 2015 11:54 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 0/6 for 2.3] initial virtio 1.0 enabling > > Hi, > > Here is an initial virtio 1.0 pmd driver

[dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops

2015-12-29 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > Sent: Thursday, December 10, 2015 11:54 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops > > Introduce struct virtio_pci_ops, to let legacy

[dpdk-dev] [PATCH 6/6] virtio: add virtio v1.0 support

2015-12-29 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > Sent: Thursday, December 10, 2015 11:54 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 6/6] virtio: add virtio v1.0 support > ... > Signed-off-by: Yuanhan Liu > --- >

[dpdk-dev] [RFC 0/5] virtio support for container

2015-12-31 Thread Tan, Jianfeng
Hi Fedin, First of all, when you say openvswitch, are you referring to ovs-dpdk? And can you detail your test case? Like, how do you want ovs_on_host and ovs_in_container to be connected? Through two-direct-connected physical NICs, or one vhost port in ovs_on_host and one virtio port in

[dpdk-dev] [RFC 0/5] virtio support for container

2015-12-31 Thread Tan, Jianfeng
> -Original Message- > From: Pavel Fedin [mailto:p.fedin at samsung.com] > Sent: Thursday, December 31, 2015 5:40 PM > To: Tan, Jianfeng; dev at dpdk.org > Subject: RE: [dpdk-dev] [RFC 0/5] virtio support for container > > Hello! > > > First of all, whe

[dpdk-dev] [RFC 0/5] virtio support for container

2015-12-31 Thread Tan, Jianfeng
Hi, > a) ovs_in_container does not send VHOST_USER_SET_MEM_TABLE Please check if rte_eth_dev_start() is called. (rte_eth_dev_start -> virtio_dev_start -> vtpci_reinit_complete -> kick_all_vq) > b) set_vring_addr() does not make sure that dev->mem is set. > I am preparing a patch to fix (b).

[dpdk-dev] [RFC 0/5] virtio support for container

2015-12-31 Thread Tan, Jianfeng
Hello! > > I've made some progress about (a). It's tricky. This caused by this fragment: > > if (vhost_user_read(vhost->sockfd, , len, fds, fd_num) < 0) > return 0; > > Here you ignore errors. And this particular request for some reason ends up > in EBADF. The most

[dpdk-dev] [PATCH v3] i40: fix the VXLAN TSO issue

2016-07-26 Thread Tan, Jianfeng
Hi Konstantin, On 7/19/2016 6:29 PM, Ananyev, Konstantin wrote: > >> Problem: >> When using the TSO + VXLAN feature in i40e, the outer UDP length fields in >> the multiple UDP segments which are TSOed by the i40e will >> have a wrong value. >> >> Fix this problem by adding the tunnel type

[dpdk-dev] [PATCH v3] i40: fix the VXLAN TSO issue

2016-07-29 Thread Tan, Jianfeng
Hi, On 7/18/2016 7:56 PM, Zhe Tao wrote: > Problem: > When using the TSO + VXLAN feature in i40e, the outer UDP length fields in > the multiple UDP segments which are TSOed by the i40e will have a > wrong value. > > Fix this problem by adding the tunnel type field in the i40e descriptor > which

[dpdk-dev] [PATCH v3] i40: fix the VXLAN TSO issue

2016-07-29 Thread Tan, Jianfeng
> -Original Message- > From: Ananyev, Konstantin > Sent: Friday, July 29, 2016 4:46 PM > To: Tan, Jianfeng; dev at dpdk.org > Cc: Wu, Jingjing > Subject: RE: [dpdk-dev] [PATCH v3] i40: fix the VXLAN TSO issue > > Hi Jianfeng, > > > > > Hi, >

[dpdk-dev] [PATCH] eal: add option --avail-cores to detect lcores

2016-07-01 Thread Tan, Jianfeng
Hi Thomas, > > > > > > Looking at your special case, if the user did set an isolcpus option > > > for another use, with no -c/-l, I understand the dpdk application > > > won't care too much about it. > > > So, this seems like somehow rude to the rest of the system and > unwanted. > > > > The case

[dpdk-dev] [PATCH v5 2/8] virtio: clean up virtio_dev_queue_setup

2016-06-01 Thread Tan, Jianfeng
Hi Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Wednesday, June 1, 2016 3:38 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei; rich.lane at bigswitch.com; mst at > redhat.com; > nakajima.yoshihiro at l

[dpdk-dev] [PATCH v5 7/8] virtio-user: add a new vdev named virtio-user

2016-06-02 Thread Tan, Jianfeng
Hi Yuanhan, On 6/1/2016 4:26 PM, Yuanhan Liu wrote: > On Mon, May 30, 2016 at 10:55:38AM +, Jianfeng Tan wrote: >> diff --git a/drivers/net/virtio/virtio_user/virtio_user_dev.c >> b/drivers/net/virtio/virtio_user/virtio_user_dev.c >> index 41d8ad1..5e4f60b 100644 >> ---

[dpdk-dev] [PATCH v5 0/6] Virtio-net PMD: QEMU QTest extension for container

2016-06-06 Thread Tan, Jianfeng
Hi, On 6/6/2016 1:10 PM, Tetsuya Mukawa wrote: > Hi Yuanhan, > > Sorry for late replying. > > On 2016/06/03 13:17, Yuanhan Liu wrote: >> On Thu, Jun 02, 2016 at 06:30:18PM +0900, Tetsuya Mukawa wrote: >>> Hi Yuanhan, >>> >>> On 2016/06/02 16:31, Yuanhan Liu wrote: But still, I'd ask do we

[dpdk-dev] [PATCH v6 6/7] virtio-user: add new virtual pci driver for virtio

2016-06-06 Thread Tan, Jianfeng
Hi Yuanhan, On 6/6/2016 4:01 PM, Yuanhan Liu wrote: > On Thu, Jun 02, 2016 at 09:54:36AM +, Jianfeng Tan wrote: >> + >> +desc_addr = (uint64_t)vq->mz->addr; >> +avail_addr = desc_addr + vq->vq_nentries * sizeof(struct vring_desc); >> +used_addr = RTE_ALIGN_CEIL(avail_addr +

[dpdk-dev] [PATCH v5 0/6] Virtio-net PMD: QEMU QTest extension for container

2016-06-06 Thread Tan, Jianfeng
Hi, On 6/6/2016 5:28 PM, Tetsuya Mukawa wrote: > On 2016/06/06 17:03, Tan, Jianfeng wrote: >> Hi, >> >> >> On 6/6/2016 1:10 PM, Tetsuya Mukawa wrote: >>> Hi Yuanhan, >>> >>> Sorry for late replying. >>> >>> On 2016/06/03

[dpdk-dev] [PATCH v5 0/6] Virtio-net PMD: QEMU QTest extension for container

2016-06-06 Thread Tan, Jianfeng
Hi, On 6/6/2016 5:30 PM, Tetsuya Mukawa wrote: > On 2016/06/06 17:49, Yuanhan Liu wrote: >> On Mon, Jun 06, 2016 at 05:33:31PM +0900, Tetsuya Mukawa wrote: > [My solution] > - Pros > Basic principle of my implementation is not to reinvent the wheel. Yes, that's a good point.

[dpdk-dev] [PATCH] virito: fix reuse index in nested loop

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 4:58 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei > Subject: Re: [PATCH] virito: fix reuse index in nested loop > > On Sun, Jun 12,

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 5:52 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei > Subject: Re: [dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem > aligned >

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Tan, Jianfeng
On 6/13/2016 5:21 PM, Yuanhan Liu wrote: > On Sun, Jun 12, 2016 at 02:29:42PM +, Jianfeng Tan wrote: >> Compile DPDK with clang, below line in virtio_rxtx.c could be >> optimized with four "VMOVAPS ymm, m256". >>memset(>fake_mbuf, 0, sizeof(rxvq->fake_mbuf)); >> >> This instruction

[dpdk-dev] [PATCH v2 4/4] virtio-user: handle ctrl-q in driver

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 6:14 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; rich.lane at bigswitch.com; mst at redhat.com; > nakajima.yoshihiro at lab.ntt.co.jp; p.fe

[dpdk-dev] Assembly code

2016-06-22 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mahdi Moradmand > Badie > Sent: Wednesday, June 22, 2016 5:21 AM > To: dev at dpdk.org > Subject: [dpdk-dev] Assembly code > > Dear All, > > I used the default format of Makefile (as follow) which is

[dpdk-dev] [PATCH] net/virtio-user: fix implicit int to enum conversion

2016-06-24 Thread Tan, Jianfeng
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Friday, June 24, 2016 4:51 AM > To: Tan, Jianfeng > Cc: dev at dpdk.org; yuanhan.liu at linux.intel.com; Xie, Huawei > Subject: Re: [dpdk-dev] [PATCH] net/virtio-

[dpdk-dev] [PATCH v9 3/6] virtio-user: add vhost user adapter layer

2016-06-24 Thread Tan, Jianfeng
Hi Yigit, > -Original Message- > From: Yigit, Ferruh > Sent: Thursday, June 23, 2016 5:02 PM > To: Tan, Jianfeng; dev at dpdk.org > Cc: Xie, Huawei; rich.lane at bigswitch.com; yuanhan.liu at linux.intel.com; > mst at redhat.com; nakajima.yoshihiro at lab.

[dpdk-dev] [dpdk-dev, PATCHv6 3/6] virtio: add support for eth_(rxq|txq)_info_get

2015-10-20 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Amine Kherbouche > Sent: Tuesday, October 20, 2015 6:06 AM > To: dev at dpdk.org > Cc: amine.kherbouche at 6wind.com > Subject: [dpdk-dev] [dpdk-dev, PATCHv6 3/6] virtio: add support for >

[dpdk-dev] [PATCH v3 6/7] virtio: simple tx routine

2015-10-22 Thread Tan, Jianfeng
On 10/22/2015 10:26 AM, Jianfeng wrote: > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Tuesday, October 20, 2015 11:30 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 6/7] virtio: simple tx routine > > Changes in v3: > - Remove

[dpdk-dev] [PATCH v3 7/7] virtio: pick simple rx/tx func

2015-10-22 Thread Tan, Jianfeng
On 10/22/2015 10:45 AM, Jianfeng wrote: > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Tuesday, October 20, 2015 11:30 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 7/7] virtio: pick simple rx/tx func > > simple rx/tx func is

[dpdk-dev] [PATCH v4 4/7] virtio: fill RX avail ring with blank mbufs

2015-10-23 Thread Tan, Jianfeng
On 10/23/2015 1:51 PM, Jianfeng wrote: > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Thursday, October 22, 2015 8:10 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v4 4/7] virtio: fill RX avail ring with blank mbufs > +int

[dpdk-dev] [PATCH 1/8] driver/virtio:add virtual addr for virtio net header

2015-10-26 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Wednesday, October 21, 2015 12:47 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/8] driver/virtio:add virtual addr for virtio net > header > > The virtual addr for virtio net

[dpdk-dev] [PATCH 0/8] add vhost TSO capability

2015-10-26 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Thursday, September 17, 2015 1:11 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 0/8] add vhost TSO capability > > The patch set add the negotiation between us-vhost and virtio-net

[dpdk-dev] [PATCH v5 0/7] virtio ring layout optimization and simple rx/tx processing

2015-10-27 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Sunday, October 25, 2015 11:35 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v5 0/7] virtio ring layout optimization and simple > rx/tx processing > > Changes in v5: > - Call

[dpdk-dev] [PATCH v6 0/8] virtio ring layout optimization and simple rx/tx processing

2015-10-30 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Thursday, October 29, 2015 10:53 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v6 0/8] virtio ring layout optimization and simple > rx/tx processing > > Changes in v6: > - Update

[dpdk-dev] [PATCH v2 0/9] add vhost TX offload support

2015-10-30 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Friday, October 30, 2015 9:00 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/9] add vhost TX offload support > > Adds vhost TX offload support. > > The patch set add the

[dpdk-dev] [PATCH] virtio: fix used ring address calculation

2015-09-21 Thread Tan, Jianfeng
-Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Huawei Xie Sent: Monday, September 21, 2015 11:39 AM To: dev at dpdk.org Subject: [dpdk-dev] [PATCH] virtio: fix used ring address calculation used event idx is put at the end of available ring. It isn't taken into

[dpdk-dev] [PATCH] vhost: vhost injects interrupts to guest for each packet

2015-09-21 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Huawei Xie > Sent: Monday, September 21, 2015 4:16 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] vhost: vhost injects interrupts to guest for each > packet > > In merge-able RX path, vhost injects

[dpdk-dev] [PATCH v3 0/8] add vhost TX offload support

2015-11-04 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Wednesday, November 4, 2015 6:54 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/8] add vhost TX offload support > > Adds vhost TX offload support. > > The patch set add the

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-08 Thread Tan, Jianfeng
> -Original Message- > From: Ananyev, Konstantin > Sent: Saturday, November 7, 2015 12:22 AM > To: Tan, Jianfeng; dev at dpdk.org > Cc: nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; mst at > redhat.com; > gaoxiaoqiu at huawei.com; oscar.

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, November 9, 2015 11:55 AM > To: Tan, Jianfeng > Cc: dev at dpdk.org; nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; > mst at redhat.com; gaoxiaoqiu at huawei.

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, November 9, 2015 1:41 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; > mst at redhat.com; gaoxiaoqiu at huawei.

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-09 Thread Tan, Jianfeng
> .. > > > > +int > > > > +rte_memseg_info_get(int index, int *pfd, uint64_t *psize, void > > > > +**paddr) { > > > > + struct rte_mem_config *mcfg; > > > > + mcfg = rte_eal_get_configuration()->mem_config; > > > > + > > > > + *pfd = mcfg->memseg[index].fd; > > > > +

[dpdk-dev] [PATCH] vhost: fix mmap failure as len not aligned with hugepage size

2015-11-12 Thread Tan, Jianfeng
> -Original Message- > From: Xie, Huawei > Sent: Wednesday, November 11, 2015 11:57 AM > To: Tan, Jianfeng; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] vhost: fix mmap failure as len not aligned > with > hugepage size > > On 10/30/2015 2:52 PM, Jianfen

[dpdk-dev] [PATCH v2] vhost: fix mmap failure as len not aligned with hugepage size

2015-11-12 Thread Tan, Jianfeng
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, November 12, 2015 7:19 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] vhost: fix mmap failure as len not aligned > with hugepage si

[dpdk-dev] [RFC 0/5] virtio support for container

2015-11-24 Thread Tan, Jianfeng
> -Original Message- > From: Zhuangyanying [mailto:ann.zhuangyanying at huawei.com] > Sent: Tuesday, November 24, 2015 11:53 AM > To: Tan, Jianfeng; dev at dpdk.org > Cc: mst at redhat.com; mukawa at igel.co.jp; nakajima.yoshihiro at > lab.ntt.co.jp; > Qiu,

[dpdk-dev] no hugepage with UIO poll-mode driver

2015-11-25 Thread Tan, Jianfeng
Hi Younghwan When you specify --no-huge, by default, only 64M memory is used. Can you use -m 1024 to Mmap 1G memory to have a try? Jianfeng > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Younghwan Go > Sent: Wednesday, November 25, 2015 1:46 PM > To: dev

[dpdk-dev] [PATCH v2 07/12] pmd/ixgbe: add dev_ptype_info_get implementation

2016-02-25 Thread Tan, Jianfeng
Hi Konstantin, On 1/15/2016 10:50 PM, Ananyev, Konstantin wrote: > >> -Original Message- >> From: Tan, Jianfeng >> Sent: Friday, January 15, 2016 5:46 AM >> To: dev at dpdk.org >> Cc: Zhang, Helin; Ananyev, Konstantin; Tan, Jianfeng >> S

[dpdk-dev] [PATCH v2 01/12] ethdev: add API to query packet type filling info

2016-02-25 Thread Tan, Jianfeng
Hi Konstantin, On 1/15/2016 11:03 PM, Ananyev, Konstantin wrote: > >> -Original Message- >> From: Tan, Jianfeng >> Sent: Friday, January 15, 2016 5:46 AM >> To: dev at dpdk.org >> Cc: Zhang, Helin; Ananyev, Konstantin; Tan, Jianfeng >> Subject: [P

[dpdk-dev] [PATCH v2 12/12] examples/l3fwd: add option to parse ptype

2016-02-25 Thread Tan, Jianfeng
Hi Konstantin, On 1/15/2016 10:47 PM, Ananyev, Konstantin wrote: > Hi Jianfeng, > >> -Original Message----- >> From: Tan, Jianfeng >> Sent: Friday, January 15, 2016 5:46 AM >> To: dev at dpdk.org >> Cc: Zhang, Helin; Ananyev, Konstantin; Tan, Jianfeng &

[dpdk-dev] [PATCH v2 01/12] ethdev: add API to query packet type filling info

2016-02-25 Thread Tan, Jianfeng
On 2/25/2016 7:17 PM, Ananyev, Konstantin wrote: +int +rte_eth_dev_get_ptype_info(uint8_t port_id, uint32_t ptype_mask, + uint32_t ptypes[], int num) +{ + int ret, i, j; + struct rte_eth_dev *dev; + uint32_t all_ptypes[RTE_PTYPE_MAX_NUM];

[dpdk-dev] [PATCH v3 01/12] ethdev: add API to query packet type filling info

2016-02-26 Thread Tan, Jianfeng
Hi Konstantin, On 2/26/2016 1:16 AM, Ananyev, Konstantin wrote: > >> -Original Message- >> From: Tan, Jianfeng >> Sent: Thursday, February 25, 2016 4:36 PM >> To: Ananyev, Konstantin; dev at dpdk.org >> Cc: Zhang, Helin; nelio.laranjeiro at 6wind.com;

[dpdk-dev] [PATCH v4 09/12] pmd/mlx5: add dev_ptype_info_get implementation

2016-02-26 Thread Tan, Jianfeng
Hi, On 2/26/2016 4:26 PM, Adrien Mazarguil wrote: > Hi Jianfeng, > > On Fri, Feb 26, 2016 at 08:09:28AM +0800, Jianfeng Tan wrote: >> Signed-off-by: Jianfeng Tan >> --- >> drivers/net/mlx4/mlx4.c| 2 +- >> drivers/net/mlx5/mlx5.c| 1 + >> drivers/net/mlx5/mlx5.h| 1

[dpdk-dev] [PATCH v4 12/12] examples/l3fwd: add option to parse ptype

2016-02-26 Thread Tan, Jianfeng
Hi Konstantin, On 2/26/2016 9:14 PM, Ananyev, Konstantin wrote: > Hi Jianfeng, > >> +static int ... >> +if (hdr_len == sizeof(struct ipv4_hdr) && >> +(hdr->next_proto_id == 6 || >> + hdr->next_proto_id == 17)) > Use IPPORTO_UDP,

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-29 Thread Tan, Jianfeng
Hi Thomas, On 2/29/2016 5:12 AM, Thomas Monjalon wrote: > Hi, > > 2016-01-29 19:22, Jianfeng Tan: >> Current issue: DPDK is not that friendly to container environment, which >> caused by that it pre-alloc resource like cores and hugepages. But there >> are this or that resource limitations, for

[dpdk-dev] [PATCH v5 01/11] ethdev: add API to query packet type filling info

2016-03-01 Thread Tan, Jianfeng
Hi Panu, On 2/29/2016 7:34 PM, Panu Matilainen wrote: > On 02/26/2016 09:34 AM, Jianfeng Tan wrote: >> Add a new API rte_eth_dev_get_ptype_info to query whether/what packet >> type can be filled by given pmd rx burst function. >> >> Signed-off-by: Jianfeng Tan >> --- >>

[dpdk-dev] [PATCH 07/12] pmd/ixgbe: add dev_ptype_info_get implementation

2016-01-05 Thread Tan, Jianfeng
On 1/5/2016 2:12 AM, Ananyev, Konstantin wrote: > >> -Original Message- >> From: Tan, Jianfeng >> Sent: Thursday, December 31, 2015 6:53 AM >> To: dev at dpdk.org >> Cc: Zhang, Helin; Ananyev, Konstantin; Tan, Jianfeng >> Subject: [PATCH 0

[dpdk-dev] [PATCH] fix checkpatch errors

2016-01-05 Thread Tan, Jianfeng
> -Original Message- > From: Xie, Huawei > Sent: Monday, January 4, 2016 9:52 AM > To: dev at dpdk.org > Cc: Mcnamara, John; Tan, Jianfeng; Xie, Huawei > Subject: [PATCH] fix checkpatch errors > > Signed-off-by: Huawei Xie ... > mbuf_poolname_build

[dpdk-dev] [PATCH 12/12] examples/l3fwd: add option to parse ptype

2016-01-05 Thread Tan, Jianfeng
> -Original Message- > From: Ananyev, Konstantin > Sent: Tuesday, January 5, 2016 2:32 AM > To: Tan, Jianfeng; dev at dpdk.org > Cc: Zhang, Helin > Subject: RE: [PATCH 12/12] examples/l3fwd: add option to parse ptype > > > Hi Jianfeng, > > -Or

[dpdk-dev] [PATCH 08/12] pmd/mlx4: add dev_ptype_info_get implementation

2016-01-05 Thread Tan, Jianfeng
On 1/4/2016 7:11 PM, Adrien Mazarguil wrote: > Hi Jianfeng, > > I'm only commenting the mlx4/mlx5 bits in this message, see below. > > On Thu, Dec 31, 2015 at 02:53:15PM +0800, Jianfeng Tan wrote: >> Signed-off-by: Jianfeng Tan >> --- >> drivers/net/mlx4/mlx4.c | 27

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

2016-01-06 Thread Tan, Jianfeng
On 1/6/2016 11:57 AM, Tetsuya Mukawa wrote: > On 2015/12/28 20:06, Tetsuya Mukawa wrote: >> On 2015/12/24 23:05, Tan, Jianfeng wrote: >>> Hi Tetsuya, >>> >>> After several days' studying your patch, I have some questions as follows: >>> >&g

[dpdk-dev] [RFC 0/5] virtio support for container

2016-01-06 Thread Tan, Jianfeng
On 12/31/2015 11:39 PM, Pavel Fedin wrote: > Hello! > > Last minute note. I have found the problem but have no time to research and > fix it. > It happens because ovs first creates the device, starts it, then stops it, > and reconfigures queues. The second queue allocation > happens from

[dpdk-dev] [PATCH v1 2/2] virtio: Extend virtio-net PMD to support container environment

2016-01-06 Thread Tan, Jianfeng
On 1/6/2016 11:57 AM, Tetsuya Mukawa wrote: > On 2015/12/28 20:57, Pavel Fedin wrote: >> Hello! >> >>> diff --git a/drivers/net/virtio/virtio_pci.h >>> b/drivers/net/virtio/virtio_pci.h >>> index 47f722a..d4ede73 100644 >>> --- a/drivers/net/virtio/virtio_pci.h >>> +++

[dpdk-dev] [PATCH 02/12] pmd/cxgbe: add dev_ptype_info_get implementation

2016-01-06 Thread Tan, Jianfeng
On 1/6/2016 3:11 PM, Rahul Lakkireddy wrote: > Hi Jianfeng, > > On Thursday, December 12/31/15, 2015 at 14:53:09 +0800, Jianfeng Tan wrote: >> Signed-off-by: Jianfeng Tan >> --- >> drivers/net/cxgbe/cxgbe_ethdev.c | 17 + >> 1 file changed, 17 insertions(+) >> >> diff --git

[dpdk-dev] [PATCH 12/12] examples/l3fwd: add option to parse ptype

2016-01-07 Thread Tan, Jianfeng
Hi Konstantin, On 1/6/2016 12:49 AM, Ananyev, Konstantin wrote: > Hi Jianfeng, > +static int +check_packet_type_ok(int portid) +{ + int i; + int ret; + uint32_t ptypes[RTE_PTYPE_L3_MAX_NUM]; + int ptype_l3_ipv4 = 0, ptype_l3_ipv6 = 0; + + ret =

[dpdk-dev] tx_burst errors seen with virtual pmds

2016-01-07 Thread Tan, Jianfeng
Hi Souvik, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Dey, Souvik > Sent: Thursday, January 7, 2016 2:15 PM > To: dev at dpdk.org > Subject: [dpdk-dev] tx_burst errors seen with virtual pmds > > Hi All, > While trying call load with

[dpdk-dev] [PATCH 08/12] pmd/mlx4: add dev_ptype_info_get implementation

2016-01-11 Thread Tan, Jianfeng
> OK, that makes sense. Please check my above comments about coding > style/indents (I know I'm annoying). Thank you, Mazarguil. I'll fix it when sending out v2 patch. Jianfeng

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

2016-01-11 Thread Tan, Jianfeng
Hi Tetsuya, > With current your implementation, when 'virtual' virtio-net PMD is used, > 'phys_addr' will be virtual address in EAL layer. > > struct rte_memseg { > phys_addr_t phys_addr; /**< Start physical address. */ > union { > void *addr; /**<

[dpdk-dev] [PATCH 01/12] ethdev: add API to query what/if packet type is set

2016-01-11 Thread Tan, Jianfeng
Hi, According to the proposal, I'm going to fix the definition of this API as below: /** * Retrieve the contextual information of an Ethernet device. * * @param port_id * The port identifier of the Ethernet device. * @param ptype_mask * A hint of what kind of packet type which

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-11 Thread Tan, Jianfeng
Hi Fedin, > With the aforementioned fixes i tried to run it inside libvirt-lxc. I got > the following: > a) With hugepages - "abort with 256 hugepage files exceed the maximum of 8 > for vhost-user" - i set -m 512 This is currently a known issue, we have discussed in another thread with

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-12 Thread Tan, Jianfeng
Hi Tetsuya, > Hi Jianfeng and Xie, > > I guess my implementation and yours have a lot of common code, so I will > try to rebase my patch on yours. We also think so. And before you rebase your code, I think we can rely on Yuanhan's struct virtio_pci_ops to make the code structure brief and

[dpdk-dev] [PATCH 4/4] virtio/vdev: add a new vdev named eth_cvio

2016-01-12 Thread Tan, Jianfeng
Hi Fedin, On 1/12/2016 3:45 PM, Pavel Fedin wrote: > Hello! > > See inline > >> ... >> } >> >> +struct rte_mbuf *m = NULL; >> +if (dev->dev_type == RTE_ETH_DEV_PCI) >> +vq->offset = (uintptr_t)>buf_addr; >> +#ifdef RTE_VIRTIO_VDEV >> +else { >> +

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-12 Thread Tan, Jianfeng
Hi Fedin, On 1/12/2016 4:39 PM, Pavel Fedin wrote: > Hello! > >> See my reply to "mem: add API to obstain memory-backed file info" for a >> workaround. With fixes for that and the TUNSETVNETHDRSZ issue I was able to >> get traffic running over vhost-user. > With ovs or test apps? I still

[dpdk-dev] [PATCH 2/4] mem: add API to obstain memory-backed file info

2016-01-12 Thread Tan, Jianfeng
Hi! On 1/12/2016 4:26 AM, Rich Lane wrote: > On Sun, Jan 10, 2016 at 3:43 AM, Jianfeng Tan > wrote: > > @@ -1157,6 +1180,20 @@ rte_eal_hugepage_init(void) > mcfg->memseg[0].len = internal_config.memory; >

[dpdk-dev] [PATCH 4/4] virtio/vdev: add a new vdev named eth_cvio

2016-01-12 Thread Tan, Jianfeng
Hi Fedin, On 1/12/2016 4:39 PM, Tan, Jianfeng wrote: > Hi Fedin, > > On 1/12/2016 3:45 PM, Pavel Fedin wrote: >> Hello! >> >> See inline >> >>> ... >>> } >>> >>> +struct rte_mbuf *m = NULL; >>> +

[dpdk-dev] [PATCH 2/4] mem: add API to obstain memory-backed file info

2016-01-12 Thread Tan, Jianfeng
Hello! > But in this case host gets this page size for total region size, therefore > qva_to_vva() fails. > I haven't worked with hugepages, but i guess that with real hugepages we > get one file per page, therefore page size == mapping size. With newly > introduced --single-file we now

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-12 Thread Tan, Jianfeng
Hello! On 1/12/2016 10:45 PM, Amit Tomer wrote: > Hello, > > I run l2fwd from inside docker with following logs: > > But, don't see Port statistics gets updated ? > In vhost-switch, it judges if a virtio device is ready for processing after receiving a pkt from virtio device. So you'd better

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-13 Thread Tan, Jianfeng
Hello, On 1/12/2016 11:11 PM, Amit Tomer wrote: > Hello, > >> In vhost-switch, it judges if a virtio device is ready for processing after >> receiving >> a pkt from virtio device. So you'd better construct a pkt, and send it out >> firstly >> in l2fwd. > I tried to ping the socket interface from

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-14 Thread Tan, Jianfeng
Hi Amit, On 1/13/2016 11:00 PM, Amit Tomer wrote: > Hello, > >> You can use below patch for l2fwd to send out an arp packet when it gets >> started. > I tried to send out arp packet using this patch but buffer allocation > for arp packets itself gets failed: > > m = rte_pktmbuf_alloc(mp); > >

[dpdk-dev] [PATCH v2 0/7] virtio 1.0 enabling for virtio pmd driver

2016-01-14 Thread Tan, Jianfeng
Hi Tetsuya, On 1/14/2016 12:27 PM, Tetsuya Mukawa wrote: > On 2016/01/12 15:58, Yuanhan Liu wrote: > Hi Yuanhan and Jianfeng, > > Thanks for great patches. > I want to use VIRTIO-1.0 feature for my virtio container patch, because > it will solve 44 bit memory address limitation. > (So far,

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-14 Thread Tan, Jianfeng
Hi Amit, On 1/14/2016 5:34 PM, Amit Tomer wrote: > Hello, > >> Can you send out how you start this l2fwd program? > This is how, I run l2fwd program. > > CMD ["/usr/src/dpdk/examples/l2fwd/build/l2fwd", "-c", "0x3", "-n", > "4","--no-pci", >

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-15 Thread Tan, Jianfeng
Hi Amit, On 1/14/2016 8:03 PM, Amit Tomer wrote: > Hello, > >> Not necessary. But if you want to use hugepages inside Docker, use -v option >> to map a hugetlbfs into containers. > I modified Docker command line in order to make use of Hugetlbfs: > > CMD

[dpdk-dev] [PATCH 0/3] virtio: Add a new layer to abstract pci access method

2016-01-18 Thread Tan, Jianfeng
Hi Tetsuya, On 1/18/2016 5:13 PM, Tetsuya Mukawa wrote: > The patches abstract pci access method of virtio-net PMD. > The patch should be on Yuanhan's below patch series. > - [PATCH v4 0/8] virtio 1.0 enabling for virtio pmd driver > > > Tetsuya Mukawa (3): >virtio: Change the parameter

[dpdk-dev] [PATCH] vhost: remove lockless enqueue to the virtio ring

2016-01-20 Thread Tan, Jianfeng
Hi Huawei, On 1/4/2016 10:46 PM, Huawei Xie wrote: > This patch removes the internal lockless enqueue implmentation. > DPDK doesn't support receiving/transmitting packets from/to the same > queue. Vhost PMD wraps vhost device as normal DPDK port. DPDK > applications normally have their own lock

[dpdk-dev] L3 Forwarding performance of DPDK on virtio

2016-01-21 Thread Tan, Jianfeng
Hello! On 1/21/2016 7:51 AM, Clarylin L wrote: > I am running dpdk within a virtual guest as a L3 forwarder. > > > The VM has two ports connecting to two linux bridges (in turn connecting > two physical ports). DPDK is used to forward between these two ports (one > port connected to traffic

[dpdk-dev] [RFC PATCH 4/5] EAL: Add new EAL "--shm" option.

2016-01-22 Thread Tan, Jianfeng
Hi Tetsuya, On 1/21/2016 7:07 PM, Tetsuya Mukawa wrote: > This is a temporary patch to get EAL memory under 16T(1 << 44). > > The patch adds new EAL "--shm" option. If the option is specified, > EAL will allocate one file from hugetlbfs. This memory is for sharing > memory between DPDK

[dpdk-dev] [RFC PATCH 4/5] EAL: Add new EAL "--shm" option.

2016-01-22 Thread Tan, Jianfeng
Hi Tetsuya, On 1/22/2016 9:43 AM, Tan, Jianfeng wrote: > Hi Tetsuya, > > On 1/21/2016 7:07 PM, Tetsuya Mukawa wrote: >> This is a temporary patch to get EAL memory under 16T(1 << 44). >> >> The patch adds new EAL "--shm" option. If the option is sp

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-22 Thread Tan, Jianfeng
Hi Amit, On 1/20/2016 11:19 PM, Amit Tomer wrote: > Hello, > >> For this case, please use --single-file option because it creates much more >> than 8 fds, which can be handled by vhost-user sendmsg(). > Thanks, I'm able to verify it by sending ARP packet from container to > host on arm64. But

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-26 Thread Tan, Jianfeng
Hi Neil, On 1/25/2016 9:46 PM, Neil Horman wrote: > On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: ... >> -- >> 2.1.4 >> >> > > This doesn't make a whole lot of sense, for several reasons: > > 1) Applications, as a general rule shouldn't be interrogating the cgroups > interface

[dpdk-dev] [PATCH 0/4] virtio support for container

2016-01-26 Thread Tan, Jianfeng
Hi Michael, On 1/26/2016 2:02 PM, Qiu, Michael wrote: > On 1/11/2016 2:43 AM, Tan, Jianfeng wrote: ... >> >> f. Used with vhost-net >> $: modprobe vhost >> $: modprobe vhost-net >> $: docker run -i -t --privileged \ >> -v /dev/vhost-net:/dev/vhost-net

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-27 Thread Tan, Jianfeng
Hi Neil, On 1/26/2016 10:19 PM, Neil Horman wrote: > On Tue, Jan 26, 2016 at 10:22:18AM +0800, Tan, Jianfeng wrote: >> Hi Neil, >> >> On 1/25/2016 9:46 PM, Neil Horman wrote: >>> On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: >> ... >>&g

[dpdk-dev] [PATCH 1/4] net/virtio-user: fix return value not checked

2016-07-05 Thread Tan, Jianfeng
Hi Yuanhan, > -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Friday, July 1, 2016 10:16 AM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei; Mcnamara, John > Subject: Re: [PATCH 1/4] net/virtio-user: fix return value not c

[dpdk-dev] Possible Bug: DPDK 16.04 Empty packet_type

2016-07-06 Thread Tan, Jianfeng
Hi, On 7/6/2016 3:54 AM, Craig, Chris A. wrote: > We recently upgraded our environment to the 16.04 version of DPDK on a 14.04 > installation of Ubuntu. After upgrading, we noticed our code was behaving > oddly. After further inspection, we discovered the `packet_type` attribute of > the

[dpdk-dev] [PATCH] virtio: fix packet corruption

2016-07-19 Thread Tan, Jianfeng
Hi Oliver, > -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Tuesday, July 19, 2016 8:32 PM > To: dev at dpdk.org; Tan, Jianfeng; Xie, Huawei; yuanhan.liu at > linux.intel.com > Subject: [PATCH] virtio: fix packet corruption > &g

[dpdk-dev] [PATCH] virtio: fix packet corruption

2016-07-19 Thread Tan, Jianfeng
> -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Tuesday, July 19, 2016 9:11 PM > To: Tan, Jianfeng; dev at dpdk.org; Xie, Huawei; yuanhan.liu at > linux.intel.com > Subject: Re: [PATCH] virtio: fix packet corruption > > Hi

[dpdk-dev] [PATCH] virtio: fix packet corruption

2016-07-19 Thread Tan, Jianfeng
Hi Oliver, > -Original Message- > From: Olivier Matz [mailto:olivier.matz at 6wind.com] > Sent: Tuesday, July 19, 2016 10:00 PM > To: Tan, Jianfeng; dev at dpdk.org; Xie, Huawei; yuanhan.liu at > linux.intel.com > Subject: Re: [PATCH] virtio: fix packet corruption >

[dpdk-dev] [PATCH] doc: fix vhost setup in tep-termination app guide

2016-07-20 Thread Tan, Jianfeng
Hi Mark, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mark Kavanagh > Sent: Tuesday, July 19, 2016 11:32 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: fix vhost setup in tep-termination app > guide > > - Fix vhost setup flags > - Add minor

  1   2   3   >