[dpdk-dev] [PATCH v3] i40e: fix vlan filtering

2016-02-05 Thread Zhang, Helin
> -Original Message- > From: Julien Meunier [mailto:julien.meunier at 6wind.com] > Sent: Thursday, February 4, 2016 7:02 PM > To: Zhang, Helin > Cc: dev at dpdk.org > Subject: [PATCH v3] i40e: fix vlan filtering > > VLAN filtering was always performed, even if hw_vlan_filter was disable

[dpdk-dev] [PATCH] i40e: fix the issue of port initialization failure

2016-02-05 Thread Zhang, Helin
> -Original Message- > From: Zhang, Helin > Sent: Wednesday, December 23, 2015 1:33 PM > To: dev at dpdk.org > Cc: Xu, Qian Q; Zhang, Helin > Subject: [PATCH] i40e: fix the issue of port initialization failure > > Workaround for the issue of cannot processing adminq commands during > ini

[dpdk-dev] [PATCH] i40e: fix the issue of port initialization failure

2016-02-05 Thread Zhang, Helin
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Thursday, February 4, 2016 4:44 PM > To: Zhang, Helin > Cc: dev at dpdk.org; Richardson, Bruce > Subject: Re: [dpdk-dev] [PATCH] i40e: fix the issue of port initialization > failure > > 2016-02-

[dpdk-dev] [PATCH v3] fm10k: fix switch manager high CPU usage

2016-02-05 Thread Shaopeng He
fm10k switch core uses source MAC + VID + SGLORT to do look up in MAC table. If no match, an exception interrupt will be sent to the switch manager. Too much of this kind of exception interrupts cause switch manager side high CPU usage. To reproduce this issue, one DPDK testpmd runs on a server wit

[dpdk-dev] [PATCH v7 0/4] add virtio offload support in us-vhost

2016-02-05 Thread Jijiang Liu
Adds virtio offload support in us-vhost. The patch set adds the feature negotiation of checksum and TSO between us-vhost and vanilla Linux virtio guest, and add these offload features support in the vhost lib, and change vhost sample to test them. In short, this patch set supports the followi

[dpdk-dev] [PATCH v7 2/4] vhost/lib: add guest offload setting

2016-02-05 Thread Jijiang Liu
Add guest offload setting in vhost lib. Virtio 1.0 spec (5.1.6.4 Processing of Incoming Packets) says: 1. If the VIRTIO_NET_F_GUEST_CSUM feature was negotiated, the VIRTIO_NET_HDR_F_NEEDS_CSUM bit in flags can be set: if so, the packet checksum at offset csum_offset from csum_st

[dpdk-dev] [PATCH v7 3/4] sample/vhost: remove the ipv4_hdr structure defination

2016-02-05 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 15 +-- 1 files changed, 1 ins

[dpdk-dev] [PATCH v7 4/4] example/vhost: add virtio offload test in vhost sample

2016-02-05 Thread Jijiang Liu
Change the codes in vhost sample to test virtio offload feature. These changes include, 1. add two test options: tx-csum and tso. 2. add virtio_tx_offload() function to test vhost TX offload feature for VM to NIC case; however, for VM to VM case, it doesn't need to call this function, the

[dpdk-dev] [PATCH v7 1/4] vhost/lib: add vhost TX offload capabilities in vhost lib

2016-02-05 Thread Jijiang Liu
Add vhost TX offload (CSUM and TSO) support capabilities in vhost lib. In order to support these features, and the following changes are added, 1. Extend 'VHOST_SUPPORTED_FEATURES' macro to add the offload features negotiation. 2. Dequeue TX offload: convert the fileds in virtio_net_hdr to th

[dpdk-dev] [PATCH v4] testpmd: fix wrong prompt in tx_vlan set command handler

2016-02-05 Thread Wang Xiao W
When using testpmd, sometimes we forget the right order of port_id and vid in "tx_vlan set (port_id) vlan_id[, vlan_id_outer]\n" command, and input "tx_vlan set 51 0", we'll get a strange prompt saying "Error, as QinQ has been enabled.". In cmd_tx_vlan_set_parsed function, the first thing we do is

[dpdk-dev] [PATCH v6 0/6] interrupt mode for fm10k

