Re: [dpdk-dev] [PATCH v2 1/9] test: use SPDX tag for Cavium copyright files

2018-01-08 Thread Hemant Agrawal
On 1/8/2018 10:55 AM, Jerin Jacob wrote: Signed-off-by: Jerin Jacob --- test/test/test_bitmap.c| 32 ++-- test/test/test_eventdev.c | 32 ++-- test/test/test_eventdev_octeontx.c | 32 ++-- t

Re: [dpdk-dev] [PATCH] net/i40e: change VF default ITR interval

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wu, Jingjing > Sent: Wednesday, December 27, 2017 2:19 PM > To: Xing, Beilei > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/i40e: change VF default ITR interval > > > > > -Original Message- >

Re: [dpdk-dev] [PATCH v3 09/10] app/testpmd: enforce offloads caps

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 09/10] app/testpmd: enforce offloads caps > > In the current de

Re: [dpdk-dev] [PATCH v8 0/2] support input set configuration

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Beilei Xing > Sent: Monday, January 8, 2018 11:09 AM > To: Wu, Jingjing; Lu, Wenzhuo; Zhang, Qi Z > Cc: dev@dpdk.org; Chilikin, Andrey > Subject: [dpdk-dev] [PATCH v8 0/2] support input set configuration > > The

Re: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Zhang, Qi Z > Sent: Friday, December 22, 2017 9:27 AM > To: Xing, Beilei; Wu, Jingjing > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix FDIR rule confiliction issue > > > -O

Re: [dpdk-dev] [PATCH v7] vhost: support virtqueue interrupt/notification suppression

2018-01-08 Thread Yao, Lei A
> -Original Message- > From: Chen, Junjie J > Sent: Tuesday, January 9, 2018 7:04 PM > To: y...@fridaylinux.org; maxime.coque...@redhat.com; Wang, Xiao W > ; Bie, Tiwei ; Yao, Lei A > > Cc: dev@dpdk.org; Chen, Junjie J > Subject: [PATCH v7] vhost: support virtqueue interrupt/notificatio

Re: [dpdk-dev] [PATCH v3 08/10] app/testpmd: remove txqflags

2018-01-08 Thread Lu, Wenzhuo
Hi Shahaf, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 08/10] app/testpmd: remove txqflags > > Since testpmd is

Re: [dpdk-dev] [PATCH v3 04/10] app/testpmd: convert to new Ethdev Tx offloads API

2018-01-08 Thread Lu, Wenzhuo
Hi Shahaf, > -Original Message- > From: Shahaf Shuler [mailto:shah...@mellanox.com] > Sent: Tuesday, January 9, 2018 2:48 PM > To: Lu, Wenzhuo ; Wu, Jingjing > ; Yigit, Ferruh > Cc: dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH v3 04/10] app/testpmd: convert to new > Ethdev Tx offloads AP

Re: [dpdk-dev] [PATCH 2/2] event/sw: use dynamically-sized IQs

2018-01-08 Thread Pavan Nikhilesh
Hi Gage, On Mon, Jan 08, 2018 at 06:36:36PM +, Eads, Gage wrote: > Hi Pavan, > > Thanks for the report and the GDB output. We've reproduced this and traced it > down to how the PMD (mis)handles the re-configuration case. When the SW PMD > is reconfigured, it reallocates the IQ chunks and rei

Re: [dpdk-dev] [PATCH v6 0/2] move RSS to flow API

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: Zhao1, Wei > Sent: Tuesday, January 9, 2018 2:44 PM > To: dev@dpdk.org > Cc: Zhang, Helin > Subject: [PATCH v6 0/2] move RSS to flow API > > The patches mainly finish following functions: > 1) igb move RSS to flow API > 2) ixgbe move RSS to flow API > > v2:

Re: [dpdk-dev] [PATCH v2 15/39] examples/ipsec-secgw: convert to new ethdev offloads API

2018-01-08 Thread Akhil Goyal
Hi Pablo, On 1/8/2018 9:57 PM, De Lara Guarch, Pablo wrote: -Original Message- From: Shahaf Shuler [mailto:shah...@mellanox.com] Sent: Thursday, December 21, 2017 1:45 PM To: De Lara Guarch, Pablo ; dev@dpdk.org; Ananyev, Konstantin ; Nicolau, Radu ; arybche...@solarflare.com Subject:

Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix parsing fdir nvgre issue

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Lu, Wenzhuo > Sent: Thursday, January 4, 2018 4:41 PM > To: Zhao1, Wei; dev@dpdk.org > Cc: Zhang, Qi Z; Zhao1, Wei > Subject: Re: [dpdk-dev] [PATCH v2] net/ixgbe: fix parsing fdir nvgre issue > > Hi, > > > > --

[dpdk-dev] [PATCH v6 1/2] net/e1000: move RSS to flow API

2018-01-08 Thread Wei Zhao
Rte_flow actually defined to include RSS, but till now, RSS is out of rte_flow. This patch is to move igb existing RSS to rte_flow. The old RSS configuration is still reserved. Signed-off-by: Wei Zhao Acked-by: Wei Dai --- doc/guides/rel_notes/release_18_02.rst | 6 ++ drivers/net/e1000/e1000

