[dpdk-dev] [PATCH v9 2/2] app/testpmd: add test commands for RSS/FD granularity

2015-11-04 Thread Helin Zhang
Test commands are added to support selecting input set, or adding new input set per different pctype. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 218 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 33

[dpdk-dev] [PATCH v9 1/2] i40e: RSS/FD granularity configuration

2015-11-04 Thread Helin Zhang
The default input set of fields of a received packet are loaded from firmware, which cannot be modified even users want to use different fields for RSS or flow director. Here adds more flexibilities of selecting packet fields for hash calculation or flow director for users. Signed-off-by: Helin

[dpdk-dev] [PATCH v6 0/2] add selecting different GRE key length

2015-11-04 Thread Helin Zhang
By default, only 3 bytes of GRE key will be used for hash or FD calculation. Here adds selecting 3 or 4 bytes of GRE key for those purpose. Note that these patches are based on another patch set of "[PATCH v9 0/2] i40e: RSS/FD granularity configuration". v2 changes: Updated with RSS/FD

[dpdk-dev] [PATCH v6 1/2] i40e: add selecting GRE key length

2015-11-04 Thread Helin Zhang
By default, only first 3 bytes of GRE key will be used for hash or FD calculation. With these changes, it can select 3 or 4 bytes of GRE key for hash or FD calculation. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- doc/guides/rel_notes/release_2_2.rst | 2 +

[dpdk-dev] [PATCH v6 2/2] app/testpmd: add test commands for selecting different GRE key sizes

2015-11-04 Thread Helin Zhang
Test commands are added to support selecting differnt length of GRE key. Signed-off-by: Helin Zhang Signed-off-by: Andrey Chilikin --- app/test-pmd/cmdline.c | 52 + doc/guides/testpmd_app_ug/testpmd_funcs.rst | 11 ++ 2 files changed, 63

[dpdk-dev] [PATCH v9 0/2] i40e: RSS/FD granularity configuration

2015-11-04 Thread Thomas Monjalon
2015-11-04 00:07, Helin Zhang: > The default input set of fields of a received packet are loaded from firmware, > which cannot be modified even users want to use different fields for RSS or > flow director. Here adds more flexibilities of selecting or adding packet > fields for hash calculation or

[dpdk-dev] [PATCH v6 0/2] add selecting different GRE key length

2015-11-04 Thread Thomas Monjalon
2015-11-04 00:28, Helin Zhang: > By default, only 3 bytes of GRE key will be used for hash or FD calculation. > Here adds selecting 3 or 4 bytes of GRE key for those purpose. > Note that these patches are based on another patch set of > "[PATCH v9 0/2] i40e: RSS/FD granularity configuration".

[dpdk-dev] [PATCH v4] ring: add function to free a ring