2016-02-05 Thread Shaopeng He
This patch series adds interrupt mode support for fm10k, contains four major parts: 1. implement rx_descriptor_done function in fm10k 2. add rx interrupt support in fm10k PF and VF 3. make sure default VID available in dev_init in fm10k 4. fix a memory leak for non-ip packet in l3fwd-power, whi

[dpdk-dev] [PATCH v6 1/6] fm10k: implement rx_descriptor_done function

2016-02-05 Thread Shaopeng He
rx_descriptor_done is used by interrupt mode example application (l3fwd-power) to check rxd DD bit to decide the RX trend, then l3fwd-power will adjust the cpu frequency according to the result. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v5 change: - fix a wrong

[dpdk-dev] [PATCH v6 2/6] fm10k: setup rx queue interrupts for PF and VF

2016-02-05 Thread Shaopeng He
In interrupt mode, each rx queue can have one interrupt to notify the up layer application when packets are available in that queue. Some queues also can share one interrupt. Currently, fm10k needs one separate interrupt for mailbox. So, only those drivers which support multiple interrupt vectors e

[dpdk-dev] [PATCH v6 5/6] fm10k: make sure default VID available in dev_init

2016-02-05 Thread Shaopeng He
When PF establishes a connection with Switch Manager, it receives a logic port range from SM, and registers certain logic ports from that range, then a default VID will be send back from SM. This whole transaction needs to be finished in dev_init, otherwise, in dev_start the interrupt setting will

[dpdk-dev] [PATCH v6 3/6] fm10k: remove rx queue interrupts when dev stops

2016-02-05 Thread Shaopeng He
Previous dev_stop function stops the rx/tx queues. This patch adds logic to disable rx queue interrupt, clean the datapath event and queue/vec map. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v5 change: - remove one unnecessary NULL check for rte_free v2 change:

[dpdk-dev] [PATCH v6 4/6] fm10k: add rx queue interrupt en/dis functions

2016-02-05 Thread Shaopeng He
Interrupt mode framework has enable/disable functions for individual rx queue, this patch implements these two functions. Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu --- v2 change: - split one big patch into three smaller ones --- drivers/net/fm10k/fm10k_ethdev.c | 3

[dpdk-dev] [PATCH v6 6/6] l3fwd-power: fix a memory leak for non-ip packet

2016-02-05 Thread Shaopeng He
Previous l3fwd-power only processes IP and IPv6 packet, other packet's mbuf is not released, and causes a memory leak. This patch fixes this issue. Fixes: 3c0184cc ("examples: replace some offload flags with packet type") Signed-off-by: Shaopeng He Acked-by: Jing Chen Acked-by: Michael Qiu ---

[dpdk-dev] [PATCH 2/2 v2] fm10k: update doc for Atwood Channel

2016-02-05 Thread Qiu, Michael
On 2/4/2016 5:05 PM, Thomas Monjalon wrote: > Hi Michael, > > 2016-02-04 16:36, Michael Qiu: >> Atwood Channel is 25GbE NIC and belongs to Intel FM10K family, >> update the doc for it. >> >> Signed-off-by: Michael Qiu >> Acked-by: John McNamara > Next time, it would be better to send the doc chan

[dpdk-dev] [PATCH] ixgbe: fix x550 VF tx issue

2016-02-05 Thread Xu, HuilongX
Test-by: huilong xu Summary: Test four case, and all case passed. Test environment: Host: os: 4.2.3-300.fc23.x86_64 NIC: 03:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection X552/X557-AT 10GBASE-T [8086:15ad] NIC kernel driver: ixgbe 4.2.5 Guest:

[dpdk-dev] [PATCH v7 2/2] vhost: Add VHOST PMD

2016-02-05 Thread Tetsuya Mukawa
On 2016/02/04 20:17, Ferruh Yigit wrote: > On Thu, Feb 04, 2016 at 04:26:31PM +0900, Tetsuya Mukawa wrote: > > Hi Tetsuya, > >> The patch introduces a new PMD. This PMD is implemented as thin wrapper >> of librte_vhost. It means librte_vhost is also needed to compile the PMD. >> The vhost messages

[dpdk-dev] [PATCH v7 2/2] vhost: Add VHOST PMD