[dpdk-dev] [PATCH v6 2/2] net/ixgbe: move RSS to flow API

2018-01-08 Thread Wei Zhao
Rte_flow actually defined to include RSS, but till now, RSS is out of rte_flow. This patch is to move ixgbe existing RSS to rte_flow. The old RSS configuration is still reserved. Signed-off-by: Wei Zhao Acked-by: Wei Dai --- doc/guides/rel_notes/release_18_02.rst | 6 +- drivers/net/ixgbe/ixg

[dpdk-dev] [PATCH v6 0/2] move RSS to flow API

2018-01-08 Thread Wei Zhao
The patches mainly finish following functions: 1) igb move RSS to flow API 2) ixgbe move RSS to flow API v2: -fix bug for RSS flush code. -fix patch check warning. v3: -fix bug for ixgbe rss restore. v4: -fix build warning and add release notes comment. v5: -rebase patch set. v6: -rebase patch

Re: [dpdk-dev] [PATCH v3 04/10] app/testpmd: convert to new Ethdev Tx offloads API

2018-01-08 Thread Shahaf Shuler
Hi, Tuesday, January 9, 2018 7:28 AM, Lu, Wenzhuo: > Hi Shahaf, > > > -Original Message- > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > > Sent: Tuesday, December 26, 2017 5:44 PM > > To: Wu, Jingjing ; Yigit, Ferruh > > > > Cc: dev@dpdk.org > > Subject: [dpdk-de

[dpdk-dev] [PATCH v4] net/ixgbe: fix l3fwd start failed on VF

2018-01-08 Thread Yanglong Wu
VF can't run in multi queue mode, if nb_q_per_pool was set as 1. Nb_q_per_pool is passed through to max_rx_q and max_tx_q in VF. So if nb_q_per_pool is equal to 1, max_rx_q and max_tx_q can't be more than 1 and VF multi queue mode will fail. Fixes: 27b609cbd1c6 (ethdev: move the multi-queue mode c

Re: [dpdk-dev] [PATCH 04/25] net/i40e/base: release spinlock before function returns

2018-01-08 Thread Xing, Beilei
> -Original Message- > From: Zhang, Qi Z > Sent: Monday, January 8, 2018 11:43 AM > To: Xing, Beilei > Cc: dev@dpdk.org; Wu, Jingjing ; Zhang, Qi Z > > Subject: [PATCH 04/25] net/i40e/base: release spinlock before function > returns > > Fix a bug that adminq spin lock is not be release

Re: [dpdk-dev] [PATCH v3 06/10] app/testpmd: cleanup internal Tx offloads flags field

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 06/10] app/testpmd: cleanup internal Tx > offloads flags field >

[dpdk-dev] [PATCH v5 0/2] move RSS to flow API

2018-01-08 Thread Wei Zhao
The patches mainly finish following functions: 1) igb move RSS to flow API 2) ixgbe move RSS to flow API v2: -fix bug for RSS flush code. -fix patch check warning. v3: -fix bug for ixgbe rss restore. v4: -fix build warning and add release notes comment. v5: -rebase patch set. Wei Zhao (2): n

Re: [dpdk-dev] [PATCH v3] doc: add queue region feature info to release notes

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: Zhang, Helin > Sent: Tuesday, January 9, 2018 2:26 PM > To: Zhao1, Wei; dev@dpdk.org > Cc: Mcnamara, John > Subject: RE: [PATCH v3] doc: add queue region feature info to release notes > > > > > -Original Message- > > From: Zhao1, Wei > > Sent: Monda

[dpdk-dev] [PATCH v5 1/2] net/e1000: move RSS to flow API

2018-01-08 Thread Wei Zhao
Rte_flow actually defined to include RSS, but till now, RSS is out of rte_flow. This patch is to move igb existing RSS to rte_flow. The old RSS configuration is still reserved. Signed-off-by: Wei Zhao Acked-by: Wei Dai --- doc/guides/rel_notes/release_18_02.rst | 6 ++ drivers/net/e1000/e1000

[dpdk-dev] [PATCH v5 2/2] net/ixgbe: move RSS to flow API

2018-01-08 Thread Wei Zhao
Rte_flow actually defined to include RSS, but till now, RSS is out of rte_flow. This patch is to move ixgbe existing RSS to rte_flow. The old RSS configuration is still reserved. Signed-off-by: Wei Zhao Acked-by: Wei Dai --- doc/guides/rel_notes/release_18_02.rst | 6 +- drivers/net/ixgbe/ixg

Re: [dpdk-dev] [PATCH v3] doc: add queue region feature info to release notes

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: Zhao1, Wei > Sent: Monday, January 8, 2018 11:40 AM > To: dev@dpdk.org > Cc: Zhang, Helin; Mcnamara, John; Zhao1, Wei > Subject: [PATCH v3] doc: add queue region feature info to release notes > > This patch add inforation about i40e queue region realted to re

Re: [dpdk-dev] [PATCH 21/25] net/i40e/base: code clean

