[dpdk-dev] next releases

2014-08-25 Thread Thomas Monjalon
Hello all, I am back from holidays; thanks for all the patches/reviews/comments done during last weeks. I'd like to have a version 1.7.1, ideally at the end of this week. For the coming days, - first priority is to integrate bug fixes - some changes which do not imply API could be part of

[dpdk-dev] [RFC 10/10] virtio: add support for promiscious and multicast

2014-08-25 Thread Stephen Hemminger
Implement standard virtio controls for enabling and disabling promiscious and multicast. Signed-off-by: Stephen Hemminger --- a/lib/librte_pmd_virtio/virtio_ethdev.c 2014-08-25 19:00:16.754586819 -0700 +++ b/lib/librte_pmd_virtio/virtio_ethdev.c 2014-08-25 19:02:48.019397658 -0700 @@ -

[dpdk-dev] [RFC 09/10] virtio: fix how states are handled during initialization

2014-08-25 Thread Stephen Hemminger
Change order of initialiazation to match Linux kernel. Don't blow away control queue by doing reset when stopped. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_virtio/virtio_ethdev.c | 50 ++ lib/librte_pmd_virtio/virtio_rxtx.c |2 + 2 files change

[dpdk-dev] [RFC 08/10] virtio: remove redundant vq_alignment

2014-08-25 Thread Stephen Hemminger
Since vq_alignment is constant (always 4K), it does not need to be part of the vring struct. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_virtio/virtio_ethdev.c |1 - lib/librte_pmd_virtio/virtio_rxtx.c |2 +- lib/librte_pmd_virtio/virtqueue.h |3 +-- 3 files changed, 2

[dpdk-dev] [RFC 07/10] virtio: remove unnecessary adapter structure

2014-08-25 Thread Stephen Hemminger
Cleanup virtio code by eliminating unnecessary nesting of virtio hardware structure inside adapter structure. Also allows removing unneeded macro, making code clearer. --- lib/librte_pmd_virtio/virtio_ethdev.c | 31 +++ lib/librte_pmd_virtio/virtio_ethdev.h |9 --

[dpdk-dev] [RFC 06/10] virtio: use software vlan stripping

2014-08-25 Thread Stephen Hemminger
Implement VLAN stripping in software. This allows application to be device independent. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_virtio/virtio_ethdev.c |2 ++ lib/librte_pmd_virtio/virtio_pci.h|1 + lib/librte_pmd_virtio/virtio_rxtx.c | 20 ++-- 3 fil

[dpdk-dev] [RFC 05/10] ether: add soft vlan encap/decap functions

2014-08-25 Thread Stephen Hemminger
It is helpful to allow device drivers that don't support hardware VLAN stripping to emulate this in software. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ether.h | 69 +++ 1 file changed, 69 insertions(+) --- a/lib/librte_ether/rte_ether

[dpdk-dev] [RFC 04/10] virtio: add support for Link State interrupt

2014-08-25 Thread Stephen Hemminger
Virtio has link state interrupt which can be used. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_virtio/virtio_ethdev.c | 78 ++ lib/librte_pmd_virtio/virtio_pci.c| 22 + lib/librte_pmd_virtio/virtio_pci.h|4 + 3 files changed, 86 i

[dpdk-dev] [RFC 03/10] virtio: allow starting with link down

2014-08-25 Thread Stephen Hemminger
Starting driver with link down should be ok, it is with every other driver. So just allow it. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_virtio/virtio_ethdev.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) --- a/lib/librte_pmd_virtio/virtio_ethdev.c 2014-08-25 19:

[dpdk-dev] [RFC 02/10] virtio: use weak barriers

2014-08-25 Thread Stephen Hemminger
The DPDK driver only has to deal with the case of running on PCI and with SMP. In this case, the code can use the weaker barriers instead of using hard (fence) barriers. This will help performance. The rationale is explained in Linux kernel virtio_ring.h. To make it clearer that this is a virtio t