2016-02-05 Thread Yuanhan Liu
On Fri, Feb 05, 2016 at 03:28:37PM +0900, Tetsuya Mukawa wrote: > On 2016/02/04 20:17, Ferruh Yigit wrote: > > On Thu, Feb 04, 2016 at 04:26:31PM +0900, Tetsuya Mukawa wrote: > > > > Hi Tetsuya, > > > >> The patch introduces a new PMD. This PMD is implemented as thin wrapper > >> of librte_vhost. I

[dpdk-dev] [PATCH v7 2/2] vhost: Add VHOST PMD

2016-02-05 Thread Tetsuya Mukawa
On 2016/02/05 15:35, Yuanhan Liu wrote: > On Fri, Feb 05, 2016 at 03:28:37PM +0900, Tetsuya Mukawa wrote: >> On 2016/02/04 20:17, Ferruh Yigit wrote: >>> On Thu, Feb 04, 2016 at 04:26:31PM +0900, Tetsuya Mukawa wrote: >>> >>> Hi Tetsuya, >>> The patch introduces a new PMD. This PMD is implemen

[dpdk-dev] [PATCH v8 0/5] add virtio offload support in us-vhost

2016-02-05 Thread Jijiang Liu
Adds virtio offload support in us-vhost. The patch set adds the feature negotiation of checksum and TSO between us-vhost and vanilla Linux virtio guest, and add these offload features support in the vhost lib, and change vhost sample to test them. In short, this patch set supports the followi

[dpdk-dev] [PATCH v8 1/5] vhost/lib: add vhost TX offload capabilities in vhost lib

2016-02-05 Thread Jijiang Liu
Add vhost TX offload (CSUM and TSO) support capabilities in vhost lib. In order to support these features, and the following changes are added, 1. Extend 'VHOST_SUPPORTED_FEATURES' macro to add the offload features negotiation. 2. Dequeue TX offload: convert the fileds in virtio_net_hdr to th

[dpdk-dev] [PATCH v8 3/5] sample/vhost: remove the ipv4_hdr structure defination

2016-02-05 Thread Jijiang Liu
Remove the ipv4_hdr structure defination in vhost sample. The same structure has already defined in the rte_ip.h file, so we remove the defination from the sample, and include that header file. Signed-off-by: Jijiang Liu Acked-by: Yuanhan Liu --- examples/vhost/main.c | 15 +--

[dpdk-dev] [PATCH v8 2/5] vhost/lib: add guest offload setting

2016-02-05 Thread Jijiang Liu
Add guest offload setting in vhost lib. Virtio 1.0 spec (5.1.6.4 Processing of Incoming Packets) says: 1. If the VIRTIO_NET_F_GUEST_CSUM feature was negotiated, the VIRTIO_NET_HDR_F_NEEDS_CSUM bit in flags can be set: if so, the packet checksum at offset csum_offset from csum_st

[dpdk-dev] [PATCH v8 4/5] example/vhost: add virtio offload test in vhost sample

2016-02-05 Thread Jijiang Liu
Change the codes in vhost sample to test virtio offload feature. These changes include, 1. add two test options: tx-csum and tso. 2. add virtio_tx_offload() function to test vhost TX offload feature for VM to NIC case; however, for VM to VM case, it doesn't need to call this function, the

[dpdk-dev] [PATCH v8 5/5] doc/rel_notes: add virtio offload feature in new feature section

2016-02-05 Thread Jijiang Liu
Update new feature section with virtio offload feature description. Signed-off-by: Jijiang Liu --- doc/guides/rel_notes/release_2_3.rst |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index

[dpdk-dev] [PATCH 1/5] app/test-pmd: fix nb_rxq and np_txq checks

2016-02-05 Thread De Lara Guarch, Pablo
Hi Reshma, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Reshma Pattan > Sent: Friday, January 29, 2016 1:11 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/5] app/test-pmd: fix nb_rxq and np_txq checks > > Made testpmd changes to validate nb_rxq/n

[dpdk-dev] [PATCH v4] testpmd: fix wrong prompt in tx_vlan set command handler

2016-02-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wang Xiao W > Sent: Friday, February 05, 2016 4:50 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v4] testpmd: fix wrong prompt in tx_vlan set > command handler > > When using testpmd, sometimes we forg