2018-01-08 Thread Xing, Beilei
> -Original Message- > From: Zhang, Qi Z > Sent: Monday, January 8, 2018 11:44 AM > To: Xing, Beilei > Cc: dev@dpdk.org; Wu, Jingjing ; Zhang, Qi Z > > Subject: [PATCH 21/25] net/i40e/base: code clean > > 1. Add more debug information in PF reset 2. Remove some redandant code. > 3. clea

Re: [dpdk-dev] [PATCH v3] doc: add queue region feature info to release notes

2018-01-08 Thread Zhao1, Wei
> -Original Message- > From: Zhang, Helin > Sent: Tuesday, January 9, 2018 2:17 PM > To: Zhao1, Wei ; dev@dpdk.org > Cc: Mcnamara, John > Subject: RE: [PATCH v3] doc: add queue region feature info to release notes > > > > > -Original Message- > > From: Zhang, Helin > > Sent: T

Re: [dpdk-dev] [PATCH v3] doc: add queue region feature info to release notes

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: Zhang, Helin > Sent: Tuesday, January 9, 2018 2:15 PM > To: Zhao1, Wei; dev@dpdk.org > Cc: Mcnamara, John > Subject: RE: [PATCH v3] doc: add queue region feature info to release notes > > > > > -Original Message- > > From: Zhao1, Wei > > Sent: Monda

Re: [dpdk-dev] [PATCH v3] doc: add queue region feature info to release notes

2018-01-08 Thread Zhang, Helin
> -Original Message- > From: Zhao1, Wei > Sent: Monday, January 8, 2018 11:40 AM > To: dev@dpdk.org > Cc: Zhang, Helin; Mcnamara, John; Zhao1, Wei > Subject: [PATCH v3] doc: add queue region feature info to release notes > > This patch add inforation about i40e queue region realted to re

[dpdk-dev] [PATCH v7 1/3] net/virtio: make control queue thread-safe

2018-01-08 Thread Xiao Wang
The virtio_send_command function may be called from app's configuration routine, but also from an interrupt handler called when live migration is done on the backup side. So this patch makes control queue thread-safe first. Signed-off-by: Xiao Wang --- drivers/net/virtio/virtio_ethdev.c | 7

[dpdk-dev] [PATCH v7 2/3] net/virtio: add packet injection method

2018-01-08 Thread Xiao Wang
This patch adds dev_pause, dev_resume and inject_pkts api to allow driver to pause the worker threads and inject special packets into Tx queue. The next patch will be based on this. Signed-off-by: Xiao Wang --- drivers/net/virtio/virtio_ethdev.c | 56 + drive

[dpdk-dev] [PATCH v7 3/3] net/virtio: support GUEST ANNOUNCE

2018-01-08 Thread Xiao Wang
When live migration is done, for the backup VM, either the virtio frontend or the vhost backend needs to send out gratuitous RARP packet to announce its new network location. This patch enables VIRTIO_NET_F_GUEST_ANNOUNCE feature to support live migration scenario where the vhost backend doesn't h

[dpdk-dev] [PATCH v7 0/3] net/virtio: support GUEST ANNOUNCE

2018-01-08 Thread Xiao Wang
v7: - Improve comment for state_lock. - Rename spinlock variable 'sl' to 'lock'. v6: - Use rte_pktmbuf_alloc() instead of rte_mbuf_raw_alloc(). - Remove the 'len' parameter in calling virtio_send_command(). - Remove extra space between typo and var. - Improve comment and alignment. - Remove the un

Re: [dpdk-dev] [PATCH v3 05/10] app/testpmd: fix flowgen forwarding ol flags

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org; cchempara...@tilera.com; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v3 05/10] app/testpmd: fi

Re: [dpdk-dev] [PATCH v2 05/10] app/testpmd: fix flowgen forwarding ol flags

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 12, 2017 8:53 PM > To: Yigit, Ferruh ; Wu, Jingjing > > Cc: dev@dpdk.org; cchempara...@tilera.com; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH v2 05/10] app/testpmd: fi

Re: [dpdk-dev] [PATCH v3 04/10] app/testpmd: convert to new Ethdev Tx offloads API

2018-01-08 Thread Lu, Wenzhuo
Hi Shahaf, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 04/10] app/testpmd: convert to new Ethdev > Tx offloads A

Re: [dpdk-dev] [PATCH] mbuf:using sanity checks do not panic on null mbuf

2018-01-08 Thread Jerin Jacob
-Original Message- > Date: Mon, 8 Jan 2018 09:34:23 -0600 > From: Keith Wiles > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] mbuf:using sanity checks do not panic on null > mbuf > X-Mailer: git-send-email 2.10.1 > > The rte_pktmbuf_free() allows for NULL mbuf pointer, but > when sanity

[dpdk-dev] [PATCH v7] vhost: support virtqueue interrupt/notification suppression

2018-01-08 Thread Junjie Chen
The driver can suppress interrupt when VIRTIO_F_EVENT_IDX feature bit is negotiated. The driver set vring flags to 0, and MAY use used_event in available ring to advise device interrupt util reach an index specified by used_event. The device ignore the lower bit of vring flags, and send an interrup

Re: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags

2018-01-08 Thread Yang, Qiming
I’ll detail it. Thanks. From: Andrew Rybchenko [mailto:arybche...@solarflare.com] Sent: Saturday, January 6, 2018 6:22 PM To: Yang, Qiming ; dev@dpdk.org; tho...@monjalon.net Subject: Re: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags On 01/04/2018 09:15 PM, Qiming Yang wrote: Detail

Re: [dpdk-dev] [PATCH v3 03/10] app/testpmd: support check of single port stop

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 03/10] app/testpmd: support check of single > port stop > > Thi

Re: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags

2018-01-08 Thread Yang, Qiming
> -Original Message- > From: Shahaf Shuler [mailto:shah...@mellanox.com] > Sent: Sunday, January 7, 2018 2:33 PM > To: Andrew Rybchenko ; Yang, Qiming > ; dev@dpdk.org; Thomas Monjalon > > Subject: RE: [dpdk-dev] [DPDK] lib/librte_ether: add comments RSS flags > > Saturday, January 6, 201

Re: [dpdk-dev] [PATCH v3 02/10] app/testpmd: convert to new Ethdev Rx offloads API

2018-01-08 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Shahaf Shuler > Sent: Tuesday, December 26, 2017 5:44 PM > To: Wu, Jingjing ; Yigit, Ferruh > > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3 02/10] app/testpmd: convert to new Ethdev > Rx offloads API >

Re: [dpdk-dev] [PATCH v6 2/3] net/virtio: add packet injection method

2018-01-08 Thread Wang, Xiao W
> -Original Message- > From: Wang, Xiao W > Sent: Monday, January 8, 2018 11:12 PM > To: Yuanhan Liu > Cc: Bie, Tiwei ; dev@dpdk.org; > step...@networkplumber.org > Subject: RE: [PATCH v6 2/3] net/virtio: add packet injection method > > > > > -Original Message- > > From: Yuanh

Re: [dpdk-dev] [PATCH v2] net/i40e: move RSS to flow API

2018-01-08 Thread Zhang, Qi Z
Checked with author offline. Require more comments to explain the acceptable pattern for i40e_flow_parse_rss_pattern and also need to correct the logic since current implementation will accept any combination of ETH and VLAN pattern which does not make sense. Regards Qi > -Original Messag

Re: [dpdk-dev] [PATCH v5] net/ixgbe: fix l3fwd start failed on

2018-01-08 Thread Wu, Yanglong
Hi, Konstantin Thanks for your comments! Do you means that tx_q is must less than rx_q when the SRIOV is active and if not, the application case will not be supported? Do you think my patch will cause to 2 (or more cores) could try to TX packets through the same TX queue? And as far as I kn

Re: [dpdk-dev] [PATCH v6] vhost: support virtqueue interrupt/notification suppression

2018-01-08 Thread Yuanhan Liu
On Tue, Jan 09, 2018 at 02:12:02AM +, Chen, Junjie J wrote: > > > + if (vring_need_event(vhost_used_event(vq), new, old) > > > > It's a bit weird that you use one from the standard linux header file > > (vring_need_event), while you define you own one (vhost_used_event). > > Note that

Re: [dpdk-dev] [PATCH v6] vhost: support virtqueue interrupt/notification suppression

2018-01-08 Thread Chen, Junjie J
Hi > -Original Message- > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > Sent: Monday, January 8, 2018 10:07 PM > To: Chen, Junjie J > Cc: Wang, Xiao W ; maxime.coque...@redhat.com; > Bie, Tiwei ; dev@dpdk.org; Yao, Lei A > > Subject: Re: [PATCH v6] vhost: support virtqueue interrupt/

Re: [dpdk-dev] [PATCH v4 01/15] net/avf/base: add base code for avf PMD

2018-01-08 Thread Lu, Wenzhuo
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, January 8, 2018 11:28 PM > To: Lu, Wenzhuo > Cc: dev@dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v4 01/15] net/avf/base: add base code for avf > PMD > > On Mon, 8 J

Re: [dpdk-dev] [dpdk-ci] [PATCHv3 0/4] dpdk: enhance EXPERIMENTAL api tagging

2018-01-08 Thread Neil Horman
On Fri, Jan 05, 2018 at 11:00:52AM -0500, Neil Horman wrote: > On Fri, Jan 05, 2018 at 03:08:52PM +0100, Thomas Monjalon wrote: > > 04/01/2018 13:56, Neil Horman: > > > On Sat, Dec 30, 2017 at 12:15:17PM -0500, Neil Horman wrote: > > > > Thomas- > > > > I just noticed that the ci tests are fai

Re: [dpdk-dev] [PATCH] maintainers: update mlx drivers sub tree

2018-01-08 Thread Thomas Monjalon
04/01/2018 21:01, Shahaf Shuler: > Mellanox PMD patches should target the next-net-mlx sub tree. > > Signed-off-by: Shahaf Shuler Acked-by: Thomas Monjalon Applied, thanks

Re: [dpdk-dev] [PATCH] devtools: ignore checkpatch warning for maintainers file

2018-01-08 Thread Thomas Monjalon
05/01/2018 23:33, Stephen Hemminger: > On Fri, 5 Jan 2018 12:43:02 +0100 > Thomas Monjalon wrote: > > > The script checkpatch.pl from Linux is enforcing a tab > > in the MAINTAINERS file (Linux commit 628f91a28649). > > It can be ignored in our wrapper checkpatches.sh. > > > > Suggested-by: Rem

