Re: [dpdk-dev] [PATCH v4 01/19] net/hinic/base: add mbox command channel for SRIOV

2019-10-28 Thread Wangxiaoyun (Cloud, Network Chip Application Development Dept)
Hi Gavin, Thanks for your comments, I will fix the code style issue in Patch v5, and the bit operation for hinic_test_bit and others has beed replaced with common rte_io_XX_bit APIs by Joyce Kong's pathces, I will check other remained bit operations and replace it with the common one. Best

Re: [dpdk-dev] [PATCH v6 00/15] A new net PMD - hinic

2019-10-28 Thread Wangxiaoyun (Cloud, Network Chip Application Development Dept)
Hi David , Thanks for your comments, I check the test-report from dpdk.org(https://mails.dpdk.org/archives/test-report/2019-October/101893.html), which shows hinic pmd driver passed meson build on FreeBSD12-64, also I analysize the building errs, pthread_mutex_consistent is defined in on Fr

Re: [dpdk-dev] [PATCH] net/bonding: fix segfault using invalid port

2019-10-28 Thread Ye Xiaolong
On 10/29, Yang, Qiming wrote: >> -Original Message- >> From: Ye, Xiaolong >> Sent: Tuesday, October 29, 2019 11:04 AM >> To: Yang, Qiming >> Cc: Jiang, JunyuX ; dev@dpdk.org; Chas Williams >> ; sta...@dpdk.org >> Subject: Re: [dpdk-dev] [PATCH] net/bonding: fix segfault using invalid port

Re: [dpdk-dev] [PATCH] net/ice: fix rte flow framework

2019-10-28 Thread Ye Xiaolong
On 10/29, Ying Wang wrote: >In non-pipeline mode, switch should be used as fdir's backup. >The patch fiexed rule can't be created when fdir's flow table is full. > >Fixes: 7615a6895009 ("net/ice: rework for generic flow enabling") > >Signed-off-by: Ying Wang >--- > drivers/net/ice/ice_generic_flow

Re: [dpdk-dev] [PATCH] net/bonding: fix segfault using invalid port

2019-10-28 Thread Yang, Qiming
> -Original Message- > From: Ye, Xiaolong > Sent: Tuesday, October 29, 2019 11:04 AM > To: Yang, Qiming > Cc: Jiang, JunyuX ; dev@dpdk.org; Chas Williams > ; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/bonding: fix segfault using invalid port > > On 10/28, Yang, Qiming wrote: >

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 13:47 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 13:47 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

Re: [dpdk-dev] [PATCH v2 2/3] config: add arm neoverse N1 SDP configuration

2019-10-28 Thread Honnappa Nagarahalli
> > 28/10/2019 04:24, Honnappa Nagarahalli: > > > 23/10/2019 07:03, Jerin Jacob: > > > > On Wed, Oct 23, 2019 at 2:37 AM Honnappa Nagarahalli > > > > wrote: > > > > > > > > On Thu, 2019-08-01 at 07:48 +0800, Gavin Hu wrote: > > > > > > > > > Arm N1 SDP is an infrastructure segment development >

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Jerin Jacob
On Tue, Oct 29, 2019 at 11:12 AM Wang, Haiyue wrote: > > > -Original Message- > > From: Jerin Jacob > > Sent: Tuesday, October 29, 2019 13:20 > > To: Wang, Haiyue > > Cc: Thomas Monjalon ; Yigit, Ferruh > > ; dpdk-dev > > ; Ye, Xiaolong ; Kinsella, Ray > > ; > > Iremonger, Bernard ; Su

Re: [dpdk-dev] [PATCH 0/7] net/mlx5: support for flow action on VLAN header

2019-10-28 Thread Slava Ovsiienko
Hi, Hideyuki. Thanks for providing extra information. We rechecked the VLAN actions support in OFED 4.7.1, it should be supported. There are some limitations: - VLAN pop is supported on ingress direction only - VLAN push is supported on egress direction only - not supported in group 0 (this is r

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 13:20 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

Re: [dpdk-dev] [PATCH] net/ice: fix unexpected link down

2019-10-28 Thread Ye Xiaolong
Hi, Qi On 10/29, Qi Zhang wrote: >Not to turn down link during dev_stop, it will cause the device >can't be bind by kernel driver after DPDK driver quit. > >Fixes: e6161345d8a9 ("net/ice: support link status change") >Cc: sta...@dpdk.org > >Signed-off-by: Qi Zhang >--- > drivers/net/ice/ice_ethde

[dpdk-dev] [v2] net/ixgbe:fix wrong link status

2019-10-28 Thread Xiao Zhang
The link status for 82599eb got from link status register was not correct, check the enable/disable flag of tx laser when getting the link status, set the link status down if tx laser disabled since the tx laser flag could be set correctly when up/down the link status. Fixes: dc66e5fd01b9 ("net/ix

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Jerin Jacob
On Tue, Oct 29, 2019 at 10:14 AM Wang, Haiyue wrote: > > > -Original Message- > > From: Jerin Jacob > > Sent: Tuesday, October 29, 2019 11:38 > > To: Wang, Haiyue > > Cc: Thomas Monjalon ; Yigit, Ferruh > > ; dpdk-dev > > ; Ye, Xiaolong ; Kinsella, Ray > > ; > > Iremonger, Bernard ; Su

[dpdk-dev] [v3] net/i40e: fix vlan packets drop

2019-10-28 Thread Xiao Zhang
VLAN packets with ip length bigger than 1496 will not be received by i40e/i40evf due to wrong packets size checking. This patch fixes the issue by correcting the maximum frame size during checking. Fixes: 43e5488c0ac6 ("net/i40e: support MTU configuration") Cc: sta...@dpdk.org Signed-off-by: Xiao

[dpdk-dev] [PATCH] net/ice: fix unexpected link down

2019-10-28 Thread Qi Zhang
Not to turn down link during dev_stop, it will cause the device can't be bind by kernel driver after DPDK driver quit. Fixes: e6161345d8a9 ("net/ice: support link status change") Cc: sta...@dpdk.org Signed-off-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 2 -- 1 file changed, 2 deletions(-)

Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size

2019-10-28 Thread Ye Xiaolong
On 10/29, Min, JiaqiX wrote: >Hi Xiaolong, > >> -Original Message- >> From: Ye, Xiaolong >> Sent: Monday, October 28, 2019 4:46 PM >> To: Min, JiaqiX >> Cc: dev@dpdk.org; sta...@dpdk.org >> Subject: Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size >> >> On 10/28, Min JiaqiX w

[dpdk-dev] [PATCH v14 7/7] app/testpmd: add command to set supported ptype mask

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add command to set supported ptype mask. Usage: set port ptype_mask Disable ptype parsing by default. Signed-off-by: Pavan Nikhilesh --- app/test-pmd/cmdline.c | 80 + app/test-pmd/testpmd.c | 6 ++

[dpdk-dev] [PATCH v14 6/7] examples/l2fwd: disable ptype parsing

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Disable packet type parsing as l2fwd doesn't rely on packet types. Signed-off-by: Pavan Nikhilesh --- examples/l2fwd/Makefile| 1 + examples/l2fwd/main.c | 2 ++ examples/l2fwd/meson.build | 1 + 3 files changed, 4 insertions(+) diff --git a/examples/l2fwd/Makef

[dpdk-dev] [PATCH v14 2/7] ethdev: add mbuf RSS update as an offload

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add new Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` which can be used to enable/disable PMDs write to `rte_mbuf::hash::rss`. PMDs notify the validity of `rte_mbuf::hash:rss` to the applcation by enabling `PKT_RX_RSS_HASH ` flag in `rte_mbuf::ol_flags`. Signed-off-by: Pavan Ni

[dpdk-dev] [PATCH v14 5/7] examples/eventdev_pipeline: add new Rx RSS hash offload

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Since pipeline_generic uses `rte_mbuf::hash::rss` add the new Rx offload flag `DEV_RX_OFFLOAD_RSS_HASH` to inform PMD to copy the RSS hash result into the mbuf. Signed-off-by: Pavan Nikhilesh --- examples/eventdev_pipeline/main.c | 128 - .../p

[dpdk-dev] [PATCH v14 3/7] ethdev: log offloads that can't be disabled by PMD

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Some PMD can't work when certain offloads are disabled, to work around this the PMD auto enable the offloads internally and expose it through dev->data->dev_conf.rxmode.offloads. After dev_configure is called compare the requested offloads to the enabled offloads and log any

[dpdk-dev] [PATCH v14 4/7] drivers/net: update Rx RSS hash offload capabilities

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support RSS hash delivery. Signed-off-by: Pavan Nikhilesh Reviewed-by: Andrew Rybchenko Reviewed-by: Hemant Agrawal Acked-by: Jerin Jacob Acked-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 8 +++-

[dpdk-dev] [PATCH v14 1/7] ethdev: add set ptype function

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add `rte_eth_dev_set_supported_ptypes` function that will allow the application to inform the PMD the packet types it is interested in. Based on the ptypes set PMDs can optimize their Rx path. -If application doesn’t want any ptype information it can call `rte_eth_dev_set_s

[dpdk-dev] [PATCH v14 0/6] ethdev: add new Rx offload flags

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add new Rx offload flags `DEV_RX_OFFLOAD_RSS_HASH` These flags can be used to enable/disable PMD writes to rte_mbuf fields `hash.rss` and also `ol_flags:PKT_RX_RSS` and `ol_flags:PKT_RX_FDIR`. Add new packet type set function `rte_eth_dev_set_supported_ptypes`, allows appli

[dpdk-dev] [PATCH v3] net/ice: fix setting max frame size

2019-10-28 Thread Min JiaqiX
Max frame size is not set to HW, so packets above the MTU do not get dropped by HW. The patch fixed the issue. Fixes: 50370662b727 ("net/ice: support device and queue ops") Cc: sta...@dpdk.org Signed-off-by: Min JiaqiX Reviewed-by: Xiaolong Ye --- v3: * Changed Fixes line. v2: * Changed commit

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Wang, Haiyue
> -Original Message- > From: Jerin Jacob > Sent: Tuesday, October 29, 2019 11:38 > To: Wang, Haiyue > Cc: Thomas Monjalon ; Yigit, Ferruh > ; dpdk-dev > ; Ye, Xiaolong ; Kinsella, Ray > ; > Iremonger, Bernard ; Sun, Chenmin > ; Andrew > Rybchenko ; Slava Ovsiienko > ; Stephen Hemminge

Re: [dpdk-dev] [PATCH v4 1/4] ethdev: add the API for getting burst mode information

2019-10-28 Thread Jerin Jacob
> > > > struct rte_eth_burst_mode { > > > > uint64_t options; > > > > char dev_specific[128]; /* PMD has specific burst mode > > > > information */ > > > > }; > > > > > > I really don't see how we can have generic flags. > > > The flags which are proposed are just matching > > > th

Re: [dpdk-dev] [PATCH] net/ixgbe: fix macsec setting

2019-10-28 Thread Ye Xiaolong
Hi, Guinan Overall the fix looks good to me, a few comments inline. On 10/25, Sun GuinanX wrote: >macsec setting is not valid when port is stopped. >In order to make it valid, the patch changes the setting >to where port is started. > >Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads

[dpdk-dev] [PATCH v3] net/bonding: fix invalid port using

2019-10-28 Thread Jiang JunyuX
Port validation should be prior to getting device data to avoid segment fault. This patch fixed the segment fault caused by invalid port using. Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes") Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control") Cc: sta...@d

Re: [dpdk-dev] [PATCH] net/ice: fix rte flow framework

2019-10-28 Thread Zhang, Qi Z
> -Original Message- > From: Wang, Ying A > Sent: Tuesday, October 29, 2019 1:44 AM > To: Ye, Xiaolong ; Zhang, Qi Z > Cc: dev@dpdk.org; Yang, Qiming ; Wang, Ying A > > Subject: [PATCH] net/ice: fix rte flow framework > > In non-pipeline mode, switch should be used as fdir's backup.

Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size

2019-10-28 Thread Min, JiaqiX
Hi Xiaolong, > -Original Message- > From: Ye, Xiaolong > Sent: Monday, October 28, 2019 4:46 PM > To: Min, JiaqiX > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size > > On 10/28, Min JiaqiX wrote: > >Max frame size is not set to H

Re: [dpdk-dev] [PATCH] net/bonding: fix segfault using invalid port

2019-10-28 Thread Ye Xiaolong
On 10/28, Yang, Qiming wrote: >Hi, Junyu > >> +dev = &rte_eth_devices[port]; >> +internals = dev->data->dev_private; >Have you build success? I think we need to add (struct bond_dev_private *) for >force transfer dev_private is a void *, an explicit type conversion is not needed here. Th

[dpdk-dev] [PATCH v2] net/bonding: fix segfault using invalid port

2019-10-28 Thread Jiang JunyuX
Port validation should be prior to getting dev data to avoid segmentation fault. This patch fixed the issue. Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes") Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control") Cc: sta...@dpdk.org Signed-off-by: Jiang Junyu

Re: [dpdk-dev] [PATCH v2] net/ice: fix setting max frame size

2019-10-28 Thread Ye Xiaolong
On 10/28, Ye Xiaolong wrote: >Reviewed-by: Xiaolong Ye > >Applied to dpdk-next-net-intel. Thanks. Sorry for the above misleading message, this patch is still under discussion, not merged yet. Thanks, Xiaolong

[dpdk-dev] [PATCH] net/ice: fix rte flow framework

2019-10-28 Thread Ying Wang
In non-pipeline mode, switch should be used as fdir's backup. The patch fiexed rule can't be created when fdir's flow table is full. Fixes: 7615a6895009 ("net/ice: rework for generic flow enabling") Signed-off-by: Ying Wang --- drivers/net/ice/ice_generic_flow.c | 84 ++-

Re: [dpdk-dev] [PATCH v6 02/14] ethdev: add support for hairpin queue

2019-10-28 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > Sent: Monday, October 28, 2019 5:16 PM > To: Ori Kam ; John McNamara > ; Marko Kovacevic > ; Thomas Monjalon ; > Ferruh Yigit > Cc: dev@dpdk.org; jingjing...@intel.com; step...@networkplumber.org > Subject: Re: [dpdk-dev] [PATCH

Re: [dpdk-dev] Please stop using iopl() in DPDK

2019-10-28 Thread Andy Lutomirski
> On Oct 28, 2019, at 10:43 AM, Stephen Hemminger > wrote: > > On Fri, 25 Oct 2019 08:42:25 +0200 > Willy Tarreau wrote: > >> Hi Andy, >> >>> On Thu, Oct 24, 2019 at 09:45:56PM -0700, Andy Lutomirski wrote: >>> Hi all- >>> >>> Supporting iopl() in the Linux kernel is becoming a maintainability

Re: [dpdk-dev] [PATCH v1 02/13] net/ppfe: introduce ppfe net poll mode driver

2019-10-28 Thread Stephen Hemminger
On Mon, 26 Aug 2019 18:32:35 +0530 Gagandeep Singh wrote: > --- a/config/common_base > +++ b/config/common_base > @@ -224,6 +224,11 @@ CONFIG_RTE_LIBRTE_CXGBE_DEBUG_TX=n > CONFIG_RTE_LIBRTE_CXGBE_DEBUG_RX=n > CONFIG_RTE_LIBRTE_CXGBE_TPUT=y > > +# > +# Compile burst-oriented NXP PPFE PMD drive

Re: [dpdk-dev] [PATCH v2 01/10] build: add an option to enable LTO build

2019-10-28 Thread Thomas Monjalon
28/10/2019 13:12, Andrzej Ostruszka: > On 10/28/19 9:36 AM, Andrzej Ostruszka wrote: > > On 10/27/19 12:31 PM, Thomas Monjalon wrote: > [...] > >> Should we document its use in rte_function_versioning.h > >> and versioning.rst? > > > > Yes, I think so. I'll add that. > > One quick notice. There

Re: [dpdk-dev] [PATCH] usertools: enhance device bind script module detection

2019-10-28 Thread Thomas Monjalon
28/10/2019 18:09, Thomas Monjalon: > 28/10/2019 15:50, Pavan Nikhilesh Bhagavatula: > > >21/09/2019 20:16, pbhagavat...@marvell.com: > > >> From: Pavan Nikhilesh > > >> > > >> Some kernel modules have '-' in their name when populated in > > >> '/sys/bus/pci/drivers/' where as the kernel always pop

Re: [dpdk-dev] [PATCH] usertools: enhance device bind script module detection

2019-10-28 Thread Thomas Monjalon
28/10/2019 15:50, Pavan Nikhilesh Bhagavatula: > >21/09/2019 20:16, pbhagavat...@marvell.com: > >> From: Pavan Nikhilesh > >> > >> Some kernel modules have '-' in their name when populated in > >> '/sys/bus/pci/drivers/' where as the kernel always populates > >> '/sys/modules/' with '_'. > >> Repl

[dpdk-dev] [PATCH] net/bnxt: don't log at error level on flow creation

2019-10-28 Thread Stephen Hemminger
Creating a flow is a normal event; should not be logged at error level. Fixes: 5c1171c97216 ("net/bnxt: refactor filter/flow") Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_flow.c b/driv

Re: [dpdk-dev] Please stop using iopl() in DPDK

2019-10-28 Thread Stephen Hemminger
On Fri, 25 Oct 2019 08:42:25 +0200 Willy Tarreau wrote: > Hi Andy, > > On Thu, Oct 24, 2019 at 09:45:56PM -0700, Andy Lutomirski wrote: > > Hi all- > > > > Supporting iopl() in the Linux kernel is becoming a maintainability > > problem. As far as I know, DPDK is the only major modern user of >

Re: [dpdk-dev] [PATCH 1/2] mk: fix build on arm64

2019-10-28 Thread Thomas Monjalon
28/10/2019 12:25, Ali Alnubani: > OcteonTx was disabled for causing an internal compiler error on old gcc > versions. > See commit 4f760550a093 ("mk: disable OcteonTx for buggy compilers"). > > The condition that was added later to apply disabling OcteonTx > only on arm64 caused the condition to n

Re: [dpdk-dev] Please stop using iopl() in DPDK

2019-10-28 Thread Maciej W. Rozycki
On Fri, 25 Oct 2019, Andy Lutomirski wrote: > > I'd see an API more or less like this : > > > > int ioport(int op, u16 port, long val, long *ret); > > Hmm. I have some memory of a /dev/ioport or similar, but now I can't > find it. It does seem quite reasonable. crw-r- 1 root kmem 1, 4 Se

Re: [dpdk-dev] [PATCH v13 3/6] drivers/net: update Rx RSS hash offload capabilities

2019-10-28 Thread Pavan Nikhilesh Bhagavatula
>On 10/25/19 7:10 PM, Pavan Nikhilesh Bhagavatula wrote: >>> On 10/25/19 5:33 PM, pbhagavat...@marvell.com wrote: From: Pavan Nikhilesh Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support >RSS >>> hash delivery. Signed-off-by: Pavan Nikhilesh Reviewed-by:

Re: [dpdk-dev] [PATCH v13 3/6] drivers/net: update Rx RSS hash offload capabilities

2019-10-28 Thread Andrew Rybchenko
On 10/25/19 7:10 PM, Pavan Nikhilesh Bhagavatula wrote: On 10/25/19 5:33 PM, pbhagavat...@marvell.com wrote: From: Pavan Nikhilesh Add DEV_RX_OFFLOAD_RSS_HASH flag for all PMDs that support RSS hash delivery. Signed-off-by: Pavan Nikhilesh Reviewed-by: Andrew Rybchenko Reviewed-by: Hemant

Re: [dpdk-dev] [PATCH v6 02/14] ethdev: add support for hairpin queue

2019-10-28 Thread Andrew Rybchenko
Hi Ori, On 10/27/19 3:24 PM, Ori Kam wrote: This commit introduce hairpin queue type. The hairpin queue in build from Rx queue binded to Tx queue. It is used to offload traffic coming from the wire and redirect it back to the wire. There are 3 new functions: - rte_eth_dev_hairpin_capability_ge

[dpdk-dev] [Bug 358] KNI packets dropped on ARM

2019-10-28 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=358 Bug ID: 358 Summary: KNI packets dropped on ARM Product: DPDK Version: 19.08 Hardware: ARM OS: Linux Status: UNCONFIRMED Severity: normal Priority: Norma

Re: [dpdk-dev] [PATCH] usertools: enhance device bind script module detection

2019-10-28 Thread Pavan Nikhilesh Bhagavatula
>21/09/2019 20:16, pbhagavat...@marvell.com: >> From: Pavan Nikhilesh >> >> Some kernel modules have '-' in their name when populated in >> '/sys/bus/pci/drivers/' where as the kernel always populates >> '/sys/modules/' with '_'. >> Replace '-' in module name with '_' to avoid script complaining >

[dpdk-dev] [PATCH v5 10/11] net/ifc: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘features’ may be used uninitialized in this function [-Werror=maybe-uninitiali

[dpdk-dev] [PATCH v5 08/11] net/e1000: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘link’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

[dpdk-dev] [PATCH v5 11/11] net/qede: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘transceiver_type’ may be used uninitialized in this function [-Werror=maybe-un

[dpdk-dev] [PATCH v5 09/11] net/i40e: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘filter_idx’ may be used uninitialized in this function [-Werror=maybe-uninitia

[dpdk-dev] [PATCH v5 05/11] event/octeontx2: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘chunk’ may be used uninitialized in this function [-Werror=maybe-uninitialized

[dpdk-dev] [PATCH v5 07/11] net/dpaa2: fix possible use of uninitialized vars

2019-10-28 Thread Andrzej Ostruszka
This patch fixes 'maybe-uninitialized' warnings reported by compiler when using LTO. Compiler warning pointing to this error (with LTO enabled): error: ‘kg_cfg.extracts[0].masks[0].mask’ may be used uninitialized in this function [-Werror=maybe-uninitialized] extr->masks[j].mask = cfg->extract

[dpdk-dev] [PATCH v5 06/11] app/test: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘stats.greatest_free_size’ may be used uninitialized in this function [-Werror=

[dpdk-dev] [PATCH v5 03/11] eventdev: fix possible use of uninitialized var

2019-10-28 Thread Andrzej Ostruszka
Fix the logic for the case of event queue allowing all schedule types. Compiler warning pointing to this error (with LTO enabled): error: ‘sched_type’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if ((ret < 0 && ret != -EOVERFLOW) || Fixes: 6750b21bd6af ("eventdev: a

[dpdk-dev] [PATCH v5 02/11] build: add an option to enable LTO build

2019-10-28 Thread Andrzej Ostruszka
This patch adds an option to enable link time optimization. In addition to LTO option itself (-flto) fat-lto-objects are being used. This is because during the build pmdinfogen scans the generated ELF objects to find this_pmd_name* symbol in symbol table. Without fat-lto-objects gcc produces ELF

[dpdk-dev] [PATCH v5 04/11] app/eventdev: clean LTO build warnings (maybe-uninitialized)

2019-10-28 Thread Andrzej Ostruszka
During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Exemplary compiler warning to suppress (with LTO enabled): error: ‘service_id’ may be used uninitialized in this function [-Werror=maybe-uninitia

[dpdk-dev] [PATCH v5 00/11] Add an option to use LTO for DPDK build

2019-10-28 Thread Andrzej Ostruszka
This patch series adds an option to make use of link time optimization (if compiler has support for it). It is split as follows: - 1st patch fixes missing __vsym annotations (needed for LTO) - 2nd is the LTO enablement - remaining patches are fixes for the warnings produced by the compiler and t

[dpdk-dev] [PATCH v5 01/11] build: annotate versioned symbols with __vsym macro

2019-10-28 Thread Andrzej Ostruszka
Every implementation of a particular version of given symbol needs to be marked in its declaration as such (using `__vsym` macro). This patch fixes this and also clarifies the documentation about that. Signed-off-by: Andrzej Ostruszka --- doc/guides/contributing/versioning.rst| 18 +

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-10-28 Thread Olivier Matz
Hi Anatoly, On Fri, Jul 19, 2019 at 03:03:29PM +0100, Burakov, Anatoly wrote: > On 19-Jul-19 2:38 PM, Olivier Matz wrote: > > When using iova contiguous memory and objets smaller than page size, > > ensure that objects are not located across several pages. > > > > Signed-off-by: Vamsi Krishna Att

Re: [dpdk-dev] ***Spam*** [RFC 2/4] mempool: unalign size when calculating required mem amount

2019-10-28 Thread Olivier Matz
On Wed, Aug 07, 2019 at 06:21:20PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > The size returned by rte_mempool_op_calc_mem_size_default() is aligned > > to the specified page size. This means that with big pages, the returned > > amount is more that what we really

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-10-28 Thread Olivier Matz
On Wed, Aug 07, 2019 at 06:21:58PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > When using iova contiguous memory and objets smaller than page size, > > ensure that objects are not located across several pages. > > It looks like as an attempt to make exception a gen

Re: [dpdk-dev] ***Spam*** [RFC 0/4] mempool: avoid objects allocations across pages

2019-10-28 Thread Olivier Matz
Hi Andrew, Better late than never, here are answers to your comments. I'm sending a new version of this patchset that addresses them. On Wed, Aug 07, 2019 at 06:21:01PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > When IOVA mode is VA, a mempool can be created with

Re: [dpdk-dev] [RFC 3/4] mempool: introduce function to get mempool page size

2019-10-28 Thread Olivier Matz
On Wed, Aug 07, 2019 at 06:21:41PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > In rte_mempool_populate_default(), we determine the page size, > > which is needed for calc_size and allocation of memory. > > > > Move this in a function and export it, it will be used

Re: [dpdk-dev] [EXT] Re: [PATCH v11 2/4] eal: add legacy kni option

2019-10-28 Thread Olivier Matz
On Sat, Oct 26, 2019 at 02:09:51PM +, Vamsi Krishna Attunuru wrote: > Hi Olivier, > > > -Original Message- > > From: Olivier Matz > > Sent: Saturday, October 26, 2019 5:55 PM > > To: Vamsi Krishna Attunuru > > Cc: Jerin Jacob ; Andrew Rybchenko > > ; Ferruh Yigit ; > > tho...@monjalo

[dpdk-dev] [PATCH 5/5] mempool: prevent objects from being across pages

2019-10-28 Thread Olivier Matz
When populating a mempool, ensure that objects are not located across several pages, except if user did not request iova contiguous objects. Signed-off-by: Vamsi Krishna Attunuru Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 23 +--- lib/librte_mempo

[dpdk-dev] [PATCH 1/5] mempool: allow unaligned addr/len in populate virt

2019-10-28 Thread Olivier Matz
rte_mempool_populate_virt() currently requires that both addr and length are page-aligned. Remove this uneeded constraint which can be annoying with big hugepages (ex: 1GB). Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 18 +++--- lib/librte_mempool/rte_mempool.

[dpdk-dev] [PATCH 4/5] mempool: introduce function to get mempool page size

2019-10-28 Thread Olivier Matz
In rte_mempool_populate_default(), we determine the page size, which is needed for calc_size and allocation of memory. Move this in a function and export it, it will be used in next commit. Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 51 ++ l

[dpdk-dev] [PATCH 3/5] mempool: remove optimistic IOVA-contiguous allocation

2019-10-28 Thread Olivier Matz
The previous commit reduced the amount of required memory when populating the mempool with non iova-contiguous memory. Since there is no big advantage to have a fully iova-contiguous mempool if it is not explicitly asked, remove this code, it simplifies the populate function. Signed-off-by: Olivi

[dpdk-dev] [PATCH 0/5] mempool: avoid objects allocations across pages

2019-10-28 Thread Olivier Matz
KNI supposes that mbufs are contiguous in kernel virtual memory. This may not be true when using the IOVA=VA mode. To fix this, a possibility is to ensure that objects do not cross page boundaries in mempool. This patchset implements this in the last patch (5/5). The previous patches prepare the j

[dpdk-dev] [PATCH 2/5] mempool: reduce wasted space on mempool populate

2019-10-28 Thread Olivier Matz
The size returned by rte_mempool_op_calc_mem_size_default() is aligned to the specified page size. Therefore, with big pages, the returned size can be much more that what we really need to populate the mempool. For instance, populating a mempool that requires 1.1GB of memory with 1GB hugepages can

Re: [dpdk-dev] [PATCH 1/2] ethdev: add flow action type update as an offload

2019-10-28 Thread Ori Kam
Hi Andrew, > -Original Message- > From: Andrew Rybchenko > Subject: Re: [dpdk-dev] [PATCH 1/2] ethdev: add flow action type update as an > offload > > Hi Ori, > > On 10/28/19 1:50 PM, Ori Kam wrote: > > Hi Pavan, > > > > Sorry for jumping in late. > > > > I don't understand why we need

Re: [dpdk-dev] [PATCH] ethdev: remove deprecated port count function

2019-10-28 Thread Neil Horman
On Mon, Oct 28, 2019 at 11:49:34AM +0100, Thomas Monjalon wrote: > The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 > in commit d9a42a69febf ("ethdev: deprecate port count function"). > It was planned to be removed after 19.11 LTS release, > but given we must not break ABI be

Re: [dpdk-dev] [PATCH v2 01/10] build: add an option to enable LTO build

2019-10-28 Thread Andrzej Ostruszka
On 10/28/19 9:36 AM, Andrzej Ostruszka wrote: > On 10/27/19 12:31 PM, Thomas Monjalon wrote: [...] >> Should we document its use in rte_function_versioning.h >> and versioning.rst? > > Yes, I think so. I'll add that. One quick notice. There is a slight mismatch between documentation of VERSION_

[dpdk-dev] [PATCH] vhost: add vhost-user-blk example which support inflight

2019-10-28 Thread Jin Yu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so it can show how these APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support V4 - fix build,

Re: [dpdk-dev] [PATCH 1/2] ethdev: add flow action type update as an offload

2019-10-28 Thread Andrew Rybchenko
Hi Ori, On 10/28/19 1:50 PM, Ori Kam wrote: Hi Pavan, Sorry for jumping in late. I don't understand why we need this feature. If the user didn't set any flow with MARK then the user doesn't need to check it. There is pretty long discussion on the topic already, please, read [1]. [1] http:

Re: [dpdk-dev] [PATCH] ethdev: remove deprecated port count function

2019-10-28 Thread Andrew Rybchenko
On 10/28/19 1:49 PM, Thomas Monjalon wrote: The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It was planned to be removed after 19.11 LTS release, but given we must not break ABI between 19.11 and 20.11, it i

[dpdk-dev] [PATCH 1/2] mk: fix build on arm64

2019-10-28 Thread Ali Alnubani
OcteonTx was disabled for causing an internal compiler error on old gcc versions. See commit 4f760550a093 ("mk: disable OcteonTx for buggy compilers"). The condition that was added later to apply disabling OcteonTx only on arm64 caused the condition to never be obeyed because it compares ["arm64"]

[dpdk-dev] [PATCH 2/2] mk: disable OcteonTx2 on old compilers

2019-10-28 Thread Ali Alnubani
This disables OcteonTx2 for gcc 4.8.5 as the compiler is emitting "internal compiler error" for aarch64. Fixes: 9a8864c8b5da ("net/octeontx2: add build and doc infrastructure") Cc: sta...@dpdk.org Signed-off-by: Ali Alnubani --- mk/toolchain/gcc/rte.toolchain-compat.mk | 3 +++ 1 file changed,

Re: [dpdk-dev] [PATCH] ethdev: remove deprecated port count function

2019-10-28 Thread David Marchand
On Mon, Oct 28, 2019 at 11:50 AM Thomas Monjalon wrote: > > The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 > in commit d9a42a69febf ("ethdev: deprecate port count function"). > It was planned to be removed after 19.11 LTS release, > but given we must not break ABI between

Re: [dpdk-dev] [PATCH v4 01/10] build: add an option to enable LTO build

2019-10-28 Thread Thomas Monjalon
28/10/2019 11:47, Andrzej Ostruszka: > On 10/27/19 12:47 PM, Thomas Monjalon wrote: > >> +turned on. This depends obviously on the capabilities of the compiler > > > > Not sure what you are talking about. > > If it is about fat objects, it is not obvious. > > > >> +to do "whole program" optimiza

Re: [dpdk-dev] [PATCH] mk: add support for UBSAN

2019-10-28 Thread Harman Kalra
Ping... Kindly review this patch. On Wed, Oct 09, 2019 at 02:25:52PM +, Harman Kalra wrote: > Ping.. > > On Fri, Sep 13, 2019 at 11:40:40AM +, Harman Kalra wrote: > > Ping.. > > Kindly review this patch. > > > > On Mon, Aug 19, 2019 at 07:18:21PM +0530, Harman Kalra wrote: > > > Undefine

Re: [dpdk-dev] [PATCH 1/2] ethdev: add flow action type update as an offload

2019-10-28 Thread Ori Kam
Hi Pavan, Sorry for jumping in late. I don't understand why we need this feature. If the user didn't set any flow with MARK then the user doesn't need to check it. Also it breaks compatibility. If my understanding is correct the MARK field is going to be moved to dynamic field, and this wil

[dpdk-dev] [PATCH] ethdev: remove deprecated port count function

2019-10-28 Thread Thomas Monjalon
The function rte_eth_dev_count() was marked as deprecated in DPDK 18.05 in commit d9a42a69febf ("ethdev: deprecate port count function"). It was planned to be removed after 19.11 LTS release, but given we must not break ABI between 19.11 and 20.11, it is removed now. Note the ABI version is not du

Re: [dpdk-dev] [PATCH v4 01/10] build: add an option to enable LTO build

2019-10-28 Thread Andrzej Ostruszka
Thank you Thomas for the comments. Please see below for replies. On 10/27/19 12:47 PM, Thomas Monjalon wrote: > Adding John and Marko for doc review. > > 22/10/2019 13:54, Andrzej Ostruszka: >> --- /dev/null >> +++ b/doc/guides/prog_guide/lto.rst > > This new file is not included in the prog gu

[dpdk-dev] [PATCH v2] net/ena: fix false indication of bad L4 Rx csums

2019-10-28 Thread Michal Krawczyk
From: Igor Chauskin Add checking of l4_csum_checked and frag flags before checking the l4_csum_error flag. In case of IP fragment/unchecked L4 csum - add PKT_RX_L4_CKSUM_UNKNOWN flag to the indicated mbuf. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Cc: sta...@dpdk.org Signed-off-by:

[dpdk-dev] [PATCH] net/ena: fix false indication of bad L4 Rx csums

2019-10-28 Thread Michal Krawczyk
Add checking of l4_csum_checked and frag flags before checking the l4_csum_error flag. In case of IP fragment/unchecked L4 csum - add PKT_RX_L4_CKSUM_UNKNOWN flag to the indicated mbuf. Fixes: 1173fca25af9 ("ena: add polling-mode driver") Cc: sta...@dpdk.org Signed-off-by: Igor Chauskin Reviewe

Re: [dpdk-dev] [PATCH v6 2/4] doc: changes to abi policy introducing major abi versions

2019-10-28 Thread Thomas Monjalon
25/10/2019 11:10, Ray Kinsella: > Hi Thomas, > > QQ - So is there really a 'no png' rule, because we have lots of them in the > documentation? Yes, really. > root@rkinsell-MOBL2:.../rkinsell/dpdk# find doc/ -name "*.png" | wc -l > 61 > root@rkinsell-MOBL2:.../rkinsell/dpdk# find doc/ -name "*.

[dpdk-dev] [PATCH 1/3] app: use RTE_DIM to calculate array size

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Use RTE_DIM macro to calculate array size Suggested-by: David Marchand Signed-off-by: Pavan Nikhilesh --- app/test-pmd/cmdline.c| 2 +- app/test-pmd/icmpecho.c | 2 +- app/test-pmd/testpmd.c| 2 +- app/test/test.c |

[dpdk-dev] [PATCH 3/3] lib: use RTE_DIM to calculate array size

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh use RTE_DIM to calculate array size. Suggested-by: David Marchand Signed-off-by: Pavan Nikhilesh --- lib/librte_ethdev/rte_ethdev.c| 8 +++- lib/librte_ip_frag/ip_frag_internal.c | 5 ++--- lib/librte_port/rte_port_eventdev.c | 4 ++-- lib/librte_port/rte_p

[dpdk-dev] [PATCH 2/3] examples: use RTE_DIM to calculate array size

2019-10-28 Thread pbhagavatula
From: Pavan Nikhilesh use RTE_DIM macro to calculate array size. Suggested-by: David Marchand Signed-off-by: Pavan Nikhilesh --- examples/ip_pipeline/parser.c | 2 +- examples/ipv4_multicast/main.c | 3 +-- examples/l3fwd-power/main.c| 12 examples/l3fwd/l3fwd_em.c |

Re: [dpdk-dev] [PATCH v2 01/10] build: add an option to enable LTO build

2019-10-28 Thread Thomas Monjalon
28/10/2019 09:36, Andrzej Ostruszka: > On 10/27/19 12:31 PM, Thomas Monjalon wrote: > > 18/09/2019 15:32, Ray Kinsella: > >> this is cool, good work. > >> comments below. > >> > >> On 17/09/2019 08:57, Andrzej Ostruszka wrote: > >>> --- a/lib/librte_distributor/rte_distributor.c > >>> +++ b/lib/lib

[dpdk-dev] [PATCH v3] net/virtio: fix multicast and promisc mode enable failure

2019-10-28 Thread Marvin Liu
As doc mentioned, promisc and multicast are by-default supported in virtio pmd. Mac/vlan filter are supported by best effort. These control messages should return pass. Fixes: f9b9d1a55775 ("net/virtio-user: add multiple queues in device emulation") Cc: sta...@dpdk.org Signed-off-by: Marvin Liu

[dpdk-dev] [PATCH v14 18/19] raw/ifpga/base: add multiple cards support

2019-10-28 Thread Andy Pei
From: Tianfei zhang In PAC N3000 card, there is one MAX10 chip in each card, and all of the sensors are connected to MAX10 chip. To support multiple cards in one server, we introducing a sensor device list under intel_max10_device instead of a global list. On the other hand, we using separate int

[dpdk-dev] [PATCH v14 19/19] raw/ifpga: introducing new irq API

2019-10-28 Thread Andy Pei
From: Tianfei zhang Introducing new register and unregister API for ifpga interrupt. 1. register FME and AFU interrupt ifpga_register_msix_irq() 2. unregister FME and AFU interrupt ifpga_unregister_msix_irq() On PAC N3000 card, there is one PCIe MSIX interrupt for FME managerment, like th

[dpdk-dev] [PATCH v14 16/19] raw/ifpga/base: add new API get board info

2019-10-28 Thread Andy Pei
From: Tianfei zhang Add new API to get the board info. opae_mgr_get_board_info() Signed-off-by: Tianfei zhang Signed-off-by: Andy Pei --- drivers/raw/ifpga/base/ifpga_api.c | 11 +++ drivers/raw/ifpga/base/ifpga_defines.h | 55 ++ drivers/raw/ifpga/base

  1   2   >