[dpdk-dev] [PATCH v2] fm10k: enable PCIe port level Loopback Suppression

2016-02-05 Thread Chen, Jing D
Hi, Best Regards, Mark > -Original Message- > From: He, Shaopeng > Sent: Thursday, February 04, 2016 8:43 PM > To: dev at dpdk.org > Cc: Chen, Jing D; Wang, Xiao W; He, Shaopeng > Subject: [PATCH v2] fm10k: enable PCIe port level Loopback Suppression > > In FM10K, a single PCIe port ca

[dpdk-dev] [PATCH v2] fm10k: fix switch manager high CPU usage

2016-02-05 Thread Chen, Jing D
Hi, Best Regards, Mark > -Original Message- > From: He, Shaopeng > Sent: Thursday, February 04, 2016 8:45 PM > To: dev at dpdk.org > Cc: Chen, Jing D; Wang, Xiao W; He, Shaopeng > Subject: [PATCH v2] fm10k: fix switch manager high CPU usage > > fm10k switch core uses source MAC + VID +

[dpdk-dev] [PATCH 1/5] mempool: add external mempool manager support

2016-02-05 Thread Olivier MATZ
Hi David, On 02/04/2016 06:34 PM, Hunt, David wrote: > On 04/02/2016 14:52, Olivier MATZ wrote: >> Hi David, > > [snip] > > Just a comment on one of your comments: > >> Why not using a similar mechanism than what we have for PMDs? >> >> void rte_eal_driver_register(struct rte_driver *drive

[dpdk-dev] [PATCH v3 0/3] fix RTE_PROC_PRIMARY_OR_ERR_RET RTE_PROC_PRIMARY_OR_RET

2016-02-05 Thread Thomas Monjalon
Hi, 2016-01-05 16:34, Reshma Pattan: > From: reshmapa > > Patches 1 and 2 removes RTE_PROC_PRIMARY_OR_ERR_RET and > RTE_PROC_PRIMARY_OR_RET macro usage from rte_ether and rte_cryptodev > libraries to allow API > access to secondary process. I don't understand the use case. What is the role of

[dpdk-dev] [PATCH 5/5] mempool: allow rte_pktmbuf_pool_create switch between memool handlers

2016-02-05 Thread Olivier MATZ
Hi David, On 01/26/2016 06:25 PM, David Hunt wrote: > if the user wants to have rte_pktmbuf_pool_create() use an external mempool > handler, they simply define MEMPOOL_HANDLER_NAME to be the name of the > mempool handler they wish to use. May move this to config I agree it could move to configura

[dpdk-dev] [PATCH v8 0/2] Add VHOST PMD

2016-02-05 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. PATCH v8 changes: - Manage ether devices list instead of internal structures list. - Remove needless NULL checking. - Replace "pthread_exit" to "return NULL". - Replace rte_panic to RTE_LOG, also add error

[dpdk-dev] [PATCH v8 1/2] ethdev: Add a new event type to notify a queue state changed event

2016-02-05 Thread Tetsuya Mukawa
This patch adds a below event type. - RTE_ETH_EVENT_QUEUE_STATE_CHANGE This event is used for notifying a queue state changed event. Signed-off-by: Tetsuya Mukawa Acked-by: Ferruh Yigit --- lib/librte_ether/rte_ethdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_ether/rte

[dpdk-dev] [PATCH v8 2/2] vhost: Add VHOST PMD

2016-02-05 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. It means librte_vhost is also needed to compile the PMD. The vhost messages will be handled only when a port is started. So start a port first, then invoke QEMU. The PMD has 2 parameters. - iface: The parame

[dpdk-dev] [PATCH 0/3] fix compilation of examples for ARM

2016-02-05 Thread Thomas Monjalon
Thomas Monjalon (3): examples/distributor: fix build for non-x86 arch examples/ethtool: fix build examples: fix build dependencies examples/Makefile | 12 examples/distributor/main.c | 8 examples/ethtool/ethtool-app/main.c | 2 +- 3 files c

[dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch

2016-02-05 Thread Thomas Monjalon
_mm_prefetch is defined only in x86 compilers. rte_prefetch functions are defined in EAL for each arch, and must be preferred over compiler intrinsics. Fixes: 07db4a975094 ("examples/distributor: new sample app") Signed-off-by: Thomas Monjalon --- examples/distributor/main.c | 8 1 fil

[dpdk-dev] [PATCH 2/3] examples/ethtool: fix build

2016-02-05 Thread Thomas Monjalon
When building for ARM, the spinlock structure was not found. It appears to be a mismatch with rwlock which is not used in this file. Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application") Signed-off-by: Thomas Monjalon --- examples/ethtool/ethtool-app/main.c | 2 +-

[dpdk-dev] [PATCH 3/3] examples: fix build dependencies

2016-02-05 Thread Thomas Monjalon
When building for ARM some examples were failing to compile because of some dependencies disabled. Declaring these dependencies prevent from trying to compile some not supported examples. Signed-off-by: Thomas Monjalon --- examples/Makefile | 12 1 file changed, 8 insertions(+), 4 d

[dpdk-dev] [PATCH v3 0/3] fix RTE_PROC_PRIMARY_OR_ERR_RET RTE_PROC_PRIMARY_OR_RET

2016-02-05 Thread Pattan, Reshma
Hi Thomas, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, February 5, 2016 9:43 AM > To: Pattan, Reshma > Cc: Ananyev, Konstantin; Doherty, Declan; dev at dpdk.org; Qiu, Michael > Subject: Re: [PATCH v3 0/3] fix RTE_PROC_PRIMARY_OR_ERR_RE

[dpdk-dev] [PATCH v3 0/3] fix RTE_PROC_PRIMARY_OR_ERR_RET RTE_PROC_PRIMARY_OR_RET

2016-02-05 Thread Thomas Monjalon
2016-02-05 14:58, Pattan, Reshma: > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > > 2016-01-05 16:34, Reshma Pattan: > > > From: reshmapa > > > > > > Patches 1 and 2 removes RTE_PROC_PRIMARY_OR_ERR_RET and > > > RTE_PROC_PRIMARY_OR_RET macro usage from rte_ether and rte_cryptodev >

[dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch

2016-02-05 Thread Pattan, Reshma
Hi Thomas, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Friday, February 5, 2016 2:54 PM > To: Richardson, Bruce; Horton, Remy > Cc: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 > ar

[dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch

2016-02-05 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pattan, Reshma > Sent: Friday, February 05, 2016 3:08 PM > To: Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH 1/3] examples/distributor: fix build for > non-x86 arch > > Hi Thomas, >

[dpdk-dev] [PATCH 1/3] examples/distributor: fix build for non-x86 arch

2016-02-05 Thread Thomas Monjalon
2016-02-05 15:15, Ananyev, Konstantin: > From: Pattan, Reshma > > From: Thomas Monjalon > > > _mm_prefetch is defined only in x86 compilers. > > > rte_prefetch functions are defined in EAL for each arch, and must be > > > preferred > > > over compiler intrinsics. [...] > > > - _mm_

[dpdk-dev] Fw: RE: DPDK vhostuser with vxlan# Does issue with igb_uio in ovs+dpdk setup

2016-02-05 Thread Abhijeet Karve
Dear Sugesh, Przemek, Thanks for your extended support. We are done with setting up Open-vSwitch netdev-dpdk with vhost-user in openstack environment. Following changes what we made in our infrastructure. 1. As Vxlan was not been supported in our external bare metal equipment(Gateways), So we

[dpdk-dev] DPDK Community Call - Linux Foundation

2016-02-05 Thread Bob Monkman
Thanks very much for the minutes. Can we get Laura's draft deck re: budget and tradeoffs/options? Robert (Bob) Monkman Enterprise Segment Marketing Manager 150 Rose Orchard Way San Jose, Ca 95134 M: +1.510.676.5490 -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of

[dpdk-dev] [PATCH v6 0/6] interrupt mode for fm10k

2016-02-05 Thread Bruce Richardson
On Fri, Feb 05, 2016 at 12:57:44PM +0800, Shaopeng He wrote: > This patch series adds interrupt mode support for fm10k, > contains four major parts: > > 1. implement rx_descriptor_done function in fm10k > 2. add rx interrupt support in fm10k PF and VF > 3. make sure default VID available in dev_in

[dpdk-dev] [PATCH] Adding maintainers for Intel QAT PMD

2016-02-05 Thread Fiona Trahe
Signed-off-by: Fiona Trahe --- MAINTAINERS |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index b90aeea..748197f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -353,6 +353,9 @@ M: Declan Doherty F: drivers/crypto/aesni_mb/ Intel QuickAssist

[dpdk-dev] [PATCH 0/3] fix C++ includes

2016-02-05 Thread Thomas Monjalon
When trying to build a C++ application, some error appears from DPDK headers. 2 libraries are not fixed in this series: - cmdline - vhost which includes some not compliant Linux virtio headers Thomas Monjalon (3): eal: fix keep alive header for C++ hash: fix header for C++ mbuf_offload: fix

[dpdk-dev] [PATCH 1/3] eal: fix keep alive header for C++

2016-02-05 Thread Thomas Monjalon
When built in a C++ application, the keepalive include fails: rte_keepalive.h:142:41: error: ?ALIVE? was not declared in this scope keepcfg->state_flags[rte_lcore_id()] = ALIVE; ^ Fixes: 75583b0d1efd ("eal: add keep alive monitoring") Signed-off-by: Tho

[dpdk-dev] [PATCH 2/3] hash: fix header for C++

2016-02-05 Thread Thomas Monjalon
When built in a C++ application, the jhash include fails: rte_jhash.h:123:22: error: invalid conversion from ?const void*? to ?const uint32_t*? [-fpermissive] const uint32_t *k = key; ^ Fixes: 8718219a8737 ("hash: add new jhash functions") Signed-off-by: Thomas Monjalon

[dpdk-dev] [PATCH 3/3] mbuf_offload: fix header for C++

2016-02-05 Thread Thomas Monjalon
When built in a C++ application, the include fails for 2 reasons: rte_mbuf_offload.h:128:24: error: invalid conversion from ?void*? to ?rte_pktmbuf_offload_pool_private*? [-fpermissive] rte_mempool_get_priv(mpool); ^ rte_mbuf_offload.h:304:1: error: expected declarati

[dpdk-dev] DPDK Community Call - Linux Foundation

2016-02-05 Thread O'Driscoll, Tim
> -Original Message- > From: Bob Monkman [mailto:Bob.Monkman at arm.com] > Sent: Friday, February 5, 2016 4:30 PM > To: O'Driscoll, Tim; dev at dpdk.org; Laura Kempke; Michael Dolan > Subject: RE: DPDK Community Call - Linux Foundation > > Thanks very much for the minutes. Can we get Laur

[dpdk-dev] DPDK Community Call - Linux Foundation

2016-02-05 Thread Bob Monkman
Right. Yes, I can access it just fine. Thx, Robert (Bob) Monkman Enterprise Segment Marketing Manager 150 Rose Orchard Way San Jose, Ca 95134 M: +1.510.676.5490 -Original Message- From: O'Driscoll, Tim [mailto:tim.odrisc...@intel.com] Sent: Friday, February 05, 2016 9:09 AM To: Bob Monk

[dpdk-dev] [PATCH 0/4] rework ioport access for virtio

2016-02-05 Thread David Marchand
Introduce a new ioport api in eal to mask all arch / kernel driver specifics. - rte_eal_pci_ioport_map is responsible for initialising an rte_pci_ioport object that is used in subsequent calls, this function must be tweaked per architecture and per kernel driver, rte_ioport_t type is architect

[dpdk-dev] [PATCH 1/4] virtio/bsd: fix typo

2016-02-05 Thread David Marchand
Fixes: c52afa68d763 ("virtio: move left PCI stuff in the right file") Signed-off-by: David Marchand --- drivers/net/virtio/virtio_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c index 4e9928a..cd8b0ae 1006

[dpdk-dev] [PATCH 2/4] virtio: fix incorrect check when mapping pci resources

2016-02-05 Thread David Marchand
According to the api, rte_eal_pci_map_device is only successful when returning 0. Fixes: 6ba1f63b5ab0 ("virtio: support specification 1.0") Signed-off-by: David Marchand --- drivers/net/virtio/virtio_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/vir

[dpdk-dev] [PATCH 3/4] eal: introduce ioport api

2016-02-05 Thread David Marchand
Most of the code is inspired on virtio driver. rte_ioport_t is a arch-specific structure allocated at rte_pci_ioport_map and release at rte_pci_ioport_unmap. For x86, this is actually just a ioport number, handled by rte_ioport_xx api. Signed-off-by: David Marchand --- lib/librte_eal/bsdapp/eal/

[dpdk-dev] [PATCH 4/4] virtio: use ioport api

2016-02-05 Thread David Marchand
Signed-off-by: David Marchand --- drivers/net/virtio/virtio_pci.c | 339 +++- drivers/net/virtio/virtio_pci.h | 38 + 2 files changed, 55 insertions(+), 322 deletions(-) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c index

[dpdk-dev] [PATCH v6 1/8] eal: pci: add api to rd/wr pci bar region

2016-02-05 Thread David Marchand
On Wed, Feb 3, 2016 at 12:50 PM, Yuanhan Liu wrote: > On Wed, Feb 03, 2016 at 03:20:09PM +0530, Santosh Shukla wrote: >> Also can someone please review rest of series. This patchset going >> through multiple revision, Each revision get one / two comment, It >> would help if I get review comment fo

[dpdk-dev] [PATCH v2 0/4] DPDK polling-mode driver for Amazon Elastic Network Adapters (ENA)

2016-02-05 Thread Jan Medala
Regarding to comments from DPDK community ENA UIO kernel driver was removed, ENA currently depends on igb_uio. Included documentation for Amazon ENA devices. Jan Medala (4): Amazon ENA PCI defines and documentation Amazon ENA communication layer Amazon ENA communication layer for DPDK platf

[dpdk-dev] [PATCH v2 1/4] Amazon ENA PCI defines and documentation

2016-02-05 Thread Jan Medala
Signed-off-by: Evgeny Schemeilin Signed-off-by: Alexander Matushevsky Signed-off-by: Jan Medala Signed-off-by: Jakub Palider --- doc/guides/nics/ena.rst | 238 lib/librte_eal/common/include/rte_pci_dev_ids.h | 16 ++ 2 files changed, 254 insert

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

2016-02-05 Thread Jianfeng Tan
v1->v2: - Rebase on the patchset of virtio 1.0 support. - Fix cannot create non-hugepage memory. - Fix wrong size of memory region when "single-file" is used. - Fix setting of offset in virtqueue to use virtual address. - Fix setting TUNSETVNETHDRSZ in vhost-user's branch. - Add mac option to

[dpdk-dev] [PATCH v2 2/4] Amazon ENA communication layer

2016-02-05 Thread Jan Medala
Low level common abstraction for ENA device communication. Signed-off-by: Netanel Belgazal Signed-off-by: Jan Medala Signed-off-by: Jakub Palider --- drivers/net/ena/base/ena_com.c | 2474 drivers/net/ena/base/ena_com.h | 764 ++

[dpdk-dev] [PATCH v2 1/5] mem: add --single-file to create single mem-backed file

2016-02-05 Thread Jianfeng Tan
Originally, there're two cons in using hugepage: a. needs root privilege to touch /proc/self/pagemap, which is a premise to alllocate physically contiguous memseg; b. possibly too many hugepage file are created, especially used with 2M hugepage. For virtual devices, they don't care about physical-

[dpdk-dev] [PATCH v2 3/4] Amazon ENA communication layer for DPDK platform

2016-02-05 Thread Jan Medala
Implementation of platform specific code for ENA communication layer. Signed-off-by: Evgeny Schemeilin Signed-off-by: Jan Medala Signed-off-by: Jakub Palider --- drivers/net/ena/base/ena_plat_dpdk.h | 211 +++ 1 file changed, 211 insertions(+) create mode 10064

[dpdk-dev] [PATCH v2 2/5] mem: add API to obtain memory-backed file info

2016-02-05 Thread Jianfeng Tan
A new API named rte_eal_get_backfile_info() and a new data struct back_file is added to obstain information of memory- backed file info. Signed-off-by: Huawei Xie Signed-off-by: Jianfeng Tan --- lib/librte_eal/common/include/rte_memory.h | 16 lib/librte_eal/linuxapp/eal/eal_memory

[dpdk-dev] [PATCH v2 4/4] DPDK polling-mode driver for Amazon Elastic Network Adapters (ENA)

2016-02-05 Thread Jan Medala
This is a PMD for the Amazon ethernet ENA family. The driver operates variety of ENA adapters through feature negotiation with the adapter and upgradable commands set. ENA driver handles PCI Physical and Virtual ENA functions. Signed-off-by: Evgeny Schemeilin Signed-off-by: Jan Medala Signed-of

[dpdk-dev] [PATCH v2 3/5] virtio/vdev: add embeded device emulation

2016-02-05 Thread Jianfeng Tan
To implement virtio vdev, we need way to interract with vhost backend. And more importantly, needs way to emulate a device into DPDK. So this patch acts as embedded device emulation. Depends on the type of vhost file: vhost-user is used if the given path points to a unix socket; vhost-net is used

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

2016-02-05 Thread Jianfeng Tan
Add a new virtual device named eth_cvio, it can be used just like eth_ring, eth_null, etc. Configured parameters include: - rx (optional, 1 by default), number of rx, not used for now. - tx (optional, 1 by default), number of tx, not used for now. - cq (optional, 0 by default), if CQ is enab

[dpdk-dev] [PATCH v2 5/5] docs: add release note for virtio for container

2016-02-05 Thread Jianfeng Tan
Signed-off-by: Huawei Xie Signed-off-by: Jianfeng Tan --- doc/guides/rel_notes/release_2_3.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_2_3.rst b/doc/guides/rel_notes/release_2_3.rst index 7945694..1e7d51d 100644 --- a/doc/guides/rel_notes/release_2_3

[dpdk-dev] Future Direction for rte_eth_stats_get()

2016-02-05 Thread David Harton (dharton)
> From: Van Haaren, Harry [mailto:harry.van.haaren at intel.com] > > > From: David Harton > > Subject: RE: [dpdk-dev] Future Direction for rte_eth_stats_get() > > > > Hi folks, > > > > I didn't see any follow up to this response. > > I think you may have missed one: > http://dpdk.org/ml/archives

[dpdk-dev] [PATCH 3/3] mbuf_offload: fix header for C++

2016-02-05 Thread Thomas Monjalon
2016-02-05 18:06, Thomas Monjalon: > When built in a C++ application, the include fails for 2 reasons: > > rte_mbuf_offload.h:128:24: error: > invalid conversion from ?void*? to ?rte_pktmbuf_offload_pool_private*? > [-fpermissive] > rte_mempool_get_priv(mpool); > ^ [..

[dpdk-dev] [PATCH 0/2] clean-up arch config

2016-02-05 Thread Thomas Monjalon
Thomas Monjalon (2): config: remove obsolete machine descriptions config: add a common x86 flag config/common_bsdapp | 20 +--- config/common_linuxapp| 20 +--- config/defconfig_i686-native-linuxapp-gcc | 1

[dpdk-dev] [PATCH 1/2] config: remove obsolete machine descriptions

2016-02-05 Thread Thomas Monjalon
More and more machines and architectures are added without keeping the lists up-to-date. Replace the lists with a pointer to the reference directory. The same kind of pointer is used for the supported compilers and environments. Signed-off-by: Thomas Monjalon --- config/common_bsdapp |

[dpdk-dev] [PATCH 2/2] config: add a common x86 flag

2016-02-05 Thread Thomas Monjalon
Intel Architecture (IA), also called x86, is declined in - i686 - x86_x32 - x86_64 The code common to all of these architectures can now be guarded by a single flag RTE_ARCH_X86. Signed-off-by: Thomas Monjalon --- config/common_bsdapp | 1 + config/common_linuxapp

[dpdk-dev] DPDK i40evf problem in receving packet

2016-02-05 Thread Saurabh Mishra
Hi, I'm seeing two problems: 1) when use our kernel '3.10.88-8.0.0.0.6', we only receive first packet but not subsequent ones at all after that. However, when I use centos7.0, then l2fwd is able to receive all the packets. 2) I've also seen that on centos7.0, symmetric_mp itself is not working.