Re: [dpdk-dev] [PATCH v7 1/2] eal: add uevent monitor for hot plug

2018-01-08 Thread Thomas Monjalon
Hi Jeff, I am surprised that there is not a lot of review of these very important patches. Maybe it is not easy to review. Let's try to progress in the following days. This patch is really too big with a lot of concepts spread in separate files, so it is difficult to properly review. Please, try

[dpdk-dev] [BUG] ACL library using printf

2018-01-08 Thread Stephen Hemminger
In general, DPDK functions must not print to stdout (or stderr) directly because typically DPDK applications are run as daemons and console is redirected to /dev/null. Doing a small audit of this noticed that ACL library needs to be fixed. Instead of looking at log_level and using printf, it shou

[dpdk-dev] [PATCH v3] bus/vdev: add custom scan hook

2018-01-08 Thread Thomas Monjalon
The scan callback allows to spawn a vdev automatically given some custom scan rules. It is especially useful to create a TAP device automatically connected to a netdevice as remote. Signed-off-by: Thomas Monjalon Acked-by: Jianfeng Tan --- v3: - add deadlock comment - return -1 o

[dpdk-dev] [PATCH] net/mlx5: fix overwriting bit-fields in SW Rx queue

2018-01-08 Thread Yongseok Koh
Bit-fields in mlx5_rxq_data can be chagned on the fly by a control plane - e.g. rxq->mark. However, vectorized Rx uses a bit-field to mark pending errors. Even if one bit is written, consuquence is to write the whole integer and this can cause a synchronization issue - two entities write to a same

Re: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name