2015-11-04 Thread Thomas Monjalon
> > When creating a ring, a memzone is created to allocate it in memory, > > but the ring could not be freed, as memzones could not be. > > > > Since memzones can be freed now, then rings can be as well, > > taking into account if they were initialized using pre-allocated memory > > (in which

[dpdk-dev] [PATCH] hash: free internal ring when freeing hash

2015-11-04 Thread Thomas Monjalon
2015-10-27 11:38, Bruce Richardson: > On Fri, Oct 02, 2015 at 05:07:13PM +0100, Pablo de Lara wrote: > > Since freeing a ring is now possible, then when freeing > > a hash table, its internal ring can be freed as well. > > Therefore when a new table, with the same name as a previously > > freed

[dpdk-dev] [PATCH v3] hash: fix scaling by reducing contention

2015-11-04 Thread Thomas Monjalon
> > If using multiple cores on a system with hardware transactional memory > > support, thread scaling does not work, as there was a single point in the > > hash library which is a bottleneck for all threads, which is the > > "free_slots" ring, which stores all the indices of the free slots in the

[dpdk-dev] [PATCH v2] hash: fix incorrect lookup if key is all zero

2015-11-04 Thread Thomas Monjalon
2015-09-28 11:29, Bruce Richardson: > On Thu, Sep 17, 2015 at 11:30:48AM +0100, Pablo de Lara wrote: > > If user has not added an all zero key in the hash table, > > and tries to look it up, it results in an incorrect hit, > > as dummy slot in the key table has all zero as well. > > > > Fixes:

[dpdk-dev] [PATCH v3 0/2] Fix two issues in lpm

2015-11-04 Thread Thomas Monjalon
2015-11-03 10:26, Bruce Richardson: > On Tue, Nov 03, 2015 at 10:17:39AM +0800, Na Na wrote: > > Fixes two issues in the delete_depth_small() function. > > > Series Acked-by: Bruce Richardson Applied, thanks

[dpdk-dev] [PATCH v8] mem: command line option to delete hugepage backing files

2015-11-04 Thread Thomas Monjalon
2015-10-28 23:23, Sergio Gonzalez Monroy: > On 28/10/2015 22:04, Shesha Sreenivasamurthy wrote: > > When an application using huge-pages crash or exists, the hugetlbfs > > backing files are not cleaned up. This is a patch to clean those files. > > There are multi-process DPDK applications that may

[dpdk-dev] [PATCH v2 01/11] eal/linux: vfio map misc intr to vector zero

2015-11-04 Thread Liang, Cunming
Hi David, On 11/2/2015 11:53 PM, David Marchand wrote: > Hello, > > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > [snip] > >> diff --git a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h >> b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h >> index

[dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header

2015-11-04 Thread Thomas Monjalon
2015-11-03 12:00, Bruce Richardson: > Move the function ptr and port id checking macros to the header file, so > that they can be used in the static inline functions there. In doxygen > comments, mark them as for internal use only. [...] > +/** > + * @internal > + * Macro to print a message if in

[dpdk-dev] [PATCH v2 05/11] eal/linux: add intr api to report multi-vector capability

2015-11-04 Thread Liang, Cunming
Hi David, On 11/2/2015 11:59 PM, David Marchand wrote: > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > >> VFIO allows multiple MSI-X vector, others doesn't, but maybe will allow it >> in the future. >> Device drivers need to be aware of the capability. >> It's better to avoid

[dpdk-dev] [PATCH v2 0/2] Fix build with kernel 4.2

2015-11-04 Thread Thomas Monjalon
2015-10-12 14:25, Ferruh Yigit: > On Mon, Oct 12, 2015 at 01:52:56PM +0100, Pablo de Lara wrote: > > Kernel 4.2 has introduced two new parameters in > > function ndo_bridge_netlink and therefore, > > DPDK does not build with it. > > > > This patchset adds the necessary checks and > > rename a

[dpdk-dev] [PATCH v2 07/11] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Liang, Cunming
Hi David, On 11/3/2015 12:06 AM, David Marchand wrote: > On Fri, Oct 30, 2015 at 6:27 AM, Cunming Liang > wrote: > >> As ixgbe vf doesn't support lsc, the patch removes those unused code. >> In addition, it does some tiny cleanup. >> > Please, can you describe this tiny cleanup ? > Did it

[dpdk-dev] [PATCH v3 1/3] rte: add keep alive functionality

2015-11-04 Thread Thomas Monjalon
2015-10-28 08:52, Remy Horton: > +/** > + * @file keepalive.h > + * DPDK RTE LCore Keepalive Monitor. > + * > + **/ The filename is rte_keepalive.h (seen with doxygen).

[dpdk-dev] How can I calculate/estimate pps(packet per seocond) and bps(bit per second) in DPDK pktg

2015-11-04 Thread 최익성
Dear Wiles, Keith , Van Haaren, Harry, Polehn, Mike A, Stephen Hemminger, Kyle Larose, and DPDK experts. I really appreciate for your precious answers and advices. I will find and study the corresponding codes and CRC checking. Last night, I tried to estimate bps and pps by using the

[dpdk-dev] [PATCH v3 1/3] rte: add keep alive functionality

2015-11-04 Thread Thomas Monjalon
2015-10-28 08:52, Remy Horton: > Adds functions for detecting and reporting the live-ness of LCores, > the primary requirement of which is minimal overheads for the > core(s) being checked. Core failures are notified via an application > defined callback. > > Signed-off-by: Remy Horton > --- >

[dpdk-dev] [PATCH v2] igbvf: fix vlan filtering

2015-11-04 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: David Marchand [mailto:david.marchand at 6wind.com] > Sent: Tuesday, November 3, 2015 10:25 PM > To: dev at dpdk.org > Cc: Lu, Wenzhuo; Julien Meunier > Subject: [PATCH v2] igbvf: fix vlan filtering > > From: Julien Meunier > > Once posted through

[dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

2015-11-04 Thread Lu, Wenzhuo
Hi Zhongliang, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zhongliang Shu > Sent: Wednesday, November 4, 2015 7:07 AM > To: dev at dpdk.org > Subject: [dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works? > > Hi, Guys: > I have developed a VM to

[dpdk-dev] [PATCH v4 3/3] testpmd: extend commands

2015-11-04 Thread Jingjing Wu
This patch extends commands to support filtering in VFs of flow director. Signed-off-by: Jingjing Wu --- app/test-pmd/cmdline.c | 41 ++--- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 15 ++- 2 files changed, 46 insertions(+), 10

[dpdk-dev] [PATCH v4 1/3] ethdev: extend struct to support flow director in VFs

2015-11-04 Thread Jingjing Wu
This patch extends struct rte_eth_fdir_flow_ext to support flow director in VFs. Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_notes/release_2_2.rst | 3 +++ lib/librte_ether/rte_eth_ctrl.h | 2 ++ 3 files changed, 5 insertions(+), 4

[dpdk-dev] [PATCH v4 0/3] extend flow drector to support VF filtering in i40e driver

2015-11-04 Thread Jingjing Wu
This patch set extends flow director to VF filtering in i40e driver. v2 change: - rework the doc, including release notes and testpmd guide v3 change: - rebase doc update to the same commit with code change v4 change: - remove the fix of disable interrupt on queues when stop device from

[dpdk-dev] [PATCH v4 2/3] i40e: extend flow diretcor to support filtering in VFs

2015-11-04 Thread Jingjing Wu
This patch extends flow director to filtering in VFs. Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/release_2_2.rst | 2 ++ drivers/net/i40e/i40e_fdir.c | 15 --- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/guides/rel_notes/release_2_2.rst

[dpdk-dev] [RFC ][PATCH] Introduce RTE_ARCH_STRONGLY_ORDERED_MEM_OPS configuration parameter

2015-11-04 Thread Jerin Jacob
On Tue, Nov 03, 2015 at 05:12:21PM +, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Jerin Jacob [mailto:jerin.jacob at caviumnetworks.com] > > Sent: Tuesday, November 03, 2015 4:53 PM > > To: Ananyev, Konstantin > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev]

[dpdk-dev] [PATCH v5] i40e: Fix the statistics issue of i40e

2015-11-04 Thread Sun, Xutao
Hi, Thomas > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Tuesday, November 03, 2015 7:35 AM > To: Sun, Xutao > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v5] i40e: Fix the statistics issue of i40e > > 2015-10-30 16:20, Xutao Sun: > >

[dpdk-dev] [PATCH v3 00/13] interrupt mode for i40e

2015-11-04 Thread Cunming Liang
v3 change: - rename MISC_VEC_ID and RX_VEC_START - add bsdapp dummy - split cleanup and fix patches - merge doc update along with code change v2 change: - rework to depend on one previous patch patch http://dpdk.org/dev/patchwork/patch/7504/ - always set DIS_AUTOMASK_* bit in PF

[dpdk-dev] [PATCH v3 01/13] eal: vfio map misc intr to vector zero

2015-11-04 Thread Cunming Liang
During VFIO_DEVICE_SET_IRQS, the previous order is {Q0_fd, ... Qn_fd, misc_fd}. The vector number of misc is indeterminable which is ugly to some NIC(e.g. i40e, fm10k). The patch adjusts the order in {misc_fd, Q0_fd, ... Qn_fd}, always reserve the first vector to misc interrupt. v3 changes: -

[dpdk-dev] [PATCH v3 02/13] ixgbe: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 changes: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 22 ++

[dpdk-dev] [PATCH v3 03/13] igb: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 change: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/e1000/e1000_ethdev.h | 3 +++

[dpdk-dev] [PATCH v3 04/13] eal/linux: not allow to enable zero intr efd

2015-11-04 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++-

[dpdk-dev] [PATCH v3 06/13] igb: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1332974..76d2acc 100644 --- a/drivers/net/e1000/igb_ethdev.c +++

[dpdk-dev] [PATCH v3 07/13] eal: add intr api to report multi-vector capability

2015-11-04 Thread Cunming Liang
VFIO allows multiple MSI-X vector, others doesn't, but maybe will allow it in the future. Device drivers need to be aware of the capability. It's better to avoid condition check on interrupt type(VFIO) everywhere, instead a capability api is more flexible for the condition change. v3 change: -

[dpdk-dev] [PATCH v3 08/13] ixgbe: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
When ixgbe runs as a PF, mbox interrupt is prerequisite to make VF start normally. And PF sometimes won't 'dev_start', so the mbox interrupt register during 'dev_init' is required. The patch rolls back the interrupt register for mbox,lsc to the 'dev_init'. As UIO doesn't support multiple vector,

[dpdk-dev] [PATCH v3 09/13] ixgbe: fix unnecessary intr_vec free in dev_close

2015-11-04 Thread Cunming Liang
The intr_vec is free in dev_stop. It's not necessary to check in dev_close. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 6b075f6..d5556cc

[dpdk-dev] [PATCH v3 10/13] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 62 +--- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git

[dpdk-dev] [PATCH v3 11/13] igb: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
When igb runs as a PF, mbox interrupt is prerequisite to make VF start normally. And PF sometimes won't 'dev_start', so the mbox interrupt register during 'dev_init' is required. The patch rolls back the interrupt register for mbox,lsc to the 'dev_init'. As UIO doesn't support multiple vector,

[dpdk-dev] [PATCH v3 05/13] ixgbe: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 153ba98..f1a738c 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++

[dpdk-dev] [PATCH v3 13/13] i40evf: add rx interrupt support

2015-11-04 Thread Cunming Liang
The patch enables rx interrupt support on i40e VF and some necessary change on PF IOV mode to support VF. On PF side, running in IOV mode via uio won't allow rx interrupt which is exclusive with mbox interrupt in single vector competition. On VF side, one single vector is shared for all the rx

[dpdk-dev] [PATCH v3 12/13] i40e: add rx interrupt support

2015-11-04 Thread Cunming Liang
The patch enables rx interrupt support on i40e PF non-IOV mode. Per queue rx interrupt works on vfio, however on uio, all rx queues share one interrupt vector. v3 change: - macro change according the EAL - add doc update follow on the code change v2 change: - add write flush -

[dpdk-dev] [PATCH] PPC64: turn off fm10k driver compilation on IBM POWER

2015-11-04 Thread Chao Zhu
The fm10k vector driver is specific for x86 platform which can't compile on IBM POWER for lacking of tmmintrin.h header file. This patch turns off fm10k driver compilation on IBM POWER to prevent compile issue. Signed-off-by: Chao Zhu --- config/defconfig_ppc_64-power8-linuxapp-gcc |1 + 1

[dpdk-dev] [PATCH] rte_sched: release enqueued mbufs on rte_sched_port_free()

2015-11-04 Thread Simon Kågström
Ping? (CC:ing Stephen Hemminger as well) // Simon On 2015-10-28 10:56, Simon Kagstrom wrote: > Otherwise mbufs will leak when the port is destroyed. The > rte_sched_port_qbase() and rte_sched_port_qsize() functions are used > in free now, so move them up. > > Signed-off-by: Simon Kagstrom >

[dpdk-dev] [PATCH v2 2/2] ethdev: export rte_eth_dev_is_detachable function

2015-11-04 Thread David Marchand
On Tue, Nov 3, 2015 at 2:50 PM, Thomas Monjalon wrote: > After more thoughts, we do not need such function to query a capability. > The Bernard's patch add a bit-field to expose such capabilities. > So this patchset is rejected, sorry. > As discussed offline, as long as those capabilities do

[dpdk-dev] [PATCH] rte_ether: clarify rte_eth_set_queue_rate_limit tx_rate parameter

2015-11-04 Thread Simon Kågström
Ping? // Simon On 2015-10-20 15:20, Simon Kagstrom wrote: > The tx_rate unit is Mbps. > > Gleaned from the ixgbe implementation, the 82599 datasheet and the use > in test-pmd. > > Signed-off-by: Simon Kagstrom > --- > lib/librte_ether/rte_ethdev.h | 2 +- > 1 file changed, 1 insertion(+), 1

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Simon Kågström
Ping? (Also including Stephen, Patrice and Pawel which has had comments on an earlier iteration of this patch). // Simon On 2015-08-20 08:51, Simon Kagstrom wrote: > /proc/version_signature is the version for the host machine, but in > e.g., chroots, this does not necessarily match that DPDK is

[dpdk-dev] [PATCH] PPC64: turn off fm10k driver compilation on IBM POWER

2015-11-04 Thread Qiu, Michael
On 2015/11/4 14:14, Chao Zhu wrote: > The fm10k vector driver is specific for x86 platform which can't compile > on IBM POWER for lacking of tmmintrin.h header file. This patch turns > off fm10k driver compilation on IBM POWER to prevent compile issue. > > Signed-off-by: Chao Zhu Acked-by:

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Zhang, Helin
> -Original Message- > From: Simon Kagstrom [mailto:simon.kagstrom at netinsight.net] > Sent: Thursday, August 20, 2015 2:51 PM > To: Zhang, Helin; thomas.monjalon at 6wind.com; dev at dpdk.org > Subject: [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version > >

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

2015-11-04 Thread Jijiang Liu
Adds vhost TX offload support. The patch set add the negotiation between us-vhost and virtio-net for vhost TX offload(checksum and TSO), and add the TX offload support in the libs and change vhost sample and csum application to test these changes. v3 change: rebase latest codes. v2 change:

[dpdk-dev] [PATCH v3 4/8] driver/virtio:fill virtio device info for TX offload

2015-11-04 Thread Jijiang Liu
Fill virtio device info for TX offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index cb5dfee..b831c02 100644 ---

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

2015-11-04 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 7789411..530f840 100644 ---

[dpdk-dev] [PATCH v3 2/8] driver/virtio: record virtual address of virtio net header

2015-11-04 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644 ---

[dpdk-dev] [PATCH v3 5/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 14278de..81bd309 100644

[dpdk-dev] [PATCH v3 3/8] driver/virtio:add vhost TX checksum support capability in virtio-net

2015-11-04 Thread Jijiang Liu
Add vhost TX checksum and TSO capabilities in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index

[dpdk-dev] [PATCH v3 6/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-04 Thread Jijiang Liu
Dequeue vhost TX offload in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 108 - 1 files changed, 107 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-04 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index

[dpdk-dev] [PATCH v4 00/13] interrupt mode for i40e

2015-11-04 Thread Cunming Liang
v4 change: - remove redundancy condition check on PF v3 changes: - rename MISC_VEC_ID and RX_VEC_START - add bsdapp dummy - split cleanup and fix patches - merge doc update along with code change v2 changes: - rework to depend on one previous patch patch

[dpdk-dev] [PATCH v4 01/13] eal: vfio map misc intr to vector zero

2015-11-04 Thread Cunming Liang
During VFIO_DEVICE_SET_IRQS, the previous order is {Q0_fd, ... Qn_fd, misc_fd}. The vector number of misc is indeterminable which is ugly to some NIC(e.g. i40e, fm10k). The patch adjusts the order in {misc_fd, Q0_fd, ... Qn_fd}, always reserve the first vector to misc interrupt. v3 changes: -

[dpdk-dev] [PATCH v4 02/13] ixgbe: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 changes: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 22 ++

[dpdk-dev] [PATCH v4 03/13] igb: reserve intr vector zero for misc cause

2015-11-04 Thread Cunming Liang
According to the VFIO interrupt mapping, the interrupt vector id for rxq starts from RX_VEC_START. It doesn't impact the UIO cases. v3 change: - macro renaming according to the EAL change Signed-off-by: Cunming Liang --- drivers/net/e1000/e1000_ethdev.h | 3 +++

[dpdk-dev] [PATCH v4 04/13] eal/linux: not allow to enable zero intr efd

2015-11-04 Thread Cunming Liang
The patch adds condition check to avoid enable nothing. In disable state, both max_intr and nb_efd are zero. Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 3 ++- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 8 +++-

[dpdk-dev] [PATCH v4 05/13] ixgbe: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 153ba98..f1a738c 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++

[dpdk-dev] [PATCH v4 06/13] igb: fix efd_enable with zero number

2015-11-04 Thread Cunming Liang
Signed-off-by: Cunming Liang --- drivers/net/e1000/igb_ethdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1332974..76d2acc 100644 --- a/drivers/net/e1000/igb_ethdev.c +++

[dpdk-dev] [PATCH v4 07/13] eal: add intr api to report multi-vector capability

2015-11-04 Thread Cunming Liang
VFIO allows multiple MSI-X vector, others doesn't, but maybe will allow it in the future. Device drivers need to be aware of the capability. It's better to avoid condition check on interrupt type(VFIO) everywhere, instead a capability api is more flexible for the condition change. v3 change: -

[dpdk-dev] [PATCH v4 08/13] ixgbe: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
When ixgbe runs as a PF, mbox interrupt is prerequisite to make VF start normally. And PF sometimes won't 'dev_start', so the mbox interrupt register during 'dev_init' is required. The patch rolls back the interrupt register for mbox,lsc to the 'dev_init'. As UIO doesn't support multiple vector,

[dpdk-dev] [PATCH v4 09/13] ixgbe: fix unnecessary intr_vec free in dev_close

2015-11-04 Thread Cunming Liang
The intr_vec is free in dev_stop. It's not necessary to check in dev_close. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index c322168..948a84f

[dpdk-dev] [PATCH v4 10/13] ixgbevf: cleanup unnecessary interrupt handler

2015-11-04 Thread Cunming Liang
As ixgbe vf doesn't support lsc, the patch removes those unused code. In addition, it does some tiny cleanup. Signed-off-by: Cunming Liang --- drivers/net/ixgbe/ixgbe_ethdev.c | 62 +--- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git

[dpdk-dev] [PATCH v4 12/13] i40e: add rx interrupt support

2015-11-04 Thread Cunming Liang
The patch enables rx interrupt support on i40e PF non-IOV mode. Per queue rx interrupt works on vfio, however on uio, all rx queues share one interrupt vector. v4 change: - remove redundancy condition check v3 change: - macro change according the EAL - add doc update follow on the code

[dpdk-dev] [PATCH v4 11/13] igb: fix rx intr compatible issue with PF mbox

2015-11-04 Thread Cunming Liang
When igb runs as a PF, mbox interrupt is prerequisite to make VF start normally. And PF sometimes won't 'dev_start', so the mbox interrupt register during 'dev_init' is required. The patch rolls back the interrupt register for mbox,lsc to the 'dev_init'. As UIO doesn't support multiple vector,

[dpdk-dev] [PATCH v4 13/13] i40evf: add rx interrupt support

2015-11-04 Thread Cunming Liang
The patch enables rx interrupt support on i40e VF and some necessary change on PF IOV mode to support VF. On PF side, running in IOV mode via uio won't allow rx interrupt which is exclusive with mbox interrupt in single vector competition. On VF side, one single vector is shared for all the rx

[dpdk-dev] ixgbe: ierrors counter spuriously increasing in DPDK 2.1

2015-11-04 Thread Martin Weiser
Hi Harry, first of all thank you for your effort. I have done some test with the current master (which includes you patch). It improves the situation but does not fix it entirely. The rx-error which showed up immediately after starting the interface is gone since this was probably caused by

[dpdk-dev] [PATCH v6] i40e: Fix the statistics issue of i40e

2015-11-04 Thread Xutao Sun
The old statistics on i40e only counted the packets on ports. So the discarding packets on VSI were not counted. This patch is to make statistics for packets both on ports and VSI. Also update release notes. Signed-off-by: Xutao Sun --- v2: - reword comments v3: - update release notes v4: -

[dpdk-dev] [PATCH v5] i40e: Fix the statistics issue of i40e

2015-11-04 Thread Thomas Monjalon
> > 2015-10-30 16:20, Xutao Sun: > > > The old statistics on i40e only counted the packets on ports. > > > So the discarding packets on VSI were not counted. > > > This patch is to make statistics for packets both on ports and VSI. > > > > Please, could you rebase on top of Harry's patches for

[dpdk-dev] [PATCH] doc: update release notes for e1000 base code update

2015-11-04 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Monday, November 2, 2015 6:14 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: update release notes for e1000 base code > update > > Signed-off-by: Wenzhuo Lu There are a few

[dpdk-dev] [PATCH v4 0/7] add sample ptp slave application

2015-11-04 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK IEEE1588 functions. Also add some additional IEEE1588 support functions to enable getting, setting and adjusting the device time. V3->V4: Doc: - Update documentation for ptpclient - fix: put information about ptpaplication in

[dpdk-dev] [PATCH v4 1/7] ethdev: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
Add additional functions to support the existing IEEE1588 functionality. * rte_eth_timesync_settime(), function to set the device clock time. * rte_eth_timesync_gettime, function to get the device clock time. * rte_eth_timesync_adjust, function to adjust the device clock time. Signed-off-by:

[dpdk-dev] [PATCH v4 2/7] net: Add common PTP structures and functions

2015-11-04 Thread Daniel Mrzyglod
This patch add common functions and structures used for PTP processing. Signed-off-by: Daniel Mrzyglod --- lib/librte_net/Makefile | 2 +- lib/librte_net/rte_ptp.h | 105 +++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644

[dpdk-dev] [PATCH v4 3/7] ixgbe: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Daniel Mrzyglod Signed-off-by: Pablo de Lara --- drivers/net/ixgbe/ixgbe_ethdev.c | 272 +--

[dpdk-dev] [PATCH v4 4/7] igb: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/e1000/e1000_ethdev.h | 3 +

[dpdk-dev] [PATCH v6] i40e: Fix the statistics issue of i40e

2015-11-04 Thread Van Haaren, Harry
> From: Sun, Xutao > Sent: Wednesday, November 4, 2015 9:21 AM > To: dev at dpdk.org > Cc: Zhang, Helin; Van Haaren, Harry; Sun, Xutao > Subject: [PATCH v6] i40e: Fix the statistics issue of i40e > > The old statistics on i40e only counted the packets on ports. > So the discarding packets on VSI

[dpdk-dev] [PATCH v4 5/7] i40e: add additional ieee1588 support functions

2015-11-04 Thread Daniel Mrzyglod
From: Pablo de Lara Add additional functions to support the existing IEEE1588 functionality and to enable getting, setting and adjusting the device time. Signed-off-by: Pablo de Lara Signed-off-by: Daniel Mrzyglod --- drivers/net/i40e/i40e_ethdev.c | 192

[dpdk-dev] [PATCH v4 6/7] example: PTP client slave minimal implementation

2015-11-04 Thread Daniel Mrzyglod
Add a sample application that acts as a PTP slave using the DPDK ieee1588 functions. Signed-off-by: Daniel Mrzyglod --- MAINTAINERS | 3 + doc/guides/rel_notes/release_2_2.rst | 5 + examples/Makefile| 1 + examples/ptpclient/Makefile

[dpdk-dev] [PATCH v4 7/7] doc: add a PTPCLIENT sample guide

2015-11-04 Thread Daniel Mrzyglod
It includes: - Add the ptpclient picture with svg format. - Add the ptpclient.rst file - Change the index.rst file for the above pictures index. Signed-off-by: Daniel Mrzyglod --- doc/guides/sample_app_ug/img/ptpclient.svg | 520 +

[dpdk-dev] i40e: disabling flow control makes XL710 NIC discard all packets

2015-11-04 Thread Martin Weiser
Hi Helin, I have been doing some tests with the current DPDK master to see if the issues we had with performance and statistics have improved. In our own applications we usually disable flow control using the following code: struct rte_eth_fc_conf fc_conf = { .mode = RTE_FC_NONE }; int ret =

[dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header

2015-11-04 Thread Adrien Mazarguil
On Wed, Nov 04, 2015 at 02:19:36AM +0100, Thomas Monjalon wrote: > 2015-11-03 12:00, Bruce Richardson: > > Move the function ptr and port id checking macros to the header file, so > > that they can be used in the static inline functions there. In doxygen > > comments, mark them as for internal use

[dpdk-dev] [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version

2015-11-04 Thread Thomas Monjalon
2015-08-20 08:51, Simon Kagstrom: > /proc/version_signature is the version for the host machine, but in > e.g., chroots, this does not necessarily match that DPDK is built > for. DPDK will then build for the wrong kernel version - that of the > server, and not that installed in the (build) chroot.

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

2015-11-04 Thread Liu, Jijiang
Please ignore this version of patch set, I will re-send it out.thanks > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Wednesday, November 4, 2015 4:35 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/8] add vhost TX offload

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

2015-11-04 Thread Jijiang Liu
Adds vhost TX offload support. The patch set add the negotiation between us-vhost and virtio-net for vhost TX offload(checksum and TSO), and add the TX offload support in the libs and change vhost sample and csum application to test these changes. v3 change: rebase latest codes. v2 change:

[dpdk-dev] [PATCH v3 2/8] driver/virtio: record virtual address of virtio net header

2015-11-04 Thread Jijiang Liu
Record virtual address of virtio net header. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 465d3cd..cb5dfee 100644 ---

[dpdk-dev] [PATCH v3 4/8] driver/virtio:fill virtio device info for TX offload

2015-11-04 Thread Jijiang Liu
Fill virtio device info for TX offload. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index cb5dfee..b831c02 100644 ---

[dpdk-dev] [PATCH v3 5/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/virtio-net.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 14278de..81bd309 100644

[dpdk-dev] [PATCH v3 6/8] driver/virtio:enqueue vhost TX offload

2015-11-04 Thread Jijiang Liu
Enqueue vhost TX checksum and TSO4/6 offload in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_rxtx.c | 61 ++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtio_rxtx.c

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-04 Thread Jijiang Liu
Dequeue vhost TX offload in vhost lib. Signed-off-by: Jijiang Liu --- lib/librte_vhost/vhost_rxtx.c | 108 - 1 files changed, 107 insertions(+), 1 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index

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

2015-11-04 Thread Jijiang Liu
The virtual addr for virtio net header need to be recorded. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtqueue.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index 689c321..5b43eeb 100644 ---

[dpdk-dev] [PATCH v3 3/8] driver/virtio:add vhost TX checksum support capability in virtio-net

2015-11-04 Thread Jijiang Liu
Add vhost TX checksum and TSO capabilities in virtio-net lib. Signed-off-by: Jijiang Liu --- drivers/net/virtio/virtio_ethdev.h |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio_ethdev.h index

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-04 Thread Jijiang Liu
Change the vhost sample to support and test TX offload. Signed-off-by: Jijiang Liu --- examples/vhost/main.c | 128 ++--- 1 files changed, 111 insertions(+), 17 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index

[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

  1   2   >