[dpdk-dev] i40e driver not receiving QINQ packets

2016-01-25 Thread Karthick, A.R.
Hi, After having gone past the dmar errors pertaining to i40e mentioned earlier, I am now hitting another issue where i40e driver is not receiving double tagged (QINQ) frames. I see the code does configure qinq during initialization successfully (i40e_config_qinq) but for some reason, the rx

[dpdk-dev] which driver to bind for the NIC interfaces

2016-01-25 Thread Nagaraj Trivedi
Hi all, in the Getting Started Guide for Linux, Release 2.2.0 it is mentioned that we need to bind the ports to uio_pci_generic, igb_uio or vfio-pci. I would like to know exactly among uio_pci_generic, igb_uio or vfio-pci to which one I need to bind the port. Thanks & Regards Nagaraj Trivedi

[dpdk-dev] [PATCH v6 08/11] eal: pci: introduce RTE_KDRV_VFIO_NOIOMMUi driver mode

2016-01-25 Thread Thomas Monjalon
2016-01-21 22:47, Santosh Shukla: > On Thu, Jan 21, 2016 at 8:16 PM, Thomas Monjalon > wrote: > > 2016-01-21 17:34, Santosh Shukla: > >> On Thu, Jan 21, 2016 at 4:58 PM, Thomas Monjalon > >> wrote: > >> > 2016-01-21 16:43, Santosh Shukla: > >> >> David Marchand wrote: > >> >> > This is a mode (s

[dpdk-dev] DPDK mbuf pool in SR-IOV env and one RX/TX queue

2016-01-25 Thread Saurabh Mishra
Hi Bruce -- >The sharing of the mbuf pool is not an issue, but sharing of rx/tx queues is. >The ethdev queues are not multi-thread safe, so to share a queue between processes >or threads, you need to put in locks or other access control mechanisms. [This >also implies a performance hit due to the

[dpdk-dev] [PATCH 3/3] doc: update release note for fm10k FTAG support

2016-01-25 Thread Wang Xiao W
Update the release note. Signed-off-by: Wang Xiao W --- doc/guides/rel_notes/release_2_3.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 99de186..2c8b6f9 100644 --- a/doc/guides/rel_notes/release_2_3.rst +

[dpdk-dev] [PATCH 2/3] doc: add introduction for fm10k FTAG based forwarding

2016-01-25 Thread Wang Xiao W
Add a brief introduction on FTAG, describe what's FTAG and how it works in forwarding. Signed-off-by: Wang Xiao W --- doc/guides/nics/fm10k.rst | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/fm10k.rst b/doc/guides/nics/fm10k.rst index 4206b7f.

[dpdk-dev] [PATCH 1/3] fm10k: enable FTAG based forwarding

2016-01-25 Thread Wang Xiao W
This patch enables reading sglort info into mbuf for RX and inserting an FTAG at the beginning of the packet for TX. The vlan_tci_outer field selected from rte_mbuf structure for sglort is not used in fm10k now. In FTAG based forwarding mode, the switch will forward packets according to glort info

[dpdk-dev] [PATCH 0/3] fm10k: enable FTAG based forwarding

2016-01-25 Thread Wang Xiao W
This patch set adds support for FTAG based forwarding in fm10k. This feature is a particularity of fm10k, so I add an introduction for it in fm10k.rst. A FTAG unit test is kept internally for feature testing, it's not included in the patch set due to the particularity. Wang Xiao W (3): fm10k: en

[dpdk-dev] ixgbevf does not recover from pf reset

2016-01-25 Thread David Marchand
Hello Jingjing, On Mon, Jan 25, 2016 at 2:58 AM, Wu, Jingjing wrote: > Hi > > Yes. But just consider about how to use DPDK on eth device. During bring up > we need: > eth_dev_init > rte_pktmbuf_pool_create > rte_eth_dev_configure > rte_eth_rx_queue_setup > rte_eth_tx_queue_setup > rte_eth_dev_st

[dpdk-dev] [PATCH 4/4] app/test-pmd: test tunnel filter for IP in GRE

2016-01-25 Thread Xutao Sun
This patch add some options in tunnel_filter command to test IP in GRE packet classification on i40e. Signed-off-by: Xutao, Sun Signed-off-by: Jijiang Liu --- app/test-pmd/cmdline.c | 26 ++ 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/app/test-pmd/

[dpdk-dev] [PATCH 3/4] driver/i40e: implement tunnel filter for IP in GRE

2016-01-25 Thread Xutao Sun
Signed-off-by: Xutao, Sun Signed-off-by: Jijiang Liu --- drivers/net/i40e/i40e_ethdev.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 1dd1077..25975d2 100644 --- a/drivers/net/i40e/i40e_ethde

[dpdk-dev] [PATCH 2/4] lib/ether: add IP in GRE type

2016-01-25 Thread Xutao Sun
Signed-off-by: Xutao, Sun Signed-off-by: Jijiang Liu --- lib/librte_ether/rte_eth_ctrl.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h index 30cbde7..0e948a1 100644 --- a/lib/librte_ether/rte_eth_ctrl.h

[dpdk-dev] [PATCH 1/4] lib/ether: optimize the 'rte_eth_tunnel_filter_conf' structure

2016-01-25 Thread Xutao Sun
Change the fields of outer_mac and inner_mac from pointer to struct in order to keep the code's readability. Signed-off-by: Jijiang Liu --- app/test-pmd/cmdline.c |6 -- drivers/net/i40e/i40e_ethdev.c | 12 ++-- lib/librte_ether/rte_eth_ctrl.h |4 ++-- 3 files cha

[dpdk-dev] [PATCH 0/4] Add tunnel filter support for IP in GRE on i40e

2016-01-25 Thread Xutao Sun
This patch set adds tunnel filter support for IP in GRE on i40e. Jijiang Liu (4): change the 'rte_eth_tunnel_filter_conf' structure add IP in GRE type in the enum 'rte_eth_tunnel_type' implement cloud filter for IP in GRE on i40e add codes to test tunnel filter for IP in GRE app/test-pmd

[dpdk-dev] [PATCH 2/2] modify action handlers in test_pipeline and ip_pipeline

2016-01-25 Thread Jasvinder Singh
Changes are made to the ports and table action handlers defined in app/test_pipeline and ip_pipeline sample application. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- app/test-pipeline/pipeline_acl.c | 3 +- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH 1/2] librte_pipeline: add support for packet redirection at action handlers

2016-01-25 Thread Jasvinder Singh
Currently, there is no mechanism that allows the pipeline ports (in/out) and table action handlers to override the default forwarding decision (as previously configured per input port or in the table entry). Therefore, new pipeline API functions have been added which allows action handlers to hijac

[dpdk-dev] [PKTGEN] additional terminal IO question

2016-01-25 Thread Matthew Hall
On Mon, Jan 25, 2016 at 10:20:42AM +0100, Andriy Berestovskyy wrote: > Hi Matthew, > Every software has bugs. pktgen is a great tool and we appreciate it as is. > > I would prefer we discuss a patch rather that questioning a > functionality implemented way ago... > > Andriy Sure patches are the

[dpdk-dev] rte_mbuf size for jumbo frame

2016-01-25 Thread Saurabh Mishra
Hi, We wanted to use 10400 bytes size of each rte_mbuf to enable Jumbo frames. Do you guys see any problem with that? Would all the drivers like ixgbe, i40e, vmxnet3, virtio and bnx2x work with larger rte_mbuf size? We would want to avoid detailing with chained mbufs. /Saurabh

[dpdk-dev] [PATCH v5 00/11] Add virtio support for arm/arm64

2016-01-25 Thread Santosh Shukla
Ping? On Tue, Jan 19, 2016 at 5:16 PM, Santosh Shukla wrote: > Hi, > > Patch series uses vfio-noiommu-way to access virtio-net pci interface. > Tested for arm64 thunderX/ x86_64 platform. Patch builds for > x86/i386/arm/armv8/thunderX. Tested with testpmd application. > > Patchset rebased on yuan

[dpdk-dev] [PATCH] eal: add function to check if primary proc alive

2016-01-25 Thread Van Haaren, Harry
> From: Qiu, Michael > Subject: Re: [dpdk-dev] [PATCH] eal: add function to check if primary proc > alive > > So secondary will waste a whole lcore to do such polling? Not really, the secondary process will need some CPU, however it can sleep so it doesn't have to use 100% of it. It shouldn't be

[dpdk-dev] [PATCH] eal: add function to check if primary proc alive

2016-01-25 Thread Van Haaren, Harry
> From: Richardson, Bruce > The details of what the config file is should largely be hidden from the user > IMHO. Agreed, however hiding it totally removes the flexibility of waiting for a primary that is starting with --file-prefix (aka: in a non-default location). Imposing a limit on only monit

[dpdk-dev] [PATCH] vfio/noiommu: Don't use iommu_present() to track fake groups

2016-01-25 Thread Alexey Kardashevskiy
On 01/23/2016 04:23 AM, Alex Williamson wrote: > Using iommu_present() to determine whether an IOMMU group is real or > fake has some problems. First, apparently Power systems don't > register an IOMMU on the device bus, so the groups and containers get > marked as noiommu and then won't bind to t

[dpdk-dev] [PATCH] PCI: ABI change request for adding new field in rte_pci_id structure

2016-01-25 Thread Ziye Yang
From: Ziye The purpose of this patch is used to add a new field "class" in rte_pci_id structure. The new class field includes class_id, subcalss_id, programming interface of a pci device. With this field, we can identify pci device by its class info, which can be more flexible instead of probing

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

2016-01-25 Thread Xie, Huawei
On 1/21/2016 7:09 PM, Tetsuya Mukawa wrote: > +#define PCI_CONFIG_ADDR(_bus, _device, _function, _offset) ( \ > + (1 << 31) | ((_bus) & 0xff) << 16 | ((_device) & 0x1f) << 11 | \ > + ((_function) & 0xf) << 8 | ((_offset) & 0xfc)) (_function) & 0x7 ?

[dpdk-dev] [PKTGEN] additional terminal IO question

2016-01-25 Thread Andriy Berestovskyy
Hi Matthew, Every software has bugs. pktgen is a great tool and we appreciate it as is. I would prefer we discuss a patch rather that questioning a functionality implemented way ago... Andriy On Sat, Jan 23, 2016 at 3:48 AM, Matthew Hall wrote: > On Thu, Jan 21, 2016 at 05:35:00PM +0200, Arnon

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

2016-01-25 Thread Xie, Huawei
On 1/21/2016 7:09 PM, Tetsuya Mukawa wrote: > +static void > +qtest_handle_one_message(struct qtest_session *s, char *buf) > +{ > + int ret; > + > + if (strncmp(buf, interrupt_message, strlen(interrupt_message)) == 0) { > + if (rte_atomic16_read(&s->enable_intr) == 0) > +

[dpdk-dev] [PATCH 1/3] i40e: enable extended tag

2016-01-25 Thread Thomas Monjalon
> From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2015-12-21 10:38, Helin Zhang: > > > PCIe feature of 'Extended Tag' is important for 40G performance. > > > It adds its enabling during each port initialization, to ensure the > > > high performance. > > > > If it's so important, w

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

2016-01-25 Thread Xie, Huawei
On 1/22/2016 6:38 PM, Tetsuya Mukawa wrote: > On 2016/01/22 17:14, Xie, Huawei wrote: >> On 1/21/2016 7:09 PM, Tetsuya Mukawa wrote: >>> virtio: Extend virtio-net PMD to support container environment >>> >>> The patch adds a new virtio-net PMD configuration that allows the PMD to >>> work on host a

[dpdk-dev] [PATCH] lib: remove "extern" keyword for functions from header files

2016-01-25 Thread Ferruh Yigit
Remove "extern" keywords in header files, the ones for function prototypes Signed-off-by: Ferruh Yigit --- lib/librte_eal/common/include/rte_memory.h | 2 +- lib/librte_ether/rte_ethdev.h | 136 ++--- lib/librte_kni/rte_kni.h | 31 ---

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

2016-01-25 Thread Neil Horman
On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: > Current issue: DPDK is not that friendly to container environment usage. > It's because that it pre-alloc resource like cores and hugepages from cmd > line options. So for a DPDK application, it's necessary to check how much > resource

[dpdk-dev] [PATCH] eal: add function to check if primary proc alive

2016-01-25 Thread Qiu, Michael
On 1/20/2016 9:26 PM, Harry van Haaren wrote: > This patch adds a new function to the EAL API: > int rte_eal_primary_proc_alive(const char *path); > > The function indicates if a primary process is alive right now. > This functionality is implemented by testing for a write- > lock on the config fil

[dpdk-dev] [PATCH] eal: add function to check if primary proc alive

2016-01-25 Thread Qiu, Michael
On 1/23/2016 1:38 AM, Richardson, Bruce wrote: > On Thu, Jan 21, 2016 at 09:02:41AM +, Van Haaren, Harry wrote: >>> From: Qiu, Michael >>> Sent: Thursday, January 21, 2016 6:14 AM >>> To: Van Haaren, Harry ; david.marchand at >>> 6wind.com >>> Cc: dev at dpdk.org >>> Subject: Re: [dpdk-dev] [P

[dpdk-dev] [PATCH] i40e: add VEB switching support for i40e

2016-01-25 Thread Xu, Qian Q
I have a quick check, VEB/VEPA/VSI is not i40e's specific, they are IEEE EVB terms. See below. IEEE EVB tutorial: http://www.ieee802.org/802_tutorials/2009-11/evb-tutorial-draft-20091116_v09.pdf Virtual Ethernet Bridge (VEB) - This is an IEEE EVB term. A VEB is a VLAN Bridge internal to Fortv

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

2016-01-25 Thread Jianfeng Tan
Current issue: DPDK is not that friendly to container environment usage. It's because that it pre-alloc resource like cores and hugepages from cmd line options. So for a DPDK application, it's necessary to check how much resource is allocated to a container and then use that as an reference. To ad

[dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message handler for pf

2016-01-25 Thread Wang, Xiao W
Hi Bruce, > -Original Message- > From: Richardson, Bruce > Sent: Saturday, January 23, 2016 5:32 AM > To: Wang, Xiao W > Cc: Chen, Jing D ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 15/16] fm10k: use default mailbox message > handler for pf > > On Thu, Jan 21, 2016 at 06:36:00PM +

[dpdk-dev] ixgbevf does not recover from pf reset

2016-01-25 Thread Wu, Jingjing
Hi Yes. But just consider about how to use DPDK on eth device. During bring up we need: eth_dev_init rte_pktmbuf_pool_create rte_eth_dev_configure rte_eth_rx_queue_setup rte_eth_tx_queue_setup rte_eth_dev_start All above behavior need to be called by application, pmd driver cannot did all the R