[dpdk-dev] [RFC 01/10] virtio: rearrange resource initialization

2014-08-25 Thread Stephen Hemminger
For clarity make the setup of PCI resources for Linux into a function rather than block of code #ifdef'd in middle of dev_init. --- lib/librte_pmd_virtio/virtio_ethdev.c | 76 +++--- 1 file changed, 43 insertions(+), 33 deletions(-) --- a/lib/librte_pmd_virtio/virti

[dpdk-dev] [RFC 00/10] virtio patches

2014-08-25 Thread Stephen Hemminger
These are untested patches to merge functionality from Brocade/vyatta DPDK virtio driver back into the Intel DPDK 1.7 driver. Use them and merge them if you want. But test first, these are compile tested only.

[dpdk-dev] [PATCH 4/5] virtio: New API to enable/disable multicast and promisc mode

2014-08-25 Thread Stephen Hemminger
On Tue, 26 Aug 2014 01:05:16 + "Ouyang, Changchun" wrote: > Hi Stephen, > > My response below. > > Thanks > Changchun > > > > -Original Message- > > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > > Sent: Tuesday, August 26, 2014 8:13 AM > > To: Ouyang, Changchu

[dpdk-dev] testpmd: not seeing any traffic on 1g (pair) or 10g pair

2014-08-25 Thread Zhou, Danny
The .log below shows your two 10G ports link are up. Which CPU are you using now and how many processor sockets do you have? If you used a platform with two processor sockets, make sure to use correct core mask to specify cores rx/tx packets from 10G NIC connecting to local socket. For you cas

[dpdk-dev] [RFC] PCI config access for drivers

2014-08-25 Thread Stephen Hemminger
Some drivers need ability to access PCI config (for example for power management). This adds an abstraction to do this; only implemented on Linux, but should be possible on BSD. Signed-off-by: Stephen Hemminger --- a/lib/librte_eal/common/include/rte_pci.h 2014-06-24 09:20:05.651993525 -0700

[dpdk-dev] [RFT] vmxnet3 testing needed

2014-08-25 Thread Stephen Hemminger
I have 7 patches for vmxnet3 but don't have time/infrastructure to test them before 1.7.1 freeze this Friday. Anybody want to give them a working over?

[dpdk-dev] testpmd: not seeing any traffic on 1g (pair) or 10g pair

