[dpdk-dev] [PATCH 3/3] doc: remove ABI changes in igb_uio

2017-01-23 Thread Jianfeng Tan
We announced ABI changes to remove iomem and ioport mapping in igb_uio. But it has potential backward compatibility issue: cannot run old version DPDK on modified igb_uio. The purpose of this changes was to fix a bug: when DPDK app crashes, those devices by igb_uio are not stopped either DPDK PMD

[dpdk-dev] [PATCH 0/3] doc upates

2017-01-23 Thread Jianfeng Tan
Patch 1: howto doc of virtio_user for container networking. Patch 2: howto doc of virtio_user as exceptional path. Patch 3: remove ABI changes in igb_uio Signed-off-by: Jianfeng Tan Jianfeng Tan (3): doc: add guide to use virtio_user for container networking doc: add guide to use virtio_user

[dpdk-dev] [PATCH 2/3] doc: add guide to use virtio_user as exceptional path

2017-01-23 Thread Jianfeng Tan
Signed-off-by: Jianfeng Tan --- .../howto/img/virtio_user_as_exceptional_path.svg | 1260 doc/guides/howto/index.rst |1 + .../howto/virtio_user_as_exceptional_path.rst | 142 +++ 3 files changed, 1403 insertions(+) create mode 100644 doc/g

Re: [dpdk-dev] [PATCH v3 03/10] crypto/dpaa2_sec: add dpaa2_sec poll mode driver

2017-01-23 Thread Akhil Goyal
On 1/21/2017 1:01 AM, Neil Horman wrote: On Fri, Jan 20, 2017 at 06:47:49PM +0530, Akhil Goyal wrote: On 1/20/2017 6:02 PM, Neil Horman wrote: On Fri, Jan 20, 2017 at 07:35:02PM +0530, akhil.go...@nxp.com wrote: From: Akhil Goyal Signed-off-by: Hemant Agrawal Signed-off-by: Akhil Goyal ---

Re: [dpdk-dev] [PATCHv6 02/33] drivers/common/dpaa2: adding qbman driver

2017-01-23 Thread Shreyansh Jain
Hello Ferruh, On Monday 23 January 2017 11:00 PM, Ferruh Yigit wrote: On 1/23/2017 11:59 AM, Hemant Agrawal wrote: QBMAN, is a hardware block which interfaces with the other accelerating hardware blocks (For e.g., WRIOP) on NXP's DPAA2 SoC for queue, buffer and packet scheduling. This patch in

[dpdk-dev] [PATCH] net/bnx2x: fix Rx mode configuration

