Re: [dpdk-dev] [PATCH] net/tap: add Rx/Tx checksum offload support

2017-05-22 Thread Pascal Mazon
Hi Ferruh, I'm not sure it would actually be so useful for other vPMDs. Virtio and vmxnet3 for instance have their own mechanisms for handling offloading. Software offload is especially relevant for tap as packets may come from anywhere (from another process, from a remote netdevice), and the app

Re: [dpdk-dev] [PATCH v3 01/25] ethdev: introduce generic flow API

2017-05-22 Thread Zhao1, Wei
Hi, Adrien > +struct rte_flow_item_raw { > + uint32_t relative:1; /**< Look for pattern after the previous item. */ > + uint32_t search:1; /**< Search pattern from offset (see also limit). */ > + uint32_t reserved:30; /**< Reserved, must be set to zero. */ > + int32_t offset; /**<

Re: [dpdk-dev] [PATCH 1/3] drivers/net: add support for IF-MIB and EtherLike-MIB for e1000

2017-05-22 Thread Lu, Wenzhuo
Hi Michal, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Pattan, Reshma > Sent: Tuesday, May 23, 2017 12:35 AM > To: Jastrzebski, MichalX K; dev@dpdk.org > Cc: Jain, Deepak K; Van Haaren, Harry; Azarewicz, PiotrX T > Subject: Re: [dpdk-dev] [PATCH 1/3] drivers

Re: [dpdk-dev] ixgbevf: queue start stop functions

2017-05-22 Thread Lu, Wenzhuo
Hi Gregory, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Gregory Etelson > Sent: Monday, May 22, 2017 5:36 PM > To: dev@dpdk.org > Cc: Richardson, Bruce; Yigit, Ferruh; Zhang, Qi Z > Subject: [dpdk-dev] ixgbevf: queue start stop functions > > Hello, > > ixg

Re: [dpdk-dev] [PATCH v3 2/2] net/igb: fix add/delete of flex filters

2017-05-22 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Markus Theil > Sent: Monday, May 22, 2017 6:18 PM > To: dev@dpdk.org > Cc: Markus Theil > Subject: [dpdk-dev] [PATCH v3 2/2] net/igb: fix add/delete of flex filters > > Before this patch, flex_filter->index w

Re: [dpdk-dev] [PATCH v3 1/2] net/igb: support flex filters on i210/i211

2017-05-22 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Markus Theil > Sent: Monday, May 22, 2017 6:18 PM > To: dev@dpdk.org > Cc: Markus Theil > Subject: [dpdk-dev] [PATCH v3 1/2] net/igb: support flex filters on i210/i211 > > i210/i211 also support flex filters.

Re: [dpdk-dev] [PATCH 00/23] bnxt patchset

2017-05-22 Thread Thomas Monjalon
22/05/2017 12:55, Ferruh Yigit: > - for 3), Some of the PMD specific APIs are common with exiting ones in > i40e and ixgbe, should we extract them into eth_dev_ops now? @Thomas, > any comment? I don't think so. Please let's discuss it in a separate thread.

[dpdk-dev] [PATCH] crypto/aesni_gcm: fix leading spaces

2017-05-22 Thread Pablo de Lara
Fixes: 26c2e4ad5ad4 ("cryptodev: add capabilities discovery") CC: sta...@dpdk.org Signed-off-by: Pablo de Lara --- drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c b/drivers/crypto/a

[dpdk-dev] 2nd try: problem with ixgbe_dev_link_update() for multi-speed fiber [was] Re: [PATCH v4] net/ixgbe: ensure link status is updated

2017-05-22 Thread Roger B. Melton
Hi Laurent/Wei, Any thoughts? Regards, Roger On 5/17/17 9:31 AM, Roger B Melton wrote: Hi Laurent/Wei, As I continue to integrate DPDK 17.05 into my application, I have hit another issue with this patch while testing in a VM with multispeed fiber ixgbe PCI passthrough. My application peri

Re: [dpdk-dev] [PATCH 6/6] net/vmxnet3: preserve configured MAC address

2017-05-22 Thread Shrikrishna Khare
On Fri, 19 May 2017, Charles (Chas) Williams wrote: > From: George Wilkie > > When starting a vmxnet3 device, it is always writing the permanent MAC > address, even if a different MAC address was configured. Write from > the device data instead which holds the current one. > > Signed-off-by:

[dpdk-dev] [dpdk-announce] DPDK & FD.io Mini Summit at OPNFV Summit

2017-05-22 Thread O'Driscoll, Tim
For anybody attending the OPNFV Summit in Beijing in June, we'll be holding a DPDK/FD.io mini summit on Tuesday June 13th from 9:00 - 17:00. This will be similar to the event that we held in Berlin last year. Further details on the event are available at: http://events.linuxfoundation.org/even

Re: [dpdk-dev] [PATCH 1/3] drivers/net: add support for IF-MIB and EtherLike-MIB for e1000

2017-05-22 Thread Pattan, Reshma
Hi, Can you add the description to the commit message, describing what has been done. General doubt I have , I see all IF-MIB and Ether-Like-MIB attributes are added as Xstats. But most of IF-MIB attributes are not stats, instead they are information about the interface/port. So I guess such

Re: [dpdk-dev] [PATCH 1/3] drivers/net: add support for IF-MIB and EtherLike-MIB for e1000

2017-05-22 Thread Pattan, Reshma
Hi, -Original Message- From: Jastrzebski, MichalX K Sent: Monday, May 22, 2017 3:32 PM To: dev@dpdk.org Cc: Pattan, Reshma ; Jain, Deepak K ; Van Haaren, Harry ; Jastrzebski, MichalX K ; Azarewicz, PiotrX T Subject: [PATCH 1/3] drivers/net: add support for IF-MIB and EtherLike-MIB fo

Re: [dpdk-dev] [PATCH 0/3] drivers/net: add support for IF-MIB and EtherLike-MIB

2017-05-22 Thread Stephen Hemminger
On Mon, 22 May 2017 16:31:59 +0200 Michal Jastrzebski wrote: > Extend Intel NICs (i40e, ixgbe, e1000) xstats for IF-MIB and > EtherLike-MIB. > > If-MIB xstats: > ifNumber > ifIndex > ifType > ifMtu > ifSpeed > ifPhysAddress > ifOperStatus > ifLastChange > ifHighSpeed > ifConnectorPresent > ifCou

Re: [dpdk-dev] [PATCH v2 1/3] net/sfc: carefully cleanup on init failure and shutdown

2017-05-22 Thread Ferruh Yigit
On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: > Signed-off-by: Andrew Rybchenko > Reviewed-by: Andy Moreton Series applied to dpdk-next-net/master, thanks.

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Sergio Gonzalez Monroy
On 22/05/2017 13:36, Ferruh Yigit wrote: On 5/22/2017 1:07 PM, Andrew Rybchenko wrote: On 05/22/2017 02:29 PM, Ferruh Yigit wrote: On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton <...> Linux VFIO = Y diff --git a/drivers/

[dpdk-dev] [PATCH 3/3] drivers/net: add support for IF-MIB and EtherLike-MIB for ixgbe

2017-05-22 Thread Michal Jastrzebski
If-MIB xstats: ifNumber ifIndex ifType ifMtu ifSpeed ifPhysAddress ifOperStatus ifLastChange ifHighSpeed ifConnectorPresent ifCounterDiscontinuityTime EtherLike-MIB xstats: dot3PauseOperMode dot3StatsDuplexStatus dot3StatsRateControlAbility dot3StatsRateControlStatus dot3ControlFunctionsSupported

[dpdk-dev] [PATCH 2/3] drivers/net: add support for IF-MIB and EtherLike-MIB for i40e

2017-05-22 Thread Michal Jastrzebski
If-MIB xstats: ifNumber ifIndex ifType ifMtu ifSpeed ifPhysAddress ifOperStatus ifLastChange ifHighSpeed ifConnectorPresent ifCounterDiscontinuityTime EtherLike-MIB xstats: dot3PauseOperMode dot3StatsDuplexStatus dot3StatsRateControlAbility dot3StatsRateControlStatus dot3ControlFunctionsSupported

[dpdk-dev] [PATCH 1/3] drivers/net: add support for IF-MIB and EtherLike-MIB for e1000

2017-05-22 Thread Michal Jastrzebski
If-MIB xstats: ifNumber ifIndex ifType ifMtu ifSpeed ifPhysAddress ifOperStatus ifLastChange ifHighSpeed ifConnectorPresent ifCounterDiscontinuityTime EtherLike-MIB xstats: dot3PauseOperMode dot3StatsDuplexStatus dot3StatsRateControlAbility dot3StatsRateControlStatus dot3ControlFunctionsSupported

[dpdk-dev] [PATCH 0/3] drivers/net: add support for IF-MIB and EtherLike-MIB

2017-05-22 Thread Michal Jastrzebski
Extend Intel NICs (i40e, ixgbe, e1000) xstats for IF-MIB and EtherLike-MIB. If-MIB xstats: ifNumber ifIndex ifType ifMtu ifSpeed ifPhysAddress ifOperStatus ifLastChange ifHighSpeed ifConnectorPresent ifCounterDiscontinuityTime EtherLike-MIB xstats: dot3PauseOperMode dot3StatsDuplexStatus dot3Stat

Re: [dpdk-dev] [PATCH v4 2/2] ethdev: add traffic management API

2017-05-22 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, May 19, 2017 6:34 PM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; thomas.monja...@6wind.com; > jerin.ja...@caviumnetworks.com; > balasubramanian.manoha...@cavium.com; hemant.agra...@nxp.c

[dpdk-dev] [PATCH] cryptodev: remove crypto device driver name

2017-05-22 Thread Slawomir Mrozowicz
Remove crypto device driver name string definitions from librte_cryptodev, which avoid to library changes every time a new crypto driver was added. The driver name is predefined internaly in the each PMD. The applications could use the crypto device driver names based on options with the driver na

Re: [dpdk-dev] [RFC v2] Flow classification library

2017-05-22 Thread Ferruh Yigit
On 5/19/2017 5:30 PM, Iremonger, Bernard wrote: > Hi Ferruh, > >> -Original Message- >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit >> Sent: Thursday, May 18, 2017 7:12 PM >> To: dev@dpdk.org >> Cc: Yigit, Ferruh ; Mcnamara, John >> ; Tahhan, Maryam >> >> Subject: [d

Re: [dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface

2017-05-22 Thread Charles (Chas) Williams
On 05/22/2017 05:39 AM, Ferruh Yigit wrote: Hi Chas, On 5/17/2017 7:03 PM, Charles (Chas) Williams wrote: Provide an accessor for the name of the underlying linux interface used by the AF_PACKET-based interface. This patch provides a PMD specific API to get PMD internal data (internals->if_

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Ferruh Yigit
On 5/22/2017 1:44 PM, Andrew Rybchenko wrote: > On 05/22/2017 03:36 PM, Ferruh Yigit wrote: >> On 5/22/2017 1:07 PM, Andrew Rybchenko wrote: >>> On 05/22/2017 02:29 PM, Ferruh Yigit wrote: On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: > Signed-off-by: Andrew Rybchenko > Reviewed-by: A

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Andrew Rybchenko
On 05/22/2017 03:36 PM, Ferruh Yigit wrote: On 5/22/2017 1:07 PM, Andrew Rybchenko wrote: On 05/22/2017 02:29 PM, Ferruh Yigit wrote: On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton <...> diff --git a/drivers/net/sfc/sfc_ef10_rx.c b/

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Ferruh Yigit
On 5/22/2017 1:07 PM, Andrew Rybchenko wrote: > On 05/22/2017 02:29 PM, Ferruh Yigit wrote: >> On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: >>> Signed-off-by: Andrew Rybchenko >>> Reviewed-by: Andy Moreton >> <...> >> >>> Linux VFIO = Y >>> diff --git a/drivers/net/sfc/sfc.h b/drivers

Re: [dpdk-dev] [PATCH] net/tap: add Rx/Tx checksum offload support

2017-05-22 Thread Ferruh Yigit
Hi Pascal, On 5/22/2017 12:20 PM, Pascal Mazon wrote: > This patch adds basic offloading support, widely expected in a PMD. > > Verify IPv4 and UDP/TCP checksums upon packet reception, and set > ol_flags accordingly. > > On Tx, set IPv4 and UDP/TCP checksums when required, considering > ol_flags

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Andrew Rybchenko
On 05/22/2017 02:29 PM, Ferruh Yigit wrote: On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton <...> Linux VFIO = Y diff --git a/drivers/net/sfc/sfc.h b/drivers/net/sfc/sfc.h index 772a713..007ed24 100644 --- a/drivers/net/sfc

Re: [dpdk-dev] [PATCH v2 3/3] net/sfc: support multi-process

2017-05-22 Thread Ferruh Yigit
On 5/18/2017 3:00 PM, Andrew Rybchenko wrote: > Signed-off-by: Andrew Rybchenko > Reviewed-by: Andy Moreton <...> > Linux VFIO = Y > diff --git a/drivers/net/sfc/sfc.h b/drivers/net/sfc/sfc.h > index 772a713..007ed24 100644 > --- a/drivers/net/sfc/sfc.h > +++ b/drivers/net/sfc/sfc.h

[dpdk-dev] [PATCH] net/tap: add Rx/Tx checksum offload support

2017-05-22 Thread Pascal Mazon
This patch adds basic offloading support, widely expected in a PMD. Verify IPv4 and UDP/TCP checksums upon packet reception, and set ol_flags accordingly. On Tx, set IPv4 and UDP/TCP checksums when required, considering ol_flags. Signed-off-by: Pascal Mazon --- doc/guides/nics/features/tap.ini

[dpdk-dev] [PATCH] net/tap: fix some flow collision

2017-05-22 Thread Pascal Mazon
The following two flow rules (testpmd syntax) should not collide: flow create 0 priority 1 ingress pattern eth / ipv4 / end actions drop / end flow create 0 priority 1 ingress pattern eth / ipv6 / end actions drop / end But the eth_type in the associated TC rule was set to either "ip" or "ipv6". F

[dpdk-dev] [PATCH v2] cryptodev: remove crypto device type enumeration

2017-05-22 Thread Slawomir Mrozowicz
Changes device type identification to be based on a unique driver id replacing the current device type enumeration, which needed library changes every time a new crypto driver was added. The driver id is assigned dynamically during driver registration using the new macro RTE_PMD_REGISTER_CRYPTO_DR

Re: [dpdk-dev] [PATCH 00/23] bnxt patchset

2017-05-22 Thread Ferruh Yigit
On 5/18/2017 2:57 AM, Ajit Khaparde wrote: > This patchset amongst other changes adds support few more dev_ops, > updates HWRM to version 1.7.5, switches to polling stats from the > hardware, support for LRO etc.. > > bnxt: add various hwrm input/output structures > bnxt: code reorg to properl

[dpdk-dev] [PATCH v3 2/2] net/igb: fix add/delete of flex filters

2017-05-22 Thread Markus Theil
Before this patch, flex_filter->index was always zero when it was read and used after rte_zmalloc. The corresponding code was therefore moved into the add and delete parts of the if/else statement. Fixes: 231d43909a31 ("igb: migrate flex filter to new API") Signed-off-by: Markus Theil --- drive

[dpdk-dev] [PATCH v3 1/2] net/igb: support flex filters on i210/i211

2017-05-22 Thread Markus Theil
i210/i211 also support flex filters. Tested on i210. Signed-off-by: Markus Theil --- drivers/net/e1000/igb_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index e1702d8..631ace6 100644 --- a/drivers/ne

Re: [dpdk-dev] [PATCH] ethdev: add isolated mode to flow API

2017-05-22 Thread Adrien Mazarguil
Hi John, On Fri, May 19, 2017 at 09:00:34PM +, John Daley (johndale) wrote: > Hi Adrien, > > I understand why applications may want to operate in this sort of isolated > mode. Just to better understand the value of adding this feature can you > contrast it to simply having the application a

Re: [dpdk-dev] [dpdk-stable] [PATCH v2 2/2] contigmem: don't zero the pages during each mmap

2017-05-22 Thread Shahaf Shuler
Nélio, related to the issue you saw with secondary process support? --Shahaf Monday, May 22, 2017 12:04 PM, Tiwei Bie: > Don't zero the pages during each mmap. Instead, only zero the pages when > they are not already mmapped. Otherwise, the multi-process support will be > broken, as the pages will

Re: [dpdk-dev] [PATCH v4 0/8] enic flow api support

2017-05-22 Thread Ferruh Yigit
On 5/17/2017 11:38 PM, John Daley wrote: > Sorry for the inconvenience Ferruh, hopefully this set will work better. > > V4 patchset changes: > - include patch that was missing in V3 which caused compile errors > - put mark and flag support into a separate patch to make it more clear > what the c

Re: [dpdk-dev] [PATCH v4 1/8] net/enic: bring NIC interface functions up to date

2017-05-22 Thread Ferruh Yigit
On 5/17/2017 11:38 PM, John Daley wrote: > Update the base functions for the Cisco VIC. These files are mostly > common with other VIC drivers so are left alone is as much as possilbe. > Includes in a new filter/action interface which is needed for Generic > Flow API PMD support. Update FDIR code t

[dpdk-dev] [PATCH v3 20/20] bus/fslmc: reducing the debug log messages

2017-05-22 Thread Hemant Agrawal
Reducing the amount of logging and making the err statement as a single line statements. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 43 +--- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c |

[dpdk-dev] [PATCH v3 18/20] bus/fslmc: add support to detect soc version

2017-05-22 Thread Hemant Agrawal
This is required to configure the stashing destination based on the cluster size. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpmng.c| 81 +++ drivers/bus/fslmc/mc/fsl_dpmng.h| 99 +

[dpdk-dev] [PATCH v3 17/20] net/dpaa2: configure jumbo frames

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 20 2 files changed, 21 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 720c35b..48422f0 100644 --- a/d

[dpdk-dev] [PATCH v3 19/20] net/dpaa2: add support for Firmware Version get

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index efd6064..4de1e0c 100644 --- a/drivers/net/dpaa2/dpa

[dpdk-dev] [PATCH v3 16/20] net/dpaa2: add support for flow control

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 142 drivers/net/dpaa2/mc/dpni.c | 18 + drivers/net/dpaa2/mc/fsl_dpni.h | 24 ++ drivers/net/dpaa2/mc/fsl_dpni_cmd.h |

[dpdk-dev] [PATCH v3 15/20] net/dpaa2: add link status config support

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 118 +++ drivers/net/dpaa2/dpaa2_ethdev.h | 2 +- drivers/net/dpaa2/dpaa2_rxtx.c | 25 + 3 files changed, 144 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_et

[dpdk-dev] [PATCH v3 14/20] net/dpaa2: add support for VLAN strip

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 0670ae3..d7e18ad 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -330,6

[dpdk-dev] [PATCH v3 10/20] bus/fslmc: update TAILQ usages in dpaa2 objects

2017-05-22 Thread Hemant Agrawal
This patch updates the usages of malloc and TAILQ in dpbp and dpio objects. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 28 +--- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 32 2 files changed, 21 insertions

[dpdk-dev] [PATCH v3 11/20] net/dpaa2: add support for MAC address filtering

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 81 - drivers/net/dpaa2/mc/dpni.c | 76 ++ drivers/net/dpaa2/mc/fsl_dpni.h | 45 +

[dpdk-dev] [PATCH v3 12/20] net/dpaa2: add support for multicast promiscuous mode

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 61 +++-- drivers/net/dpaa2/mc/dpni.c | 41 + drivers/net/dpaa2/mc/fsl_dpni.h | 27 drivers/net/

[dpdk-dev] [PATCH v3 13/20] net/dpaa2: add support for VLAN filter and offload

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 2 ++ drivers/net/dpaa2/dpaa2_ethdev.c| 55 +++ drivers/net/dpaa2/mc/dpni.c | 66 + drivers/net/dpaa2/mc/fsl_dpni.h | 54 +++

[dpdk-dev] [PATCH v3 06/20] net/dpaa2: support parallel Rx in eth pmd

2017-05-22 Thread Hemant Agrawal
Typically when the PMD issues a RX command to DPAA2 hardware, the hw writes the available descriptors into the given memory. The RX function then processes the frames and prepare them as mbufs. This patch adds support to issue another pull request to hardware in another memory location, before we

[dpdk-dev] [PATCH v3 09/20] net/dpaa2: add support for tail drop on queue

2017-05-22 Thread Hemant Agrawal
This will help in limiting the size of queues and avoid them growing practically infinite. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c| 19 + drivers/net/dpaa2/dpaa2_ethdev.h| 8 drivers/net/dpaa2/mc/dpni.c | 50 ++ drivers

[dpdk-dev] [PATCH v3 08/20] net/dpaa2: add support for congestion notification

2017-05-22 Thread Hemant Agrawal
In case of HW egress FQ is congested, skip further transmission of frames. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 5 +- drivers/net/dpaa2/dpaa2_ethdev.c| 62 ++- drivers/net/dpaa2/dpaa2_ethdev.h| 14 drivers/net/dpaa2/dpaa

[dpdk-dev] [PATCH v3 07/20] bus/fslmc: export qbman results in map file

2017-05-22 Thread Hemant Agrawal
In order to check the congestion state of Egress FQs, this qbman function will be used by the dpaa2 ethernet PMD. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drive

[dpdk-dev] [PATCH v3 03/20] net/dpaa2: stop using software annotation

2017-05-22 Thread Hemant Agrawal
The DPAA2 driver is not using the DPAA2 frame descriptor software annotation area. This patch reduces the PTA length to zero and adjust the RX Buffer Layout accordingly. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 +- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 1

[dpdk-dev] [PATCH v3 05/20] bus/fslmc: support for parallel Rx DQ requests

2017-05-22 Thread Hemant Agrawal
DPAA2 hardware support the option to configure multiple memories for Rx recv buffer (DPAA2-DQRR). Each Rx request executing is called as 'DQ' request. This patch adds routines to get information w.r.t each DQ request. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c

[dpdk-dev] [PATCH v3 01/20] mk: change to cortex-a72

2017-05-22 Thread Hemant Agrawal
DPAA2 devices now support cortex-a72. They no longer support a57. Also, fp and simd is no more required to be stated explicitly for standard a72 core. Signed-off-by: Hemant Agrawal --- config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +- mk/machine/dpaa2/rte.vars.mk | 2 +- 2 files ch

[dpdk-dev] [PATCH v3 04/20] net/dpaa2: improve the error handling in dev init

2017-05-22 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 69 +++- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 007eda7..698fb84 100644 --- a/drivers/net/dpa

[dpdk-dev] [PATCH v3 02/20] net/dpaa2: remove port level buffer layout definition

2017-05-22 Thread Hemant Agrawal
This code in device init is not required, as the buffer layout setting is also being programmed during queue configuration. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_eth

[dpdk-dev] [PATCH v3 00/20] NXP DPAA2 PMD functional enhancements

2017-05-22 Thread Hemant Agrawal
This patchset adds following features to DPAA2 PMD: 1. improved error handling 2. parallel RX DQ requests to improve performance 3. Support for various ethdev operations 4. enable jumbo frames --- v2: * rebased on next-net * added additional comments in logs * fixed issue with shared compilation

Re: [dpdk-dev] [PATCH 2/3] net/af_packet: add accessor for iface

2017-05-22 Thread Ferruh Yigit
Hi Chas, On 5/17/2017 7:03 PM, Charles (Chas) Williams wrote: > Provide an accessor for the name of the underlying linux interface > used by the AF_PACKET-based interface. This patch provides a PMD specific API to get PMD internal data (internals->if_name). I think we should avoid PMD specific A

[dpdk-dev] ixgbevf: queue start stop functions

2017-05-22 Thread Gregory Etelson
Hello, ixgbevf PMD has no implementation for RX/TX queue start/stop functions in DPDK-17.05.0 Is there a roadmap to add these functions to DPDK ? Thank you Regards, Gregory

Re: [dpdk-dev] [RFC PATCH 00/11] net/virtio: packed ring layout

2017-05-22 Thread Jens Freimann
On Mon, May 22, 2017 at 05:14:54PM +0800, Yuanhan Liu wrote: > On Thu, May 18, 2017 at 10:24:07PM +0800, Yuanhan Liu wrote: > > On Wed, May 17, 2017 at 01:30:21PM +0200, Jens Freimann wrote: > > > Hi Yuanhan, > > > > > > On Mon, May 08, 2017 at 01:02:57PM +0800, Yuanhan Liu wrote: > > > > On Fri,

Re: [dpdk-dev] [RFC PATCH 00/11] net/virtio: packed ring layout

2017-05-22 Thread Yuanhan Liu
On Thu, May 18, 2017 at 10:24:07PM +0800, Yuanhan Liu wrote: > On Wed, May 17, 2017 at 01:30:21PM +0200, Jens Freimann wrote: > > Hi Yuanhan, > > > > On Mon, May 08, 2017 at 01:02:57PM +0800, Yuanhan Liu wrote: > > > On Fri, May 05, 2017 at 09:57:11AM -0400, Jens Freimann wrote: > > > > I'm implem

Re: [dpdk-dev] [PATCH v3 1/3] lib: add Generic Receive Offload API framework

2017-05-22 Thread Ananyev, Konstantin
Hi Jiayu, My comments/questions below. Konstantin > > For applications, DPDK GRO provides three external functions to > enable/disable GRO: > - rte_gro_init: initialize GRO environment; > - rte_gro_enable: enable GRO for a given port; > - rte_gro_disable: disable GRO for a given port. > Before us

[dpdk-dev] [PATCH v2 1/2] contigmem: free the allocated memory when error occurs

2017-05-22 Thread Tiwei Bie
Fixes: 764bf26873b9 ("add FreeBSD support") Cc: sta...@dpdk.org Signed-off-by: Tiwei Bie Acked-by: Bruce Richardson --- lib/librte_eal/bsdapp/contigmem/contigmem.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/librte_eal/bsdapp/contigmem/contigmem.

[dpdk-dev] [PATCH v2 2/2] contigmem: don't zero the pages during each mmap

2017-05-22 Thread Tiwei Bie
Don't zero the pages during each mmap. Instead, only zero the pages when they are not already mmapped. Otherwise, the multi-process support will be broken, as the pages will be zeroed when secondary processes map the memory. Besides, track the open and mmap operations on the cdev, and prevent the m

[dpdk-dev] [PATCH v2 0/2] Various fixes for contigmem

2017-05-22 Thread Tiwei Bie
Sorry, I just noticed that I forgot to destroy the initialized mtx before failing or unloading. V2 is to fix this issue. --- v2: destroy the initialized mtx before failing or unloading Tiwei Bie (2): contigmem: free the allocated memory when error occurs contigmem: don't zero the pages durin

Re: [dpdk-dev] [RFC 17.08] flow_classify: add librte_flow_classify library

2017-05-22 Thread Adrien Mazarguil
On Fri, May 19, 2017 at 12:11:53PM +0200, Thomas Monjalon wrote: > 19/05/2017 11:11, Gaëtan Rivet: > > On Fri, May 19, 2017 at 08:57:01AM +, Ananyev, Konstantin wrote: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > >> 18/05/2017 13:33, Ferruh Yigit: > > >> > On 5/17/2017 5:38 PM,

Re: [dpdk-dev] [PATCH] drivers: fix vfio kmod dependency

2017-05-22 Thread David Marchand
On Mon, May 22, 2017 at 10:25 AM, David Marchand wrote: > On Mon, May 22, 2017 at 10:18 AM, Olivier Matz wrote: >> On Sat, 20 May 2017 15:12:37 +0200, David Marchand >> wrote: >>> vfio is the kernel framework used by the vfio-pci kernel driver. >>> DPDK drivers do not rely solely on vfio, but r

Re: [dpdk-dev] [PATCH] drivers: fix vfio kmod dependency

2017-05-22 Thread David Marchand
On Mon, May 22, 2017 at 10:18 AM, Olivier Matz wrote: > On Sat, 20 May 2017 15:12:37 +0200, David Marchand > wrote: >> vfio is the kernel framework used by the vfio-pci kernel driver. >> DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain >> access to pci resources. >> >> Fix

Re: [dpdk-dev] [PATCH] drivers: fix vfio kmod dependency

2017-05-22 Thread Olivier Matz
On Sat, 20 May 2017 15:12:37 +0200, David Marchand wrote: > vfio is the kernel framework used by the vfio-pci kernel driver. > DPDK drivers do not rely solely on vfio, but rather on vfio-pci to gain > access to pci resources. > > Fixes: 0880c40113ef ("drivers: advertise kmod dependencies in pmdi

[dpdk-dev] [PATCH] vhost: support rx_queue_count

2017-05-22 Thread Zhihong Wang
This patch implements the ops rx_queue_count for vhost PMD by adding a helper function rte_vhost_rx_queue_count in vhost lib. The ops ops rx_queue_count gets vhost RX queue avail count and helps to understand the queue fill level. Signed-off-by: Zhihong Wang --- drivers/net/vhost/rte_eth_vhost.

[dpdk-dev] [PATCH] bond: update the NTT flag when partner's state changes from slow to fast

2017-05-22 Thread zhangsha.zhang
From: Sha Zhang According to the standard, state machine of lacp should transmit lacpdu when partner's state changes from slow to fast, rather than from fast to slow. Signed-off-by: Sha Zhang --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[dpdk-dev] [PATCH] bond: update the NTT flag when partner's state changes from slow to fast

2017-05-22 Thread zhangsha.zhang
From: Sha Zhang According to the standard, state machine of lacp should transmit lacpdu when partner's state changes from slow to fast, rather than from fast to slow. Signed-off-by: Sha Zhang --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-22 Thread Yuanhan Liu
On Thu, May 11, 2017 at 04:33:12PM +0200, Dariusz Stojaczyk wrote: > From: Daniel Verkamp > > Fixes unaligned access to fields. This is for fixing compile warnings with new clang 4.0? http://dpdk.org/ml/archives/dev/2017-April/064089.html If so, please show the exact warning in the commit