2014-08-25 Thread Jayakumar, Muthurajan
Hi, Can you please run the following command with loopback cable between the ports build/app/testpmd -c7 -n3 -- -i --nb-cores=2 --nb-ports=2 Thanks, From: Al Patel [mailto:alps@gmail.com] Sent: Monday, August 25, 2014 9:36 AM To: Jayakumar, Muthurajan Cc: dev at dpdk.org Subject: Re: [dpdk-dev

[dpdk-dev] [PATCH] vmxnet3: fix crash on stop

2014-08-25 Thread Stephen Hemminger
The cmd_ring_release can be called twice if queue has already been released. This cause crash on shutdown. Signed-off-by: Stephen Hemminger --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c 2014-08-25 17:39:04.544119911 -0700 +++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c 2014-08-25 17:39:04.54

[dpdk-dev] [PATCH] vmxnet3: initialize receive mode correctly

2014-08-25 Thread Stephen Hemminger
On Fri, 01 Aug 2014 16:50:06 +0200 Thomas Monjalon wrote: > 2014-07-25 10:50, Stephen Hemminger: > > The driver must listen to broadcast packets, like other devices. > > Otherwise protocols like ARP won't work! > > > > Signed-off-by: Stephen Hemminger > > > - vmxnet3_dev_set_rxmode(hw, VMXNE

[dpdk-dev] [PATCH v3] virtio: Support mergeable buffer in virtio pmd

2014-08-25 Thread Thomas Monjalon
2014-08-14 16:54, Ouyang Changchun: > v3 change: > - Investigate the comments from Huawei and fix one potential issue of wrong > offset to > the number of descriptor in buffer; also fix other tiny comments. > > v2 change: > - Resolve conflicts with the tip code; > - And resolve 2 issues: >-

[dpdk-dev] Fwd: ixgbe network card has dev_info.max_rx_queues == 0

2014-08-25 Thread Stephen Hemminger
On Mon, 25 Aug 2014 13:41:34 +0400 Sergey Mironov wrote: > Hi. I've found more data on this issue. My machine (CB-8970) is > equipped with two ixgbe and six e1000 ports + one more e1000 port as > management interface. > I ask the DPDK to allocate 3 TX queues and 3 RX queues for each of 8 > workin

[dpdk-dev] [PATCH 4/5] virtio: New API to enable/disable multicast and promisc mode

2014-08-25 Thread Stephen Hemminger
On Mon, 25 Aug 2014 10:09:31 +0800 Ouyang Changchun wrote: > This patch adds new API in virtio for supporting promiscuous and allmulticast > enabling and disabling. > > Signed-off-by: Changchun Ouyang > Acked-by: Huawei Xie > Acked-by: Cunming Liang > > --- > lib/librte_pmd_virtio/virtio_e

[dpdk-dev] [PATCH] examples/vhost: Support jumbo frame in user space vhost

2014-08-25 Thread Thomas Monjalon
> This patch support mergeable RX feature and thus support jumbo frame RX and TX > in user space vhost(as virtio backend). > > On RX, it secures enough room from vring to accommodate one complete scattered > packet which is received by PMD from physical port, and then copy data from > mbuf to vri

[dpdk-dev] [PATCH 0/4] RX/TX queue start/stop enhancement

2014-08-25 Thread Thomas Monjalon
> This patch mainly includes 2 changes. One is in testpmd to add command > testing specific RX/TX queue start/stop in Port X. Another change is in > i40e, which implemented rx/tx_queue_start/stop in both PF and VF driver. > In the meanwhile, support field start_rx_per_q in i40e_dev_rx_queue_setup >

[dpdk-dev] [PATCHv3] librte_acl make it build/work for 'default' target

2014-08-25 Thread Ananyev, Konstantin
Hi Neil, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Thursday, August 21, 2014 9:15 PM > To: dev at dpdk.org > Cc: Ananyev, Konstantin; thomas.monjalon at 6wind.com; Neil Horman > Subject: [PATCHv3] librte_acl make it build/work for 'default' target >

[dpdk-dev] testpmd: not seeing any traffic on 1g (pair) or 10g pair

2014-08-25 Thread Jayakumar, Muthurajan
Can you please do the following steps as in Quick start guide http://dpdk.org/doc/quick-start Thanks, Extract sources. tar xf dpdk.tar.gz cd dpdk Build libraries and kernel module (Linux headers are needed). make config T=x86_64-native-linuxapp-gcc make The next steps must be done as root. Load

[dpdk-dev] [PATCH] i40e: Enable multicast promiscuous mode when promiscuous mode enabled for i40e driver

2014-08-25 Thread Thomas Monjalon
> > IPv6 will run NDP with multicast packets, but multicast packets will be > > filtered > > by i40e driver by default. So we need to enable multicast when promiscuous > > mode is on, or IPv6 will fail on these cards when running testpmd and kni > > app. > > > > Signed-off-by: Ding Heng > > Re

[dpdk-dev] [PATCH v2] i40e: support autoneg or force link speed

2014-08-25 Thread Thomas Monjalon
> - i40e force link up/down > - i40e autoneg/force speed > > v2, fix warnning complain on gcc 4.6.3 > > Signed-off-by: Cunming Liang > Acked-by: Helin Zhang > Acked-by: Chen Jing D(Mark) > Tested-by: Xu HuilongX Applied for version 1.7.1. Thanks -- Thomas

[dpdk-dev] [PATCH] i40e: support xen domain0

2014-08-25 Thread Thomas Monjalon
> > i40e was failing to run in XEN domain0, as the physical memory for adminq > > DMA should be allocated and translated in a different way for XEN domain0. > > So > > rte_memzone_reserve_bounded() should be used for DMA memory allocation, > > and rte_mem_phy2mch() should be used for DMA memory add

[dpdk-dev] [PATCH 5/5] app/test: allow to create packets in different sizes

2014-08-25 Thread Cunming Liang
adding support to allow packet burst generator to create packets of differenct sizes Signed-off-by: Cunming Liang Acked-by: Declan Doherty --- app/test/packet_burst_generator.c | 26 +- app/test/packet_burst_generator.h | 11 --- app/test/test_link_bonding.c

[dpdk-dev] [PATCH 4/5] app/test: add unit test to measure RX burst cycles

2014-08-25 Thread Cunming Liang
Signed-off-by: Cunming Liang --- app/test/commands.c | 43 +- app/test/test.h | 1 + app/test/test_pmd_perf.c | 214 +++ 3 files changed, 237 insertions(+), 21 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.

[dpdk-dev] [PATCH 3/5] ixgbe/vpmd: add fix to store unaligned mbuf point array

2014-08-25 Thread Cunming Liang
Signed-off-by: Cunming Liang Acked-by: Bruce Richardson --- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c index fe39ca2..92e07de 100644 --- a/lib/librte

[dpdk-dev] [PATCH 2/5] app/test: measure standalone rx or tx cycles/packet

2014-08-25 Thread Cunming Liang
Signed-off-by: Cunming Liang Acked-by: Bruce Richardson --- app/test/commands.c | 38 ++ app/test/test.h | 1 + app/test/test_pmd_perf.c | 175 +++ 3 files changed, 185 insertions(+), 29 deletions(-) diff --git a/app/test/com

[dpdk-dev] [PATCH 1/5] app/test: unit test for rx and tx cycles/packet

2014-08-25 Thread Cunming Liang
Signed-off-by: Cunming Liang Acked-by: Bruce Richardson --- app/test/Makefile | 1 + app/test/commands.c | 41 +++ app/test/packet_burst_generator.c | 4 +- app/test/test.h | 6 + app/test/test_pmd_perf.c| 620 ++

[dpdk-dev] [PATCH 0/5] app/test: unit test to measure cycles per packet

2014-08-25 Thread Cunming Liang
It provides unit test to measure cycles/packet in NIC loopback mode. It simply gives the average cycles of IO used per packet without test equipment. When doing the test, make sure the link is UP. There's two stream control mode support, one is continues, another is burst. The former continues to

[dpdk-dev] Fwd: ixgbe network card has dev_info.max_rx_queues == 0

2014-08-25 Thread Sergey Mironov
Forgot to CC to all -- Forwarded message -- From: Sergey Mironov Date: 2014-08-25 13:40 GMT+04:00 Subject: Re: [dpdk-dev] ixgbe network card has dev_info.max_rx_queues == 0 To: Alex Markuze Hi. I've found more data on this issue. My machine (CB-8970) is equipped with two ixgbe

[dpdk-dev] testpmd: not seeing any traffic on 1g (pair) or 10g pair

2014-08-25 Thread Al Patel
HI Jayakumar, I did. I don' that unbind script in my version (I am using 1.6) root at fe-ucs48:~/dpdk-1.6.0r1# ./tools/pci_unbind.py --status Network devices using IGB_UIO driver :0e:00.0 '82599EB 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio unused=

[dpdk-dev] testpmd: not seeing any traffic on 1g (pair) or 10g pair

2014-08-25 Thread Al Patel
Hi, I am doing a basic test with testpmd per the getting started page. I connected two 1g in back to back mode and executed: sudo ./build/app/testpmd -c 0xF -n 4 -- -i --portmask=0x2 --nb-cores=2 start (and start tx_first) stop I see 0 counters for rx/tx. I removed the two 1g from uio driver

[dpdk-dev] PDF documents with distiller?

2014-08-25 Thread Mika Niemi K
Hi, The PDF docs for 1.7.0 were generated differently than before, causing all figures to be changed to low-resolution bitmaps. Figure 2 in the Programming Guide also has now unreadable text. Is it possible to get the PDF docs for 1.7.x generated like they were previously, using distiller? Mik

[dpdk-dev] [PATCH v2] i40e: support autoneg or force link speed

2014-08-25 Thread Cunming Liang
- i40e force link up/down - i40e autoneg/force speed v2, fix warnning complain on gcc 4.6.3 Signed-off-by: Cunming Liang Acked-by: Helin Zhang Acked-by: Chen Jing D(Mark) Tested-by: Xu HuilongX --- app/test-pmd/cmdline.c| 17 +++-- lib/librte_pmd_i40e/i40e_ethdev.c | 141 +

[dpdk-dev] [PATCH 5/5] examples/vmdq: set default value to rx mode

2014-08-25 Thread Ouyang Changchun
This patch specifies rx_mode as 0 for 2 samples: vmdq and vhost-xen because the multicast feature is not available currently for both samples. Signed-off-by: Changchun Ouyang Acked-by: Huawei Xie Acked-by: Cunming Liang --- examples/vhost_xen/main.c | 1 + examples/vmdq/main.c | 1 + 2 f

[dpdk-dev] [PATCH 4/5] virtio: New API to enable/disable multicast and promisc mode

2014-08-25 Thread Ouyang Changchun
This patch adds new API in virtio for supporting promiscuous and allmulticast enabling and disabling. Signed-off-by: Changchun Ouyang Acked-by: Huawei Xie Acked-by: Cunming Liang --- lib/librte_pmd_virtio/virtio_ethdev.c | 98 ++- 1 file changed, 97 insertions

[dpdk-dev] [PATCH 3/5] examples/vhost: enable promisc mode and config VMDQ offload register for multicast feature

2014-08-25 Thread Ouyang Changchun
This patch is to let vhost receive and forward multicast and broadcast packets, add promiscuous option into command line; and set VMDQ RX mode as: ETH_VMDQ_ACCEPT_BROADCAST|ETH_VMDQ_ACCEPT_MULTICAST if promisc mode is on. Signed-off-by: Changchun Ouyang Acked-by: Huawei Xie Acked-by: Cunming Lia

[dpdk-dev] [PATCH 2/5] e1000: config VMDQ offload register to receive multicast packet

2014-08-25 Thread Ouyang Changchun
This patch set VM offload register according to VMDQ config for e1000 PMD to support multicast and broadcast packets. Signed-off-by: Changchun Ouyang Acked-by: Huawei Xie Acked-by: Cunming Liang --- lib/librte_pmd_e1000/igb_rxtx.c | 20 1 file changed, 20 insertions(+) d

[dpdk-dev] [PATCH 1/5] ethdev: Add new config field to config VMDQ offload register

2014-08-25 Thread Ouyang Changchun
This patch adds new field of rx mode in VMDQ config; and set the register PFVML2FLT for IXGBE PMD, this makes VMDQ receive multicast and broadcast packets. Signed-off-by: Changchun Ouyang Acked-by: Huawei Xie Acked-by: Cunming Liang --- lib/librte_ether/rte_ethdev.h | 1 + lib/librte_pm

[dpdk-dev] [PATCH 0/5] Support virtio multicast feature

2014-08-25 Thread Ouyang Changchun
This patch series support multicast feature in virtio and vhost. The vhost backend enables the promiscuous mode and config ETH_VMDQ_ACCEPT_BROADCAST and ETH_VMDQ_ACCEPT_MULTICAST in VMDQ offload register to receive the multicast and broadcast packets. The virtio frontend provides the functionalit