2018-01-08 Thread Stephen Hemminger
My comment was intended as an FYI for future usage. -Original Message- From: Thomas Monjalon [mailto:tho...@monjalon.net] Sent: Monday, January 8, 2018 10:46 AM To: Stephen Hemminger Cc: dev@dpdk.org; Stephen Hemminger ; Jerin Jacob ; Adrien Mazarguil Subject: Re: [dpdk-dev] [PATCH v3

Re: [dpdk-dev] [PATCH 01/13] net/bnxt: check return values in bnxt_dev_init

2018-01-08 Thread Stephen Hemminger
On Mon, 8 Jan 2018 12:24:25 -0800 Ajit Khaparde wrote: > + rc = bnxt_hwrm_queue_qportcfg(bp); > + if (rc) { > + RTE_LOG(ERR, PMD, "hwrm queue qportcfg failed\n"); > + goto error_free; > + } I noticed that this driver is still using RTE_LOG directly. The curre

[dpdk-dev] [PATCH 13/13] net/bnxt: check on-chip resources

2018-01-08 Thread Ajit Khaparde
Check for availability of on-chip resources - like Queue count, number stat context, number of ring groups before inheriting and initializing as per application requirements. Also check before creating a Tx or Rx queue make sure there are enough resources to complete the request. Signed-off-by: Aj

[dpdk-dev] [PATCH 12/13] bnxt/bnxt: free the aggregration ring while freeing all the HWRM rings

2018-01-08 Thread Ajit Khaparde
From: Somnath Kotur bnxt_free_all_hwrm_rings() was freeing all the Rx Rings including zero-ing out the memory for the Aggregration rings, but was not issuing the FW cmd to destroy the AGG ring(s) from HW. This would manifest in problems when port stop/port start would be issued as there would be

[dpdk-dev] [PATCH 10/13] net/bnxt: fix duplicate filter pattern creation error

2018-01-08 Thread Ajit Khaparde
From: Somnath Kotur If the attribute/pattern for a flow is the same, with only the 'action' i.e the destination queue index changing, allow it by cleaning up the older ntuple filter and updating the existing flow with the new filter rule having the new destination queue ID. Also, clear the L2 fil

[dpdk-dev] [PATCH 11/13] net/bnxt: fix bug with duplicate pattern for 5tuple filter

2018-01-08 Thread Ajit Khaparde
From: Somnath Kotur When user re-issues same 5 tuple filter pattern cmd with different destination queue, it would flag it as an existing match. However, when deletion on this filter was attempted, it would crash as the 'vnic' from which the filter was being removed from would be different. Fix

[dpdk-dev] [PATCH 06/13] net/bnxt: add check for multi host PF per port.

2018-01-08 Thread Ajit Khaparde
Certain SKUs of NIC can support features like NPAR, Multi Host PFs per port. We need to check for such features in order to restrict certain HWRM commands from being sent to the FW. For the single PF per port model, allow commands like hwrm_port_phy_cfg from the PF driver. In NPAR and MH environm

[dpdk-dev] [PATCH 07/13] net/bnxt: check if initialization is done before accessing stats

2018-01-08 Thread Ajit Khaparde
Maintain state of PMD initialization and check it before checking stats. In certain cases, we might end up accessing stats before the required HWRM commands are processed by FW. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt.h| 1 + drivers/net/bnxt/bnxt_ethdev.c | 2 ++ drivers/

[dpdk-dev] [PATCH 05/13] net/bnxt: return proper error code

2018-01-08 Thread Ajit Khaparde
If the FW fails bnxt_hwrm_func_reset() with an error status, instead of returning -1, return a more standard value of -EIO. Similarly sometimes the status returned by certain FW commands may not be generic. Return a more standard value of -EIO in that case as well. Signed-off-by: Ajit Khaparde --

[dpdk-dev] [PATCH 09/13] net/bnxt: remove unnecessary addition of a temporary filter

2018-01-08 Thread Ajit Khaparde
filter1 which is used to just get the l2 filter FW id and not used later was unecessarily being inserted into a list and was not being freed after it's use was done. Fix it by not doing the list insertion and releasing it back to the free filter pool. Signed-off-by: Somnath Kotur Signed-off-by: A

[dpdk-dev] [PATCH 08/13] net/bnxt: fix check for ether_type

2018-01-08 Thread Ajit Khaparde
As per documentation, While supporting ethertype_filters matching ether_types 0x0800 (IPv4) and 0x86DD (IPv6) is invalid. But we were wrongly doing that. This patch fixes it. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.

[dpdk-dev] [PATCH 04/13] net/bnxt: fix grp_info usage

2018-01-08 Thread Ajit Khaparde
Ring groups is a Rx only attribute. Make sure there are sufficient ring groups available. Return an error if they are not available. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_cpr.c| 1 - drivers/net/bnxt/bnxt_ethdev.c | 15 +-- drivers/net/bnxt/bnxt_hwrm.c | 14 ++

[dpdk-dev] [PATCH 02/13] net/bnxt: fix double increment of idx during Tx ring alloc

2018-01-08 Thread Ajit Khaparde
We are incrementing idx twice while allocating Tx rings. Since this is passed to the firmware, it may cause unexpected behavior. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ring.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/d

[dpdk-dev] [PATCH 03/13] net/bnxt: parse checksum offload flags

2018-01-08 Thread Ajit Khaparde
Parse the Tx checksum offload flags and set the proper bits in the Tx descriptor. Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_txr.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/net/b

[dpdk-dev] [PATCH 00/13] bnxt atchset

2018-01-08 Thread Ajit Khaparde
Please apply these patches. Ajit Khaparde (10): net/bnxt: check return values in bnxt_dev_init net/bnxt: fix double increment of idx during Tx ring alloc net/bnxt: parse checksum offload flags net/bnxt: fix grp_info usage net/bnxt: return proper error code net/bnxt: add check for multi

[dpdk-dev] [PATCH 01/13] net/bnxt: check return values in bnxt_dev_init

2018-01-08 Thread Ajit Khaparde
We are not checking for return values of functions like bnxt_hwrm_queue_qportcfg and bnxt_hwrm_func_qcfg in bnxt_dev_init thereby preventing a cleanup in case of a HWRM command failure. This patch fixes that. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 12 ++-- 1 fi

Re: [dpdk-dev] [PATCH 1/2] app/testpmd: fix invalid rxq number setting

2018-01-08 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Wei Dai > Sent: Monday, January 8, 2018 1:03 PM > To: Lu, Wenzhuo ; Wu, Jingjing ; > Peng, Yuan > Cc: dev@dpdk.org; sta...@dpdk.org; Dai, Wei > Subject: [dpdk-dev] [PATCH 1/2] app/testpmd: fix invalid rxq numbe

Re: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name

2018-01-08 Thread Thomas Monjalon
08/01/2018 17:54, Stephen Hemminger: > On Sun, 7 Jan 2018 23:20:42 +0100 > Thomas Monjalon wrote: > > > diff --git a/lib/librte_eal/common/arch/arm/rte_hypervisor.c > > b/lib/librte_eal/common/arch/arm/rte_hypervisor.c > > new file mode 100644 > > index 0..3792fe2ce > > --- /dev/null >

Re: [dpdk-dev] [PATCH 2/2] event/sw: use dynamically-sized IQs

2018-01-08 Thread Eads, Gage
Hi Pavan, Thanks for the report and the GDB output. We've reproduced this and traced it down to how the PMD (mis)handles the re-configuration case. When the SW PMD is reconfigured, it reallocates the IQ chunks and reinitializes the chunk freelist, but it doesn't delete the stale pointers in sw-

[dpdk-dev] [PATCH v3 15/15] net/enic: use _rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
This driver was not doing atomic update of link status information. And the return value was different than others. The hardware also does not do autonegotiation (at least on Linux). Signed-off-by: Stephen Hemminger --- drivers/net/enic/enic_ethdev.c | 5 ++--- drivers/net/enic/enic_main.c |

[dpdk-dev] [PATCH v3 12/15] net/thunderx: use _rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Use new helper function. Signed-off-by: Stephen Hemminger --- drivers/net/thunderx/nicvf_ethdev.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index d65d3cee727e..e41b379f3c9c 100

[dpdk-dev] [PATCH v3 14/15] net/octeontx: use rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Common function matches this drivers usage. Signed-off-by: Stephen Hemminger --- drivers/net/octeontx/octeontx_ethdev.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index bd24

[dpdk-dev] [PATCH v3 13/15] net/szedata: use _rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Yet another driver which was not returing correct value on link change. Since this driver can't be built on x86 could not even do a compile test. Signed-off-by: Stephen Hemminger --- drivers/net/szedata2/rte_eth_szedata2.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions

[dpdk-dev] [PATCH v3 11/15] net/liquidio: use _rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Use the new link update API, and cleanup the logic in the the link update routine. Tested-by: Shijith Thotton Signed-off-by: Stephen Hemminger --- drivers/net/liquidio/lio_ethdev.c | 54 ++- 1 file changed, 8 insertions(+), 46 deletions(-) diff --git a/drive

[dpdk-dev] [PATCH v3 10/15] net/i40e: use rte_eth_linkstatus functions

2018-01-08 Thread Stephen Hemminger
Use new rte_linkstatus update API Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_ethdev.c| 44 ++- drivers/net/i40e/i40e_ethdev_vf.c | 19 ++--- 2 files changed, 8 insertions(+), 55 deletions(-) diff --git a/drivers/net/i40e/i40e_e

[dpdk-dev] [PATCH v3 08/15] net/ixgbe: use rte_eth_linkstatus functions

2018-01-08 Thread Stephen Hemminger
Use the new helper functions from eth_dev for handling atomic link_info update. Signed-off-by: Stephen Hemminger --- drivers/net/ixgbe/ixgbe_ethdev.c | 99 +++- 1 file changed, 17 insertions(+), 82 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/

[dpdk-dev] [PATCH v3 09/15] net/sfc: use new rte_eth_linkstatus functions

2018-01-08 Thread Stephen Hemminger
Use the new API (_rte_eth_linkstatus_set) to handle link status update. Signed-off-by: Stephen Hemminger --- drivers/net/sfc/sfc_ethdev.c | 27 +++ drivers/net/sfc/sfc_ev.c | 23 --- 2 files changed, 11 insertions(+), 39 deletions(-) diff --git a/

[dpdk-dev] [PATCH v3 07/15] net/e1000: use rte_eth_linkstatus helpers

2018-01-08 Thread Stephen Hemminger
Use new rte_eth_linkstatus_get/set API. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 70 +++-- drivers/net/e1000/igb_ethdev.c | 71 +++--- 2 files changed, 10 insertions(+), 131 deletions(-) diff --

[dpdk-dev] [PATCH v3 06/15] net/nfp: use rte_eth_linkstatus functions

2018-01-08 Thread Stephen Hemminger
Use new _rte_eth_linkstatus_get/set helper function. Signed-off-by: Stephen Hemminger --- drivers/net/nfp/nfp_net.c | 75 +-- 1 file changed, 8 insertions(+), 67 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 050

[dpdk-dev] [PATCH v3 03/15] net/virtio: use eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Use the new comon code in ethdev to handle link status update. Signed-off-by: Stephen Hemminger --- drivers/net/virtio/virtio_ethdev.c | 64 +++--- 1 file changed, 11 insertions(+), 53 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/vi

[dpdk-dev] [PATCH v3 04/15] net/vmxnet3: use rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Use new _rte_eth_link_update helper. Also remove no longer necessary include of rte_atomic.h Signed-off-by: Stephen Hemminger --- drivers/net/vmxnet3/vmxnet3_ethdev.c | 85 +++- 1 file changed, 15 insertions(+), 70 deletions(-) diff --git a/drivers/net/vmxnet3/vm

[dpdk-dev] [PATCH v3 05/15] net/dpaa2: use rte_eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
Use new helper function to update the link status. As a good side effect this fixes a but because this driver was not returning correct status (should be -1 in link_status changed). Signed-off-by: Stephen Hemminger --- drivers/net/dpaa2/dpaa2_ethdev.c | 65 +--

[dpdk-dev] [PATCH v3 02/15] ethdev: add linkstatus get/set helper functions

2018-01-08 Thread Stephen Hemminger
Many drivers are all doing copy/paste of the same code to atomically update the link status. Reduce duplication, and allow for future changes by having common function for this. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 36 lib/libr

[dpdk-dev] [PATCH v3 00/15] common ethdev linkstatus functions

2018-01-08 Thread Stephen Hemminger
While reviewing drivers, noticed a lot of unnecessary duplication of code in drivers for handling the eth_dev link status information. While consolidating this, it also became obvious that some drivers behave differently for no good reason. It also was a good chance to introduce atomic exchange pr

[dpdk-dev] [PATCH v3 01/15] eal: introduce atomic exchange operation

2018-01-08 Thread Stephen Hemminger
To handle atomic update of link status (64 bit), every driver was doing its own version using cmpset. Atomic exchange is a useful primitive in its own right; therefore make it a EAL routine. Signed-off-by: Stephen Hemminger --- .../common/include/arch/x86/rte_atomic.h | 24 +++ ...

Re: [dpdk-dev] [PATCH v2 17/20] crypto/ccp: add cpu based md5 and sha2 family auth algo support

2018-01-08 Thread De Lara Guarch, Pablo
Hi Ravi, > -Original Message- > From: Ravi Kumar [mailto:ravi1.ku...@amd.com] > Sent: Friday, January 5, 2018 9:40 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2 17/20] crypto/ccp: add cpu based md5 and sha2 family > auth algo support > > Auth operations can be pe