2017-01-23 Thread Rasesh Mody
Check if promisc mode was set when setting allmulti mode and visa-versa. Introduced BNX2X_RX_MODE_ALLMULTI_PROMISC for the same. If check is absent the filter configuration gets over written. Fixes: 540a211084a7 ("bnx2x: driver core") Fixes: 5dbc53d7e5a2 ("net/bnx2x: restrict Rx mask flags sent to

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Wiles, Keith
> On Jan 23, 2017, at 6:43 PM, Ananyev, Konstantin > wrote: > > > >> -Original Message- >> From: Wiles, Keith >> Sent: Monday, January 23, 2017 9:53 PM >> To: Stephen Hemminger >> Cc: Hu, Jiayu ; dev@dpdk.org; Kinsella, Ray >> ; Ananyev, Konstantin >> ; Gilmore, Walter E >> ; Venka

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Jiayu Hu
On Tue, Jan 24, 2017 at 09:43:06AM +0800, Ananyev, Konstantin wrote: > > > > -Original Message- > > From: Wiles, Keith > > Sent: Monday, January 23, 2017 9:53 PM > > To: Stephen Hemminger > > Cc: Hu, Jiayu ; dev@dpdk.org; Kinsella, Ray > > ; Ananyev, Konstantin > > ; Gilmore, Walter E

Re: [dpdk-dev] [PATCH] net/i40e: fix parsing tunnel filter issue

2017-01-23 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: Xing, Beilei > Sent: Tuesday, January 24, 2017 10:44 AM > To: Wu, Jingjing > Cc: Lu, Wenzhuo; dev@dpdk.org > Subject: [PATCH] net/i40e: fix parsing tunnel filter issue > > VNI of VXLAN is parsed wrongly. The root cause is that array vni in item VXLAN > als

[dpdk-dev] [PATCH] net/i40e: fix parsing tunnel filter issue

2017-01-23 Thread Beilei Xing
VNI of VXLAN is parsed wrongly. The root cause is that array vni in item VXLAN also uses network byte ordering. Fixes: d416530e6358 ("net/i40e: parse tunnel filter") Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_flow.c | 22 ++ 1 file changed, 18 insertions(+), 4 dele

[dpdk-dev] [PATCH v4] ethdev: fix MAC address replay

2017-01-23 Thread Steve Shin
This patch fixes a bug in replaying MAC address to the hardware in rte_eth_dev_config_restore() routine. Added default MAC replay as well. Fixes: 4bdefaade6d1 ("ethdev: VMDQ enhancements") --- v2: Added default MAC replay & Code optimization v3: Covered a case (ex, SR-IOV) where multiple pools

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Ananyev, Konstantin
> -Original Message- > From: Wiles, Keith > Sent: Monday, January 23, 2017 9:53 PM > To: Stephen Hemminger > Cc: Hu, Jiayu ; dev@dpdk.org; Kinsella, Ray > ; Ananyev, Konstantin > ; Gilmore, Walter E > ; Venkatesan, Venky ; > yuanhan@linux.intel.com > Subject: Re: [dpdk-dev] [RFC] A

Re: [dpdk-dev] [PATCH v3 2/3] net/e1000: e1000 igb support to free consumed buffers

2017-01-23 Thread Lu, Wenzhuo
Hi Billy, Thanks for your explanation. It makes a picture to me ☺ Best regards Wenzhuo Lu From: Billy McFall [mailto:bmcf...@redhat.com] Sent: Monday, January 23, 2017 9:49 PM To: Lu, Wenzhuo Cc: thomas.monja...@6wind.com; dev@dpdk.org Subject: Re: [PATCH v3 2/3] net/e1000: e1000 igb support to

[dpdk-dev] [PATCH v3] ethdev: fix MAC address replay

2017-01-23 Thread Steve Shin
This patch fixes a bug in replaying MAC address to the hardware in rte_eth_dev_config_restore() routine. Added default MAC replay as well. Fixes: 4bdefaade6d1 ("ethdev: VMDQ enhancements") --- v2: Added default MAC replay & Code optimization V3: Covered a case (ex, SR-IOV)

Re: [dpdk-dev] [PATCH v2] ethdev: fix MAC address replay

2017-01-23 Thread Steve Shin (jonshin)
Dear Igor, Yes, you’re right. We need to handle a case (ex, SR-IOV) where multiple pools exist in the mac_pool_sel array. A new diff file will be uploaded with PATCH v3. Thanks & Regards, Steve From: Igor Ryzhov Date: Monday, January 23, 2017 at 12:50 AM To: Steve Shin Cc: "dev@dpdk.org" , Fe

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Wiles, Keith
> On Jan 23, 2017, at 10:15 AM, Stephen Hemminger > wrote: > > On Mon, 23 Jan 2017 21:03:12 +0800 > Jiayu Hu wrote: > >> With the support of hardware segmentation techniques in DPDK, the >> networking stack overheads of send-side of applications, which directly >> leverage DPDK, have been gre

[dpdk-dev] [PATCH v4 3/3] net/vhost: vHost support to free consumed buffers

2017-01-23 Thread Billy McFall
Add support to the vHostdriver for the new API to force free consumed buffers on Tx ring. vHost does not cache the mbufs so there is no work to do. Signed-off-by: Billy McFall --- doc/guides/nics/features/vhost.ini | 1 + drivers/net/vhost/rte_eth_vhost.c | 11 +++ 2 files changed, 12

[dpdk-dev] [PATCH v4 1/3] ethdev: new API to free consumed buffers in Tx ring

2017-01-23 Thread Billy McFall
Add a new API to force free consumed buffers on Tx ring. API will return the number of packets freed (0-n) or error code if feature not supported (-ENOTSUP) or input invalid (-ENODEV). Signed-off-by: Billy McFall --- doc/guides/nics/features/default.ini | 1 + lib/librte_ether/rte_ethdev.c

[dpdk-dev] [PATCH v4 2/3] net/e1000: e1000 igb support to free consumed buffers

2017-01-23 Thread Billy McFall
Add support to the e1000 igb driver for the new API to force free consumed buffers on Tx ring. e1000 igb driver does not implement a tx_rs_thresh to free mbufs, it frees a slot in the ring as needed, so a new function needed to be written. Signed-off-by: Billy McFall --- doc/guides/nics/features

[dpdk-dev] [PATCH v4 0/3] new API to free consumed buffers in Tx ring

2017-01-23 Thread Billy McFall
See request from 11/21/2016: http://dpdk.org/ml/archives/dev/2016-November/050585.html Add a new API to free consumed buffers on TX ring. This addresses two scenarios: 1) Flooding a packet and want to reuse existing mbuf to avoid a packet copy. Increment the reference count of the packet and pol

Re: [dpdk-dev] [PATCH] igb_uio: use non-threaded ISR

2017-01-23 Thread Stephen Hemminger
On Mon, 23 Jan 2017 19:20:02 + "Su, David W" wrote: > If rte_eth_conf.intr_conf.rxq != 0 and rte_eth_conf.intr_conf.lsc = 0 when > rte_eth_dev_configure() is called, rx queue interrupts can be > enabled/disabled with rte_eth_dev_rx_intr_{enable|disable} and DPDK > applications can wait for

Re: [dpdk-dev] [PATCH] igb_uio: use non-threaded ISR

2017-01-23 Thread Su, David W
If rte_eth_conf.intr_conf.rxq != 0 and rte_eth_conf.intr_conf.lsc = 0 when rte_eth_dev_configure() is called, rx queue interrupts can be enabled/disabled with rte_eth_dev_rx_intr_{enable|disable} and DPDK applications can wait for rx queue interrupts with rte_epoll_wait(). This is the case for

Re: [dpdk-dev] [PATCH] mk: parallelize make config

2017-01-23 Thread Michał Mirosław
2017-01-22 2:50 GMT+01:00 Ferruh Yigit : > make config dependency resolving was always running serial, > parallelize it for better performance. > > $ time make T=x86_64-native-linuxapp-gcc config > real0m12.633s > > $ time make -j8 T=x86_64-native-linuxapp-gcc config > real0m1.826s [...] >

Re: [dpdk-dev] [PATCHv6 00/33] NXP DPAA2 PMD

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: <...> > > Hemant Agrawal (33): > mk/dpaa2: add the crc support to the machine type > drivers/common/dpaa2: adding qbman driver > bus/fslmc: introducing fsl-mc bus driver > bus/fslmc: introduce mc object functions > bus/fslmc: add mc dpni obje

Re: [dpdk-dev] [PATCHv6 00/33] NXP DPAA2 PMD

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: <...> > > Hemant Agrawal (33): > mk/dpaa2: add the crc support to the machine type > drivers/common/dpaa2: adding qbman driver > bus/fslmc: introducing fsl-mc bus driver > bus/fslmc: introduce mc object functions > bus/fslmc: add mc dpni obje

Re: [dpdk-dev] [PATCH] mk: parallelize make config

2017-01-23 Thread Wiles, Keith
> On Jan 23, 2017, at 10:18 AM, Olivier Matz wrote: > > Hi Ferruh, > > On Sun, 22 Jan 2017 01:50:34 +, Ferruh Yigit > wrote: >> make config dependency resolving was always running serial, >> parallelize it for better performance. >> >> $ time make T=x86_64-native-linuxapp-gcc config >> re

Re: [dpdk-dev] [PATCHv6 22/33] net/dpaa2: add support for l3 and l4 checksum offload

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- <...> > --- a/drivers/net/dpaa2/Makefile > +++ b/drivers/net/dpaa2/Makefile > @@ -66,6 +66,6 @@ DEPDIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD) += lib/librte_eal > lib/librte_ether > DEPDIRS-$(CONFIG_RTE_LIBRTE_DPAA2_PMD)

