[dpdk-dev] Ring PMD: why are stats counters atomic?

2016-08-15 Thread Mauricio Vásquez
Finally I have some time to have a look to it. On Mon, May 16, 2016 at 3:16 PM, Bruce Richardson wrote: > On Mon, May 16, 2016 at 03:12:10PM +0200, Mauricio V?squez wrote: >> Hello Bruce, >> >> Although having this support does not harm anyone, I am not convinced that >> it is useful, mainly

[dpdk-dev] ipv4 fragmentation bug?

2016-08-15 Thread Александр Киселев
I'am sorry. Looks like having an mtu value multiply of 8 is a good practice. But mtu value 1504 is also widely used in qinq linux interfaces. 2016-08-15 20:30 GMT+03:00 ? ??? : > While playing with function rte_ipv4_fragment_packet I found that it > incorrectly fragments packets. >

[dpdk-dev] ipv4 fragmentation bug?

2016-08-15 Thread Александр Киселев
While playing with function rte_ipv4_fragment_packet I found that it incorrectly fragments packets. For example if the function takes 1200 bytes packet and mtu size 1000 it will produces two fragments. And when those fragments are reassembled back the resulting packet will be 4 bytes shorter than

[dpdk-dev] [PATCH 5/5] bnxt: Update Broadcom PMD driver documentation

2016-08-15 Thread Ajit Khaparde
Update doc/guides/nics/bnxt.rst to indicate that the bnxt PMD driver supports Broadcom NetXtreme-C/NetXtreme-E BCM5730X/BCM5740X family of network controllers and Broadcom StrataGX BCM5871X family of communications processors. Signed-off-by: Ajit Khaparde --- doc/guides/nics/bnxt.rst | 23

[dpdk-dev] [PATCH 4/5] bnxt: Add support for new DIDs

2016-08-15 Thread Ajit Khaparde
More PCI Device IDs for Cumulus, Cumulus+ and Whitney, Whitney+ SKUs. The NPAR model supported by firmware has been altered. It now allocates a unique Device ID for each NPAR partition for each device. In addition, ASIC's that are capable of supporting dual media have a unique DID depending

[dpdk-dev] [PATCH 3/5] bnxt: Add support for new HWRM version

2016-08-15 Thread Ajit Khaparde
Update HWRM specification to 1.3.0 release. Hardware Resource Manager or HWRM in short, is a set of API provided by the firmware running in the ASIC to manage the various resources. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/hsi_struct_def_dpdk.h | 4731 +---

[dpdk-dev] [PATCH 2/5] bnxt: Enable support for NPAR 1.0 feature

2016-08-15 Thread Ajit Khaparde
Adding code to enable support for NIC Partitioning or NPAR 1.0 As a part of NPAR, we don't allow port settings like speed or flow control to be changed. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 4 + drivers/net/bnxt/bnxt_ethdev.c | 13 +-

[dpdk-dev] [PATCH 1/5] bnxt: Add support for Broadcom StrataGX Communication Processors

2016-08-15 Thread Ajit Khaparde
This patch adds support for the Broadcom StrataGX? BCM5871X series of Communucations Processors. These ARM based processors target a broad range of networking applications including virtual CPE (vCPE) and NFV appliances, 10G service routers and gateways, control plane processing for Ethernet

[dpdk-dev] [PATCH 0/5] bnxt patchset

2016-08-15 Thread Ajit Khaparde
Please consider applying the following patches: bnxt: Add support for Broadcom StrataGX Communication Processors bnxt: Enable support for NPAR 1.0 feature bnxt: Add support for new HWRM version bnxt: Add support for new DIDs bnxt: Update Broadcom PMD driver documentation

[dpdk-dev] [dpdk-users] rte_zmalloc() returning non-zeroed memory on FreeBSD

2016-08-15 Thread Harris, James R
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Thursday, August 11, 2016 12:05 AM > To: users at dpdk.org; dev at dpdk.org; Gonzalez Monroy, Sergio; Richardson, > Bruce > Cc: Verkamp, Daniel > Subject: Re: [dpdk-dev] [dpdk-users]

[dpdk-dev] [PATCH] mk: gcc -march support for intel processors code names

2016-08-15 Thread Reshma Pattan
The GCC 4.9 -march option supports the intel code names for processors, for example -march=silvermont, -march=broadwell. The RTE_MACHINE config flag can be used to pass code name to the compiler as -march flag. Also old gcc versions compatibility code for the intel platform is removed from

[dpdk-dev] [PATCH] vhost: add back support for concurrent enqueue

2016-08-15 Thread Rich Lane
Concurrent enqueue is an important performance optimization when the number of cores used for switching is different than the number of vhost queues. I've observed a 20% performance improvement compared to a strategy that binds queues to cores. The atomic cmpset is only executed when the

[dpdk-dev] [PATCH] contigmem: zero all pages during mmap

2016-08-15 Thread Jim Harris
On Linux, all huge pages are zeroed by the kernel before first access by the DPDK application. But on FreeBSD, the contigmem driver would only zero the contiguous memory regions during initial driver load. DPDK commit b78c91751 eliminated the explicit memset() operation for rte_zmalloc(), which