Re: [dpdk-dev] [PATCH v2 20/20] doc: add ccp crypto poll mode driver to release notes

2018-01-08 Thread De Lara Guarch, Pablo
Hi Ravi, > -Original Message- > From: Ravi Kumar [mailto:ravi1.ku...@amd.com] > Sent: Friday, January 5, 2018 9:40 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2 20/20] doc: add ccp crypto poll mode driver to release > notes > I think you can add this patch direc

Re: [dpdk-dev] [PATCH v2 12/20] crypto/ccp: add aes-cmac auth algo aupport

2018-01-08 Thread De Lara Guarch, Pablo
Hi Ravi, > -Original Message- > From: Ravi Kumar [mailto:ravi1.ku...@amd.com] > Sent: Friday, January 5, 2018 9:40 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2 12/20] crypto/ccp: add aes-cmac auth algo aupport > > Signed-off-by: Ravi Kumar ... > --- a/drivers

Re: [dpdk-dev] [PATCH v2 03/20] crypto/ccp: add basic pmd ops support for start, stop, config etc

2018-01-08 Thread De Lara Guarch, Pablo
> -Original Message- > From: Ravi Kumar [mailto:ravi1.ku...@amd.com] > Sent: Friday, January 5, 2018 9:40 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2 03/20] crypto/ccp: add basic pmd ops support for start, > stop, config etc > > Signed-off-by: Ravi Kumar Cha