Re: [dpdk-dev] [PATCHv6 18/33] net/dpaa2: adding eth ops to dpaa2

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: > Signed-off-by: Hemant Agrawal > --- <...> > static int > dpaa2_dev_init(struct rte_eth_dev *eth_dev) > { <...> > + eth_dev->data->nb_rx_queues = priv->nb_rx_queues; > + eth_dev->data->nb_tx_queues = priv->nb_tx_queues; No need to assign t

Re: [dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: > Adding NXP DPAA2 architecture specific mempool support > Each mempool instance is represented by a DPBP object > from the FSL-MC bus. > > This patch also registers a dpaa2 type MEMPOOL OPS > > Signed-off-by: Hemant Agrawal > --- <...> > diff --git

Re: [dpdk-dev] [PATCHv6 12/33] net/dpaa2: introducing NXP dpaa2 pmd driver

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: > add support for fsl-mc bus based dpaa2 pmd driver. > > Signed-off-by: Hemant Agrawal > --- <...> > diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile > new file mode 100644 > index 000..f85aa9f > --- /dev/null > +++ b/drivers/n

Re: [dpdk-dev] [PATCHv6 02/33] drivers/common/dpaa2: adding qbman driver

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 11:59 AM, Hemant Agrawal wrote: > QBMAN, is a hardware block which interfaces with the other > accelerating hardware blocks (For e.g., WRIOP) on NXP's DPAA2 > SoC for queue, buffer and packet scheduling. > > This patch introduces a userspace driver for interfacing with > the QBMAN hw

[dpdk-dev] [PATCH] mk: optimize directory dependencies

2017-01-23 Thread Olivier Matz
Before this patch, the management of dependencies between directories had several issues: - the generation of .depdirs, done at configuration is slow: it can take more than one minute on some slow targets (usually ~10s on a standard PC). - for instance, it is possible to expressed a dependenc

Re: [dpdk-dev] [PATCH] mk: parallelize make config

2017-01-23 Thread Olivier Matz
Hi Ferruh, On Sun, 22 Jan 2017 01:50:34 +, Ferruh Yigit wrote: > make config dependency resolving was always running serial, > parallelize it for better performance. > > $ time make T=x86_64-native-linuxapp-gcc config > real0m12.633s > > $ time make -j8 T=x86_64-native-linuxapp-gcc conf

Re: [dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Stephen Hemminger
On Mon, 23 Jan 2017 21:03:12 +0800 Jiayu Hu wrote: > With the support of hardware segmentation techniques in DPDK, the > networking stack overheads of send-side of applications, which directly > leverage DPDK, have been greatly reduced. But for receive-side, numbers of > segmented packets serious

[dpdk-dev] [PATCH] mempool: fix stack handler dequeue

2017-01-23 Thread Olivier Matz
The return value of the stack handler is wrong: it should be 0 on success, not the number of objects dequeued. This could lead to memory leaks depending on how the caller checks the return value (ret < 0 or ret != 0). This was also breaking autotests with debug enabled, because the debug cookies a

Re: [dpdk-dev] [PATCH v6 0/6] distributor library performance enhancements

2017-01-23 Thread Bruce Richardson
On Mon, Jan 23, 2017 at 09:24:34AM +, David Hunt wrote: > This patch aims to improve the throughput of the distributor library. > > It uses a similar handshake mechanism to the previous version of > the library, in that bits are used to indicate when packets are ready > to be sent to a worker

Re: [dpdk-dev] [RFC] lib/librte_ether: consistent PMD batching behavior

2017-01-23 Thread Adrien Mazarguil
On Fri, Jan 20, 2017 at 11:48:22AM +, Bruce Richardson wrote: > On Fri, Jan 20, 2017 at 11:24:40AM +, Ananyev, Konstantin wrote: > > > > > > From: Andrew Rybchenko [mailto:arybche...@solarflare.com] > > > Sent: Friday, January 20, 2017 10:26 AM > > > To: Yang, Zhiyong ; dev@dpdk.org > > >

[dpdk-dev] [PATCH v6 0/6] distributor library performance enhancements

2017-01-23 Thread David Hunt
This patch aims to improve the throughput of the distributor library. It uses a similar handshake mechanism to the previous version of the library, in that bits are used to indicate when packets are ready to be sent to a worker and ready to be returned from a worker. One main difference is that in

[dpdk-dev] [PATCH v6 6/6] doc: distributor library changes for new burst API

2017-01-23 Thread David Hunt
Signed-off-by: David Hunt --- doc/guides/prog_guide/packet_distrib_lib.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/prog_guide/packet_distrib_lib.rst b/doc/guides/prog_guide/packet_distrib_lib.rst index b5bdabb..dffd4ad 100644 --- a/doc/guides/prog_guide/packet_distrib_

[dpdk-dev] [PATCH v6 5/6] examples/distributor_app: showing burst API

2017-01-23 Thread David Hunt
Signed-off-by: David Hunt --- examples/distributor/main.c | 511 ++-- 1 file changed, 393 insertions(+), 118 deletions(-) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index e7641d2..b0d8b31 100644 --- a/examples/distributor/main.c

[dpdk-dev] [PATCH v6 3/6] test: unit tests for new distributor burst API

2017-01-23 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_distributor.c | 501 ++-- 1 file changed, 392 insertions(+), 109 deletions(-) diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index 85cb8f3..3871f86 100644 --- a/app/test/test_distributor.c

[dpdk-dev] [PATCH v6 4/6] test: add distributor perf autotest

2017-01-23 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_distributor_perf.c | 150 +++ 1 file changed, 138 insertions(+), 12 deletions(-) diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index 7947fe9..9132010 100644 --- a/app/test/test_dist

[dpdk-dev] [PATCH v6 1/6] lib: distributor performance enhancements

2017-01-23 Thread David Hunt
Now sends bursts of up to 8 mbufs to each worker, and tracks the in-flight flow-ids (atomic scheduling) New file with a new api, similar to the old API except with _burst at the end of the function names. This is to preserve the original API (and code) for backward compatibility. It uses a simila

[dpdk-dev] [PATCH v6 2/6] lib: add distributor vector flow matching

2017-01-23 Thread David Hunt
Signed-off-by: David Hunt --- lib/librte_distributor/Makefile| 7 ++ lib/librte_distributor/rte_distributor_burst.c | 12 ++- .../rte_distributor_match_generic.c| 43 lib/librte_distributor/rte_distributor_match_sse.c | 113

[dpdk-dev] transmit lockup on i210

2017-01-23 Thread Dennis Montgomery
Hello DPDK community, I haven’t found any relevant errata/fix notes so I’m asking here. I’m running into a transmit lockup on an i210 NIC: the transmit descriptor ring fills up and never drains. I’ve instrumented my code to dump out all extended stats and registers and found that when the trans

Re: [dpdk-dev] [PATCH v3 0/3] new API to free consumed buffers in Tx ring

2017-01-23 Thread Thomas Monjalon
Hi, Thanks for bringing a new convenient API. 2017-01-20 11:01, Billy McFall: > Based on a request from Damjan Marion and seconded by Keith Wiles, see > dpdk-dev mailing list from 11/21/2016, Generally we use links to ML archives to show prior discussions. > add a new API to free consumed > buf

[dpdk-dev] [PATCH] maintainers: update mlx4/mlx5

2017-01-23 Thread Adrien Mazarguil
Promote Nelio as additional maintainer for mlx4 and mlx5 PMDs. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro Acked-by: Olga Shern --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f071138..541c888 100644 --- a/MAINTAINERS +++ b/M

Re: [dpdk-dev] [PATCH 1/2] net/i40e: fix MAC check when delete MAC

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 9:42 AM, Jingjing Wu wrote: > When VF sends request to remove MAC address, PF host will check > if it is a non-zero or unicast address. When VF remove a multicast > address, it will report error. > This patch fixes this issue. > > Fixes: ec852c94af39 ("net/i40e: enhance sanity check o

Re: [dpdk-dev] [PATCH v3 2/3] net/e1000: e1000 igb support to free consumed buffers

2017-01-23 Thread Billy McFall
There are two scenarios the APP calls this API (there may be others, but the API was designed with these two in mind): 1) APP receives a packet that needs to be flooded. Instead of making a copy of the packet (whether it is the whole packet, just the header or a clone buffer is used, as done today

Re: [dpdk-dev] [PATCH] net/qede/base: fix freebsd compilation

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 5:02 AM, Rasesh Mody wrote: > This patch addresses compilation errors on FreeBSD 11.0 clang 3.8.0. > > Fixes: ec94dbc57362 ("qede: add base driver") > > Signed-off-by: Rasesh Mody Applied to dpdk-next-net/master, thanks. (FreeBSD version information removed from commit)

Re: [dpdk-dev] [PATCH] net/qede/base: fix freebsd compilation

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 10:21 AM, Thomas Monjalon wrote: > 2017-01-22 21:02, Rasesh Mody: >> This patch addresses compilation errors on FreeBSD 11.0 clang 3.8.0. > > Is it really specific to FreeBSD 11? I guess it is more about clang. > Right, this seem clang 3.8.0 issue, independent from FreeBSD version.

Re: [dpdk-dev] [PATCH v6 1/2] kni: add bulk function to free mbufs

2017-01-23 Thread Olivier Matz
Hi, [resent and updated, previous mail was sent from the wrong address] On Mon, 23 Jan 2017 13:59:47 +0100, Olivier Matz wrote: > > + * @param mbufs > > + * The packets mbufs array to be freed. > > + * @param n > > + * Number of packets. > > + */ > > +static inline void rte_pktmbuf_free_bul

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 1:06 PM, Ananyev, Konstantin wrote: > > >> -Original Message- >> From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] >> Sent: Monday, January 23, 2017 12:53 PM >> To: Ananyev, Konstantin >> Cc: Yigit, Ferruh ; dev@dpdk.org; Thomas Monjalon >> ; Horton, Remy >> >> Subjec

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ananyev, Konstantin
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > Sent: Monday, January 23, 2017 12:53 PM > To: Ananyev, Konstantin > Cc: Yigit, Ferruh ; dev@dpdk.org; Thomas Monjalon > ; Horton, Remy > > Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset > > On Mo

[dpdk-dev] [RFC] Add GRO support in DPDK

2017-01-23 Thread Jiayu Hu
With the support of hardware segmentation techniques in DPDK, the networking stack overheads of send-side of applications, which directly leverage DPDK, have been greatly reduced. But for receive-side, numbers of segmented packets seriously burden the networking stack of applications. Generic Recei

[dpdk-dev] [PATCH] doc: announce API/ABI changes for vhost

2017-01-23 Thread Yuanhan Liu
I made a vhost ABI/API refactoring at v16.04, meant to avoid such issue forever. Well, apparently, I lied. People are looking for more vhost-user options now days, other than vhost-user net only. For example, SPDK (Storage Performance Development Kit) are looking for chance of vhost-user SCSI and

Re: [dpdk-dev] [PATCH v6 1/2] kni: add bulk function to free mbufs

2017-01-23 Thread Olivier Matz
Hi, On Thu, 19 Jan 2017 11:46:58 +0700, Sergey Vyazmitinov wrote: > Suggested-by: Stephen Hemminger > Signed-off-by: Sergey Vyazmitinov > --- > v3: > * Fixed issue with possible different mempools in buffer list. > * Fixed issue with wrong rte_pktmbuf_alloc_bulk function return value > processi

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Yuanhan Liu
On Mon, Jan 23, 2017 at 12:44:11PM +, Ananyev, Konstantin wrote: > > On Mon, Jan 23, 2017 at 07:40:50PM +0800, Yuanhan Liu wrote: > > > On Mon, Jan 23, 2017 at 11:32:23AM +, Ferruh Yigit wrote: > > > > On 1/23/2017 11:24 AM, Yuanhan Liu wrote: > > > > > On Mon, Jan 23, 2017 at 11:05:25AM +0

Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset

2017-01-23 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Yuanhan Liu > Sent: Monday, January 23, 2017 11:56 AM > To: Yigit, Ferruh > Cc: dev@dpdk.org; Thomas Monjalon ; Horton, Remy > > Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong memset > > On Mon, Jan 23, 201

Re: [dpdk-dev] [PATCH v2] doc: add tso capabilities feature for mlx5

2017-01-23 Thread Olga Shern
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ferruh Yigit > Sent: Monday, January 23, 2017 2:30 PM > To: Elad Persiko ; dev@dpdk.org; Adrien Mazarguil > > Subject: Re: [dpdk-dev] [PATCH v2] doc: add tso capabilities feature for mlx5 > > On 1/10/2017 9:18 AM,

Re: [dpdk-dev] [PATCH v5 5/6] examples/distributor_app: showing burst API

2017-01-23 Thread Bruce Richardson
On Fri, Jan 20, 2017 at 09:18:52AM +, David Hunt wrote: > Signed-off-by: David Hunt > --- > examples/distributor/main.c | 509 > ++-- > 1 file changed, 391 insertions(+), 118 deletions(-) > Another minor nit from checkpatch. /Bruce ### examples/dis

Re: [dpdk-dev] [PATCH v2] doc: add tso capabilities feature for mlx5

2017-01-23 Thread Ferruh Yigit
On 1/10/2017 9:18 AM, Elad Persiko wrote: > > Thanks, > The feature is not supported on MLX4. I will fix it on V2 The new version of this patch will be squashed to "net/mlx5: last WQE no room inline" patchset, right? > > -Original Message- > From: Ferruh Yigit [mailto:ferruh.yi...@intel

Re: [dpdk-dev] [PATCH 1/5] net/mlx5: last WQE no room inline

2017-01-23 Thread Ferruh Yigit
On 1/8/2017 3:41 PM, Elad Persiko wrote: > Prior to this patch, when sending a packet and the following > conditions were reached: > 1. last working queue element is used. > 2. inline was requested by the user > 3. no room for inline packet. > then the inline request was ignored a

Re: [dpdk-dev] [PATCH v5 1/6] lib: distributor performance enhancements

2017-01-23 Thread Bruce Richardson
On Fri, Jan 20, 2017 at 09:18:48AM +, David Hunt wrote: > Now sends bursts of up to 8 mbufs to each worker, and tracks > the in-flight flow-ids (atomic scheduling) > > New file with a new api, similar to the old API except with _burst > at the end of the function names. This is to preserve the

Re: [dpdk-dev] [PATCH] cryptodev: crypto PMD functions incorrectly inlined

2017-01-23 Thread Zhang, Roy Fan
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Declan Doherty > Sent: Monday, January 23, 2017 12:19 PM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; > sta...@dpdk.org; Doherty, Declan > Subject: [dpdk-dev] [PATCH] cryptodev: crypto PMD functions incorrectly

Re: [dpdk-dev] [PATCH v1] net/ixgbe: add more check in n-tuple filter

2017-01-23 Thread Ferruh Yigit
On 1/23/2017 3:32 AM, Wei Zhao wrote: > Add more check on the mask of src_addr, dst_addr and next_proto_id > in n-tuple filter rule pattern parser.If do not add such check, > it maybe cause error in pattern parser. > > Signed-off-by: zhao wei > --- > drivers/net/ixgbe/ixgbe_flow.c | 5 - > 1

[dpdk-dev] [PATCH] cryptodev: crypto PMD functions incorrectly inlined

2017-01-23 Thread Declan Doherty
rte_cryptodev_pmd_get_dev, rte_cryptodev_pmd_get_named_dev, rte_cryptodev_pmd_is_valid_dev were incorrectly marked as inline and therefore not useable from crypto PMDs when built as shared libraries as they accessed the global rte_cryptodev_globals device structure. Fixes: d11b0f30 ("cryptodev: i

[dpdk-dev] [PATCH] buildtools: allow symlinks within a source directory

2017-01-23 Thread Bruce Richardson
When creating the symlinks for header files to the include folder, the relpath script dereferenced all symlinks. This made it impossible to have file A.h renamed to B.h and then symlinked back to its original name. This is useful to be able to do when refactoring or reworking a library. Change this

[dpdk-dev] [PATCHv6 33/33] drivers/common/dpaa2: frame queue based dq storage alloc

2017-01-23 Thread Hemant Agrawal
This patch adds generic functions for allowing dq storage for the frame queues. As the frame queues are common resource for different drivers this is helpful. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 32 + drivers/bus/fslmc/porta

Re: [dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix memory leak when parsing device params

2017-01-23 Thread Ferruh Yigit
On 1/22/2017 8:24 AM, Shahaf Shuler wrote: > in case of an error argument list is not freed. > > Fixes: e72dd09b614e ("net/mlx5: add support for configuration through kvargs") > CC: sta...@dpdk.org > > Signed-off-by: Shahaf Shuler Applied to dpdk-next-net/master, thanks.

[dpdk-dev] [PATCHv6 32/33] bus/fslmc: add support for dmamap to ARM SMMU

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 96 + drivers/bus/fslmc/fslmc_vfio.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 2 + 4 files changed, 100 insert

[dpdk-dev] [PATCHv6 31/33] net/dpaa2: enabling the use of physical addresses

2017-01-23 Thread Hemant Agrawal
DPAA2 - ARM support both physical and virtual addressing. This patch enables the compile time usages of physical address instead of virtual address. The current usages are also set to default as Physical Address. Signed-off-by: Hemant Agrawal --- config/common_base| 1 +

[dpdk-dev] [PATCHv6 28/33] net/dpaa2: basic stats support

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 86 ++ 2 files changed, 87 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 0660cab..d43f

[dpdk-dev] [PATCHv6 29/33] net/dpaa2: enable stashing for LS2088A devices

2017-01-23 Thread Hemant Agrawal
As the hardware determines which core will process which packet, performance is boosted by direct cache warming/stashing as well as by providing biasing for core-to-flow affinity, which ensures that flow-specific data structures can remain in the core’s cache. This patch enables the one cache line

[dpdk-dev] [PATCHv6 30/33] net/dpaa2: add support for non hw buffer pool packet transmit

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 75 -- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index c1ea33a..a94761c 100644 --- a/drivers/net/dpaa2/dp

[dpdk-dev] [PATCHv6 27/33] net/dpaa2: link status update

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 107 + 2 files changed, 108 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index 0746d4b..06

[dpdk-dev] [PATCHv6 24/33] net/dpaa2: add mtu config support

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 4 drivers/net/dpaa2/dpaa2_ethdev.c| 34 + 3 files changed, 39 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini

[dpdk-dev] [PATCHv6 25/33] net/dpaa2: add packet rx and tx support

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 53 +++ drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/dpaa2_ethdev.c| 4 + drivers/net/dpaa2/dpaa2_ethdev.h| 3 + drivers/net/dpaa2/dpaa2_rxtx.c | 260 +++

[dpdk-dev] [PATCHv6 26/33] net/dpaa2: rx packet parsing and packet type support

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni_annot.h | 257 +++ drivers/net/dpaa2/dpaa2_ethdev.c | 23 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 91 +- 4 files ch

[dpdk-dev] [PATCHv6 23/33] net/dpaa2: add support for promiscuous mode

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/dpaa2_ethdev.c | 41 ++ 2 files changed, 42 insertions(+) diff --git a/doc/guides/nics/features/dpaa2.ini b/doc/guides/nics/features/dpaa2.ini index d50c62e..b7c2

[dpdk-dev] [PATCHv6 22/33] net/dpaa2: add support for l3 and l4 checksum offload

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 2 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 6 +++ drivers/net/dpaa2/Makefile | 2 +- drivers/net/dpaa2/dpaa2_ethdev.c| 72 +++-- 4 files changed, 77 insertions(+), 5

[dpdk-dev] [PATCHv6 20/33] net/dpaa2: configure mac address at init

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 28 drivers/net/dpaa2/dpaa2_ethdev.h | 3 +++ 2 files changed, 31 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 87f7640..979dba4 100644 --- a/

[dpdk-dev] [PATCHv6 21/33] net/dpaa2: attach the buffer pool to dpni

2017-01-23 Thread Hemant Agrawal
This patch configures a MC-DPNI based DPAA2 PMD network port with a DPBP based buffer pool. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 10 ++ drivers/net/dpaa2/Makefile | 3 ++ drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 57 +++

[dpdk-dev] [PATCHv6 19/33] net/dpaa2: add rss flow distribution

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/net/dpaa2/Makefile | 1 + drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 287 + drivers/net/dpaa2/dpaa2_ethdev.c | 31 +++- drivers/net/dpaa2/dpaa2_ethdev.h

[dpdk-dev] [PATCHv6 18/33] net/dpaa2: adding eth ops to dpaa2

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- doc/guides/nics/features/dpaa2.ini | 1 + drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 20 ++ drivers/net/dpaa2/Makefile | 3 + drivers/net/dpaa2/dpaa2_ethdev.c| 412 +++- drivers/net/dpaa2/dpaa2_ethdev.h

[dpdk-dev] [PATCHv6 16/33] drivers/pool/dpaa2: adding hw offloaded mempool

2017-01-23 Thread Hemant Agrawal
Adding NXP DPAA2 architecture specific mempool support Each mempool instance is represented by a DPBP object from the FSL-MC bus. This patch also registers a dpaa2 type MEMPOOL OPS Signed-off-by: Hemant Agrawal --- MAINTAINERS | 1 + config/common_base

[dpdk-dev] [PATCHv6 17/33] drivers/common/dpaa2: dpio routine to affine to crypto threads

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c| 45 + drivers/bus/fslmc/portal/dpaa2_hw_dpio.h| 3 ++ drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + 3 files changed, 49 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2

[dpdk-dev] [PATCHv6 14/33] bus/fslmc: add debug log message support

2017-01-23 Thread Hemant Agrawal
Signed-off-by: Hemant Agrawal --- config/common_base| 7 +++ config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 ++ drivers/bus/fslmc/Makefile| 5 ++ drivers/bus/fslmc/fslmc_logs.h| 76 +++ drivers/common/dpaa2/qbman/Ma

[dpdk-dev] [PATCHv6 15/33] drivers/common/dpaa2: dpio portal driver

2017-01-23 Thread Hemant Agrawal
The portal driver is bound to DPIO objects discovered on the fsl-mc bus and provides services that: - allow other drivers, such as the Ethernet driver, to enqueue and dequeue frames for their respective objects A system will typically allocate 1 DPIO object per CPU to allow queuing operations to

[dpdk-dev] [PATCHv6 12/33] net/dpaa2: introducing NXP dpaa2 pmd driver

2017-01-23 Thread Hemant Agrawal
add support for fsl-mc bus based dpaa2 pmd driver. Signed-off-by: Hemant Agrawal --- MAINTAINERS | 1 + config/common_base | 4 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 + drivers/bus/Makefile| 2 +

[dpdk-dev] [PATCHv6 13/33] doc: add dpaa2 nic details

2017-01-23 Thread Hemant Agrawal
This patch adds the NXP dpaa2 architecture and pmd details in the Network interfaces section. Signed-off-by: Hemant Agrawal Acked-by: John McNamara --- MAINTAINERS| 1 + doc/guides/nics/dpaa2.rst | 593 + doc/guides/nics

[dpdk-dev] [PATCHv6 11/33] bus/fslmc: scan for net and sec devices

2017-01-23 Thread Hemant Agrawal
This patch will add support in fslmc vfio process to scan and parse the dpni and dpseci object for net and crypto devices. It will add the scanned devices to the fslmc bus. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 63 +- 1 file ch

[dpdk-dev] [PATCHv6 10/33] bus/fslmc: add vfio support

2017-01-23 Thread Hemant Agrawal
Add support for using VFIO for dpaa2 based fsl-mc bus. There are some differences in the way vfio used for fsl-mc bus from the eal vfio. - The scanning of bus for individual objects on the basis of the DPRC container. - The use and mapping of MC portal for object access With the evolution of

[dpdk-dev] [PATCHv6 09/33] eal/vfio: adding vfio utility functions in map file

2017-01-23 Thread Hemant Agrawal
adding extra vfio utility functions to map file. They will be used by other vfio supported buses like fslmc bus for NXP DPAA2 devices Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 3 +++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 3 +++ 2 files change

[dpdk-dev] [PATCHv6 08/33] bus/fslmc: add mc dpseci object support

2017-01-23 Thread Hemant Agrawal
dpseci represent a instance of SEC HW in DPAA2. Signed-off-by: Cristian Sovaiala Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpseci.c | 534 ++ drivers/bus/fslmc/mc/fsl_dpseci.h | 668 +++

[dpdk-dev] [PATCHv6 07/33] bus/fslmc: add mc dpbp object support

2017-01-23 Thread Hemant Agrawal
DPBP object represent a hw based buffer pool instance in the DPAA2 hardware. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/dpbp.c | 237 drivers/bus/fslmc/mc/

[dpdk-dev] [PATCHv6 06/33] bus/fslmc: add mc dpio object support

2017-01-23 Thread Hemant Agrawal
This patch adds the DPIO object support in MC driver. DPIO - Data Path Input Output represent the processing context to access the QBMAN HW for packet I/O. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/mc/

[dpdk-dev] [PATCHv6 05/33] bus/fslmc: add mc dpni object support

2017-01-23 Thread Hemant Agrawal
This patch add support for dpni object support in MC driver. DPNI represent a network interface object in DPAA2. Signed-off-by: Alex Marginean Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/Makefile |1 + drivers/bus/fslmc/mc/dpni.c | 739

[dpdk-dev] [PATCHv6 04/33] bus/fslmc: introduce mc object functions

2017-01-23 Thread Hemant Agrawal
This patch intoduces the DPAA2 MC(Management complex Driver). This is a minimal set of low level functions to send and receive commands to the fsl-mc. It includes support for basic management commands and commands to manipulate MC objects. This is common to be used by various DPAA2 PMDs. e.g.net,

[dpdk-dev] [PATCHv6 03/33] bus/fslmc: introducing fsl-mc bus driver

2017-01-23 Thread Hemant Agrawal
The fslmc bus driver is a rte_bus driver which scans the fsl-mc bus for NXP DPAA2 SoCs. Signed-off-by: Hemant Agrawal --- MAINTAINERS | 1 + config/common_base | 5 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 5 + drivers/Makefil

  1   2   >