Re: [dpdk-dev] [PATCH v2 01/20] crypto/ccp: add AMD ccp crypto pmd support

2018-01-08 Thread De Lara Guarch, Pablo
Hi Ravi, > -Original Message- > From: Ravi Kumar [mailto:ravi1.ku...@amd.com] > Sent: Friday, January 5, 2018 9:40 AM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo > Subject: [PATCH v2 01/20] crypto/ccp: add AMD ccp crypto pmd support > Change to "crypto/ccp: support AMD CCP PMD" or ma

Re: [dpdk-dev] [PATCH] build: add support for detecting march on ARM

2018-01-08 Thread Bruce Richardson
On Sat, Dec 30, 2017 at 10:07:54PM +0530, Pavan Nikhilesh wrote: > Added support for detecting march and mcpu by reading midr_el1 register. > The implementer, primary part number values read can be used to figure > out the underlying arm cpu. > > Signed-off-by: Pavan Nikhilesh > --- > > The cur

Re: [dpdk-dev] [PATCH v2 03/15] virtio: use eth_linkstatus_set

2018-01-08 Thread Stephen Hemminger
On Sat, 6 Jan 2018 11:10:08 +0800 Tiwei Bie wrote: > Hi Stephen, > > On Fri, Jan 05, 2018 at 05:06:44PM -0800, Stephen Hemminger wrote: > > Use the new comon code in ethdev to handle link status update. > > Typo: comon -> common > > > > > Signed-off-by: Stephen Hemminger > [...] > > sta

Re: [dpdk-dev] [PATCH v3] eal/x86: get hypervisor name

2018-01-08 Thread Stephen Hemminger
On Sun, 7 Jan 2018 23:20:42 +0100 Thomas Monjalon wrote: > diff --git a/lib/librte_eal/common/arch/arm/rte_hypervisor.c > b/lib/librte_eal/common/arch/arm/rte_hypervisor.c > new file mode 100644 > index 0..3792fe2ce > --- /dev/null > +++ b/lib/librte_eal/common/arch/arm/rte_hypervisor.c

Re: [dpdk-dev] [PATCH] bus/pci: forbid VA as IOVA mode if IOMMU address width too small

2018-01-08 Thread Maxime Coquelin
On 01/08/2018 04:54 PM, Maxime Coquelin wrote: On 01/08/2018 04:38 PM, Stephen Hemminger wrote: On Mon,  8 Jan 2018 14:51:27 +0100 Maxime Coquelin wrote: +static inline bool +pci_one_device_iommu_support_va(struct rte_pci_device *dev) +{ +#if defined(RTE_ARCH_PPC_64) +    return false; +#

Re: [dpdk-dev] [PATCH v2 15/39] examples/ipsec-secgw: convert to new ethdev offloads API

2018-01-08 Thread De Lara Guarch, Pablo
> -Original Message- > From: Shahaf Shuler [mailto:shah...@mellanox.com] > Sent: Thursday, December 21, 2017 1:45 PM > To: De Lara Guarch, Pablo ; > dev@dpdk.org; Ananyev, Konstantin ; > Nicolau, Radu ; arybche...@solarflare.com > Subject: RE: [dpdk-dev] [PATCH v2 15/39] examples/ipsec-se

Re: [dpdk-dev] [PATCH] doc: fix a typo in sample apps guide (kni)

2018-01-08 Thread Ferruh Yigit
On 12/29/2017 12:08 PM, Rami Rosen wrote: > This trivial patch fixes a typo in sample apps guide, in > the kernel nic interface (kni) section. > Using "-config", as it is now today in this doc, will not > work and will emit an error; it shuold be "--config" instead, > and this patch fixes it acco

  1   2   3   >