Re: [dpdk-dev] [EXT] Re: [PATCH v3 1/5] net/enetfec: introduce NXP ENETFEC driver

2021-10-04 Thread Apeksha Gupta
> -Original Message- > From: Ferruh Yigit > Sent: Friday, October 1, 2021 8:15 PM > To: Apeksha Gupta ; > david.march...@redhat.com; andrew.rybche...@oktetlabs.ru > Cc: dev@dpdk.org; Sachin Saxena ; Hemant > Agrawal > Subject: Re: [EXT] Re: [dpdk-dev] [PATCH v3 1/5] net/enetfec: introd

Re: [dpdk-dev] DTS WG material review

2021-10-04 Thread Honnappa Nagarahalli
> > Hello Honnappa, > > On Thu, Sep 30, 2021 at 8:21 AM Honnappa Nagarahalli > wrote: > > > > Hello, > > Please find the slides and the excel sheet containing the > > work > items to fix DTS. We will review the slides in this meeting. Please provide > your > review comments be

[dpdk-dev] [PATCH 2/2] net/cnxk: support rte flow action type port ID

2021-10-04 Thread psatheesh
From: Satheesh Paul This patch adds support for rte flow action type port_id to enable directing packets from an input port PF to an output port which is a VF of the input port PF. Signed-off-by: Satheesh Paul --- doc/guides/nics/cnxk.rst | 5 + doc/guides/nics/features/cnxk.ini

[dpdk-dev] [PATCH 1/2] common/cnxk: add support for rte flow port ID action type

2021-10-04 Thread psatheesh
From: Satheesh Paul This patch adds ROC API to support rte flow port ID action type. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_npc.c | 35 + drivers/common/cnxk/roc_npc.h | 11 ++- drivers/common/cnxk/version.map | 1 + 3 files change

[dpdk-dev] [PATCH] common/cnxk: change MCAM entries management scheme

2021-10-04 Thread psatheesh
From: Satheesh Paul This patch removes the MCAM preallocation scheme. The free entry cache is removed and for every flow created, an MCAM allocation request is made to the kernel. Each priority level has a list of MCAM entries. For every flow rule added, the MCAM entry obtained from kernel is che

[dpdk-dev] [PATCH v3 2/2] cmdline: make struct rdline opaque

2021-10-04 Thread Dmitry Kozlyuk
Hide struct rdline definition and some RDLINE_* constants in order to be able to change internal buffer sizes transparently to the user. Add new functions: * rdline_create(): allocate and initialize struct rdline. This function replaces rdline_init() and takes an extra parameter: opaque user d

[dpdk-dev] [PATCH v3 1/2] cmdline: make struct cmdline opaque

2021-10-04 Thread Dmitry Kozlyuk
Remove the definition of `struct cmdline` from public header. Deprecation notice: https://mails.dpdk.org/archives/dev/2020-September/183310.html Signed-off-by: Dmitry Kozlyuk Acked-by: David Marchand Acked-by: Olivier Matz --- doc/guides/rel_notes/deprecation.rst | 4 doc/guides/rel_no

[dpdk-dev] [PATCH v3 0/2] cmdline: reduce ABI

2021-10-04 Thread Dmitry Kozlyuk
Hide struct cmdline following the deprecation notice. Hide struct rdline following the v1 discussion. v3: add experimental tags and releae notes for rdline. v2: also hide struct rdline (David, Olivier). Dmitry Kozlyuk (2): cmdline: make struct cmdline opaque cmdline: make struct rdline opaque

[dpdk-dev] [PATCH 5/5] net/mlx5: preserve indirect actions on restart

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk MLX5 PMD uses reference counting to manage RX queue resources. After port stop shared RSS actions kept references to RX queues, preventing resource release. As a result, internal PMD mempool for such queues had been exhausted after a number of port restarts. Diagnostic messag

[dpdk-dev] [PATCH 4/5] net/mlx5: create drop queue using DevX

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk Drop queue creation and destruction were not implemented for DevX flow engine and Verbs engine methods were used as a workaround. Implement these methods for DevX so that there is a valid queue ID that can be used regardless of queue configuration via API. Cc: sta...@dpdk.or

[dpdk-dev] [PATCH 3/5] net/mlx5: discover max flow priority using DevX

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk Maximum available flow priority was discovered using Verbs API regardless of the selected flow engine. This required some Verbs objects to be initialized in order to use DevX engine. Make priority discovery an engine method and implement it for DevX using its API. Cc: sta...

[dpdk-dev] [PATCH 2/5] ethdev: add capability to keep shared objects on restart

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk rte_flow_action_handle_create() did not mention what happens with an indirect action when a device is stopped, possibly reconfigured, and started again. It is natural for some indirect actions to be persistent, like counters and meters; keeping others just saves application t

[dpdk-dev] [PATCH 1/5] ethdev: add capability to keep flow rules on restart

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk Currently, it is not specified what happens to the flow rules when the device is stopped, possibly reconfigured, then started. If flow rules were kept, it could be convenient for application developers, because they wouldn't need to save and restore them. However, due to the

[dpdk-dev] [PATCH 0/5] Flow entites behavior on port restart

2021-10-04 Thread dkozlyuk
From: Dmitry Kozlyuk It is unspecified whether flow rules and indirect actions are kept when a port is stopped, possibly reconfigured, and started again. Vendors approach the topic differently, e.g. mlx5 and i40e PMD disagree in whether flow rules can be kept, and mlx5 PMD would keep indirect act

[dpdk-dev] [PATCH] ethdev: let apps find transfer admin port for a given ethdev

2021-10-04 Thread Ivan Malov
Introduce a helper API to let applications find transfer admin port for a given ethdev to avoid failures when managing "transfer" flows through unprivileged ports. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- Patch series [1] has reworked support for "transfer" flows. As a result,

[dpdk-dev] [PATCH v2 09/10] net/sfc: support counters in tunnel offload JUMP rules

2021-10-04 Thread Ivan Malov
Such a counter will only report the number of hits, which is actually a sum of two contributions (the JUMP rule's own counter + indirect increments issued by counters of the associated GROUP rules. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/sfc_flow.c|

[dpdk-dev] [PATCH v2 10/10] net/sfc: refine pattern of GROUP flows in tunnel offload

2021-10-04 Thread Ivan Malov
By design, in a GROUP flow, outer match criteria go to "ENC" fields of the action rule match specification. The current HW/FW hasn't got support for these fields (except the VXLAN VNI) yet. As a workaround, start parsing the pattern from the tunnel item. Signed-off-by: Ivan Malov Reviewed-by: An

[dpdk-dev] [PATCH v2 08/10] net/sfc: use action rules in tunnel offload JUMP rules

2021-10-04 Thread Ivan Malov
By design, JUMP flows should be represented solely by the outer rules. But the HW/FW hasn't got support for setting Rx mark from RECIRC_ID on outer rule lookup yet. Neither does it support outer rule counters. As a workaround, an action rule of lower priority is used to do the job. Signed-off-by:

[dpdk-dev] [PATCH v2 07/10] net/sfc: override match on ETH in tunnel offload JUMP rules

2021-10-04 Thread Ivan Malov
The current HW/FW doesn't allow to match on MAC addresses in outer rules. One day this will change for sure, but right now a workaround is needed. Match on VLAN presence in outer rules is also unsupported. Ignore it. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/s

[dpdk-dev] [PATCH v2 06/10] net/sfc: implement control path operations in tunnel offload

2021-10-04 Thread Ivan Malov
Support generic callbacks which callers will invoke to get PMD-specific actions and items used to produce JUMP and GROUP flows and to detect tunnel information. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/sfc_dp.c | 48 + drivers/net/sfc/sfc_dp.h

[dpdk-dev] [PATCH v2 05/10] net/sfc: support GROUP flows in tunnel offload

2021-10-04 Thread Ivan Malov
GROUP is an in-house term for so-called "tunnel_match" flows. On parsing, they are detected by virtue of PMD-internal item MARK. It associates a given flow with its tunnel context. Such a flow is represented by a MAE action rule which is chained with the corresponding JUMP rule's outer rule by vir

[dpdk-dev] [PATCH v2 04/10] common/sfc_efx/base: add RECIRC ID match in action rules API

2021-10-04 Thread Ivan Malov
Currently, there is an API for setting recirculation ID in outer rules. Add an API to let action rules match on it. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/common/sfc_efx/base/efx.h | 13 ++ drivers/common/sfc_efx/base/efx_mae.c | 36 +

[dpdk-dev] [PATCH v2 03/10] net/sfc: support JUMP flows in tunnel offload

2021-10-04 Thread Ivan Malov
JUMP is an in-house term for so-called "tunnel_set" flows. On parsing, they are identified by virtue of actions MARK (PMD-internal) and JUMP. The action MARK associates a given flow with its tunnel context. Such a flow is represented by a MAE outer rule (OR) which has its recirculation ID set. Thi

[dpdk-dev] [PATCH v2 02/10] common/sfc_efx/base: add API to set RECIRC ID in outer rules

2021-10-04 Thread Ivan Malov
When an outer rule is hit, it can pass recirculation ID down to action rule lookup, and action rules can match on this ID instead of matching on the outer rule allocation handle. By default, recirculation ID is assumed to be zero. Add an API to set recirculation ID in outer rules. Signed-off-by:

[dpdk-dev] [PATCH v2 01/10] net/sfc: fence off 8 bits in Rx mark for tunnel offload

2021-10-04 Thread Ivan Malov
Later patches add support for tunnel offload on Riverhead (EF100). A board can host at most 254 tunnels. Partially offloaded (missed) tunnel packets are identified by virtue of 8 high bits in Rx mark. Add basic definitions of the upcoming tunnel offload support and take care of the dedicated bits

[dpdk-dev] [PATCH v2 00/10] net/sfc: add support for tunnel offload

2021-10-04 Thread Ivan Malov
The first 6 patches comprise the fundamental part of the series. They are trying to be future-proof with respect to the planned HW/FW changes. 4 more patches form the adaptation part of some sort to make the offload work on the currently available HW/FW. This patch series should be applied on top

[dpdk-dev] [PATCH v4 5/5] net/sfc: report user flag on EF100 native datapath

2021-10-04 Thread Ivan Malov
Detect the flag in Rx prefix and pass it to users. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc_ef100_rx.c | 18 ++ drivers/net/sfc/sfc_rx.c | 3 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/net/

[dpdk-dev] [PATCH v4 4/5] common/sfc_efx/base: add RxQ flag to use Rx prefix user flag

2021-10-04 Thread Ivan Malov
Add an RxQ flag to request support for user flag field of Rx prefix. The feature is supported only on EF100 and EF10 ESSB. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/common/sfc_efx/base/ef10_rx.c | 54 -- drivers/commo

[dpdk-dev] [PATCH v4 3/5] net/sfc: support flow mark delivery on EF100 native datapath

2021-10-04 Thread Ivan Malov
MAE counter engine gets generation counts by virtue of the mark, so the code to extract the field is already in place, but flow action MARK doesn't benefit from it. Support this use case, too. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/net/sfc

[dpdk-dev] [PATCH v4 1/5] ethdev: negotiate delivery of packet metadata from HW to PMD

2021-10-04 Thread Ivan Malov
Provide an API to let the application control the NIC's ability to deliver specific kinds of per-packet metadata to the PMD. Checks for the NIC's ability to set these kinds of metadata in the first place (support for the flow actions) belong in flow API responsibility domain (flow validate mechani

[dpdk-dev] [PATCH v4 2/5] net/sfc: support API to negotiate delivery of Rx metadata

2021-10-04 Thread Ivan Malov
Initial support for the method. Later patches will extend it to make FLAG and MARK delivery available on EF100 native datapath. Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- drivers/net/sfc/sfc.h| 2 ++ drivers/net/sfc/sfc_ethdev.c | 29

[dpdk-dev] [PATCH v4 0/5] Negotiate the NIC's ability to deliver Rx metadata to the PMD

2021-10-04 Thread Ivan Malov
In 2019, commit [1] announced changes in DEV_RX_OFFLOAD namespace intending to add new flags, RSS_HASH and FLOW_MARK. Since then, only the former has been added. The issue has not been solved. Applications still assume that metadata features always work and do not need to be configured in advance.

Re: [dpdk-dev] [PATCH v3 6/6] bbdev: reduce warning level for one scenario

2021-10-04 Thread Chautru, Nicolas
Hi Akhil, Can this serie below be applied now? Thanks and regards, Nic > -Original Message- > From: Tom Rix > Sent: Monday, September 13, 2021 1:02 PM > To: Chautru, Nicolas ; dev@dpdk.org; > gak...@marvell.com > Cc: tho...@monjalon.net; hemant.agra...@nxp.com; Zhang, Mingshan > ; Joshi,

Re: [dpdk-dev] [PATCH v1] baseband/acc100: fix 4GUL outbound size when CRC is dropped

2021-10-04 Thread Chautru, Nicolas
Hi Akhil, Can this be applied? Thanks Nic > -Original Message- > From: Tom Rix > Sent: Saturday, September 11, 2021 12:19 PM > To: Chautru, Nicolas ; dev@dpdk.org; > gak...@marvell.com > Cc: tho...@monjalon.net; Zhang, Mingshan ; > Joshi, Arun ; sta...@dpdk.org > Subject: Re: [PATCH v1]

Re: [dpdk-dev] [PATCH v7 8/9] app/bbdev: handle endianness of test data

2021-10-04 Thread Chautru, Nicolas
> -Original Message- > From: nipun.gu...@nxp.com > Sent: Tuesday, September 28, 2021 1:30 AM > To: dev@dpdk.org; gak...@marvell.com; Chautru, Nicolas > > Cc: david.march...@redhat.com; hemant.agra...@nxp.com; Nipun Gupta > > Subject: [PATCH v7 8/9] app/bbdev: handle endianness of test

Re: [dpdk-dev] [PATCH v7 9/9] app/bbdev: add test vectors for transport blocks

2021-10-04 Thread Chautru, Nicolas
Hi Nipin, Based on patch 8/9 you should not need new vectors with different endianness. Existing vectors should already be supported (ie all vectors must have the same LE endianness assumption) and the bbdev-test will call reverse_all_ops to change the endianness from the vectors when the endia

Re: [dpdk-dev] [PATCH v7 6/9] baseband/la12xx: add enqueue and dequeue support

2021-10-04 Thread Chautru, Nicolas
> -Original Message- > From: nipun.gu...@nxp.com > Sent: Tuesday, September 28, 2021 1:30 AM > To: dev@dpdk.org; gak...@marvell.com; Chautru, Nicolas > > Cc: david.march...@redhat.com; hemant.agra...@nxp.com; Nipun Gupta > > Subject: [PATCH v7 6/9] baseband/la12xx: add enqueue and deq

Re: [dpdk-dev] [PATCH v7 5/9] baseband/la12xx: add queue and modem config support

2021-10-04 Thread Chautru, Nicolas
> -Original Message- > From: nipun.gu...@nxp.com > Sent: Tuesday, September 28, 2021 1:30 AM > To: dev@dpdk.org; gak...@marvell.com; Chautru, Nicolas > > Cc: david.march...@redhat.com; hemant.agra...@nxp.com; Nipun Gupta > > Subject: [PATCH v7 5/9] baseband/la12xx: add queue and modem

Re: [dpdk-dev] [PATCH v7 1/9] bbdev: add big endian processing data processing info

2021-10-04 Thread Chautru, Nicolas
> -Original Message- > From: nipun.gu...@nxp.com > Sent: Tuesday, September 28, 2021 1:30 AM > To: dev@dpdk.org; gak...@marvell.com; Chautru, Nicolas > > Cc: david.march...@redhat.com; hemant.agra...@nxp.com; Nipun Gupta > > Subject: [PATCH v7 1/9] bbdev: add big endian processing dat

Re: [dpdk-dev] [PATCH v2 1/3] bus/vmbus: fix leak on device scan

2021-10-04 Thread Long Li
> Subject: [PATCH v2 1/3] bus/vmbus: fix leak on device scan > > Caught running ASAN. > The device name was leaked on scan. > rte_device name field being a const, use a local pointer and release in error > path. > > Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support") > Cc: sta...@

Re: [dpdk-dev] [PATCH v23 1/6] dmadev: introduce DMA device library

2021-10-04 Thread Radha Mohan
On Fri, Sep 24, 2021 at 3:58 AM Chengwen Feng wrote: > > The 'dmadevice' is a generic type of DMA device. > > This patch introduce the 'dmadevice' device allocation APIs. > > The infrastructure is prepared to welcome drivers in drivers/dma/ > > Signed-off-by: Chengwen Feng > Acked-by: Bruce Richa

Re: [dpdk-dev] [PATCH] net/cxgbe: remove useless address check

2021-10-04 Thread Rahul Lakkireddy
On Monday, October 10/04/21, 2021 at 18:27:54 +0100, Ferruh Yigit wrote: > reported by "gcc (GCC) 12.0.0 20211003 (experimental)": > > ../drivers/net/cxgbe/cxgbe_ethdev.c: > In function ‘cxgbe_dev_rx_queue_setup’: > ../drivers/net/cxgbe/cxgbe_ethdev.c:682:24: > error: the comparison wi

[dpdk-dev] [PATCH v4 5/5] mbuf: mark rte_mbuf_to_priv as stable

2021-10-04 Thread Stephen Hemminger
This inline function was added in 18.08 Signed-off-by: Stephen Hemminger --- lib/mbuf/rte_mbuf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/mbuf/rte_mbuf.h b/lib/mbuf/rte_mbuf.h index 6913b6d6f3ff..aa8a048934ad 100644 --- a/lib/mbuf/rte_mbuf.h +++ b/lib/mbuf/rte_mbuf.h @@ -272,7 +272

[dpdk-dev] [PATCH v4 4/5] mbuf: make rte_mbuf_tx_offload as stable

2021-10-04 Thread Stephen Hemminger
This function should be made stable now. Cc: konstantin.anan...@intel.com Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko --- lib/mbuf/rte_mbuf.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/mbuf/rte_mbuf.h b/lib/mbuf/rte_mbuf.h index ff6739ccc2a2..691

[dpdk-dev] [PATCH v4 3/5] mbuf: make rte_mbuf_check part of stable API

2021-10-04 Thread Stephen Hemminger
This one has been in for required time period. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko Acked-by: Olivier Matz --- lib/mbuf/rte_mbuf.h | 1 - lib/mbuf/version.map | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mbuf/rte_mbuf.h b/lib/mbuf/rte_mbuf.h

[dpdk-dev] [PATCH v4 2/5] mbuf: make rte_mbuf_dynfield API's stable

2021-10-04 Thread Stephen Hemminger
These functions to register dynamic fields were added in 20.11 and should be promoted to stable. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko Acked-by: Olivier Matz --- lib/mbuf/rte_mbuf_dyn.h | 15 --- lib/mbuf/version.map| 18 +- 2 files changed

[dpdk-dev] [PATCH v4 1/5] mbuf: make rte_pktmbuf_free_bulk and rte_pktmbuf_copy stable API's

2021-10-04 Thread Stephen Hemminger
These two functions were added in 20.11 as experimental. Time to promote the to stable status. Signed-off-by: Stephen Hemminger Acked-by: Andrew Rybchenko Acked-by: Olivier Matz --- lib/mbuf/rte_mbuf.h | 2 -- lib/mbuf/version.map | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) di

[dpdk-dev] [PATCH v4 0/5] mbuf: promote experimental API's to stable

2021-10-04 Thread Stephen Hemminger
These are all functions that have been around since at least 19.05 v4 - fix the tx_offload patch add the mbuf_to_priv patch Stephen Hemminger (5): mbuf: make rte_pktmbuf_free_bulk and rte_pktmbuf_copy stable API's mbuf: make rte_mbuf_dynfield API's stable mbuf: make rte_mbuf_check part

Re: [dpdk-dev] [PATCH] mbuf: promote some helpers to stable

2021-10-04 Thread Stephen Hemminger
On Sat, 2 Oct 2021 16:16:14 +0200 David Marchand wrote: > Those accessors have been introduced more than two years ago > (rte_mbuf_to_priv in v18.05, rte_mbuf_*_addr* in v19.02). > Time to mark them stable. > > rte_mbuf_to_baddr() could be removed, but since we lack a deprecation > notice, keep

Re: [dpdk-dev] [PATCH v4] eventdev/rx-adapter: fix segfault in queue conf get

2021-10-04 Thread Kundapura, Ganapati
Hi Jay, > -Original Message- > From: Jayatheerthan, Jay > Sent: 04 October 2021 22:49 > To: Kundapura, Ganapati ; > jerinjac...@gmail.com; dev@dpdk.org > Subject: RE: [PATCH v4] eventdev/rx-adapter: fix segfault in queue conf get > > > -Original Message- > > From: Kundapura, Gana

[dpdk-dev] [PATCH] net/cxgbe: remove useless address check

2021-10-04 Thread Ferruh Yigit
reported by "gcc (GCC) 12.0.0 20211003 (experimental)": ../drivers/net/cxgbe/cxgbe_ethdev.c: In function ‘cxgbe_dev_rx_queue_setup’: ../drivers/net/cxgbe/cxgbe_ethdev.c:682:24: error: the comparison will always evaluate as ‘true’ for the address of ‘fl’ will never be NULL [

Re: [dpdk-dev] [PATCH v4] eventdev/rx-adapter: fix segfault in queue conf get

2021-10-04 Thread Jayatheerthan, Jay
> -Original Message- > From: Kundapura, Ganapati > Sent: Friday, October 1, 2021 11:00 AM > To: jerinjac...@gmail.com; dev@dpdk.org > Cc: Jayatheerthan, Jay > Subject: [PATCH v4] eventdev/rx-adapter: fix segfault in queue conf get > > rte_event_eth_rx_adapter_queue_conf_get() segfaults i

[dpdk-dev] [PATCH] net/softnic: remove useless address check

2021-10-04 Thread Ferruh Yigit
Reported by "gcc (GCC) 12.0.0 20211003 (experimental)": ./drivers/net/softnic/rte_eth_softnic_cli.c: In function ‘tmgr_hierarchy_default’: ./drivers/net/softnic/rte_eth_softnic_cli.c:634:73: error: the comparison will always evaluate as ‘true’ for the address of ‘tc_valid’

Re: [dpdk-dev] [PATCH] test/hash: use compiler atomics for sync

2021-10-04 Thread Wang, Yipeng1
> -Original Message- > From: David Marchand > Sent: Saturday, October 2, 2021 8:16 AM > To: Wang, Yipeng1 ; Gobriel, Sameh > ; Richardson, Bruce > ; Medvedkin, Vladimir > > Cc: dev ; nd ; Dharmik Thakkar > ; Joyce Kong ; Ruifeng > Wang > Subject: Re: [dpdk-dev] [PATCH] test/hash: use com

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Elad Nachman
בתאריך יום ב׳, 4 באוק׳ 2021, 20:00, מאת Eric Christian ‏: > I am not sure that only we can recreate the KNI request overwrite. We may > be the only ones with a current use case that exposes the vulnerability. > It is possible for any KNI operation to encounter this issue with the new > async mec

Re: [dpdk-dev] [PATCH v1 5/5] lib/eal: remove unneeded header includes

2021-10-04 Thread David Christensen
On 10/4/21 3:10 AM, Sean Morrissey wrote: These header includes have been flagged by the iwyu_tool and removed. Signed-off-by: Sean Morrissey --- lib/eal/common/eal_common_dev.c| 5 - lib/eal/common/eal_common_devargs.c| 1 - lib/eal/common/eal_common_errno.c | 4

Re: [dpdk-dev] [PATCH v1 0/5] introduce IWYU

2021-10-04 Thread Bruce Richardson
On Mon, Oct 04, 2021 at 08:55:35AM -0700, Stephen Hemminger wrote: > On Mon, 4 Oct 2021 10:10:53 + > Sean Morrissey wrote: > > > This patchset introduces the include-what-you-use script which removes > > unused header includes. IWYU GitHub: > > > > https://github.com/include-what-you-use/in

[dpdk-dev] [Bug 822] failsafe build fails for gcc12

2021-10-04 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=822 Bug ID: 822 Summary: failsafe build fails for gcc12 Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Nor

Re: [dpdk-dev] [PATCH] net/memif: allocate socket hash on any NUMA socket

2021-10-04 Thread Ferruh Yigit
On 10/4/2021 1:02 PM, Jakub Grajciar -X (jgrajcia - PANTHEON TECH SRO at Cisco) wrote: > > >> On 9/28/2021 2:51 PM, Junxiao Shi wrote: >>> Previously, memif socket hash is always allocated on NUMA socket 0. >>> If the application is entirely running on another NUMA socket and EAL >>> --socket-li

[dpdk-dev] [PATCH] net/ena: remove useless address check

2021-10-04 Thread Ferruh Yigit
Reported by "gcc (GCC) 12.0.0 20211003 (experimental)": ./drivers/net/ena/ena_rss.c: In function ‘ena_rss_reta_query’: ./drivers/net/ena/ena_rss.c:140:66: error: the comparison will always evaluate as ‘false’ for the pointer operand in ‘reta_conf + 136’ must not be NULL [-W

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Eric Christian
I am not sure that only we can recreate the KNI request overwrite. We may be the only ones with a current use case that exposes the vulnerability. It is possible for any KNI operation to encounter this issue with the new async mechanism. As long as the call to kni_net_process_request() is a sepa

[dpdk-dev] [PATCH] app/flow-perf: export some configuration options

2021-10-04 Thread Wisam Jaddo
Some options are needed in the runtime many times, so leaving it during compilation is not correct. As a result some options has been exported into command line options to be used at run time. The options exported are: --txq=N --rxq=N --txd=N --rxd=N --mbuf-size=N --mbuf-cache-size=N --total-mbuf-

Re: [dpdk-dev] [PATCH v4] net: introduce IPv4 ihl and version fields

2021-10-04 Thread Olivier Matz
On Mon, Oct 04, 2021 at 08:59:34AM -0700, Stephen Hemminger wrote: > On Mon, 4 Oct 2021 15:13:22 +0300 > Gregory Etelson wrote: > > > diff --git a/app/test/test_flow_classify.c b/app/test/test_flow_classify.c > > index 951606f248..4f64be5357 100644 > > --- a/app/test/test_flow_classify.c > > +++

Re: [dpdk-dev] [RFC] mempool: implement index-based per core cache

2021-10-04 Thread Honnappa Nagarahalli
> > > > > > Current mempool per core cache implementation is based on pointer > > > > For most architectures, each pointer consumes 64b Replace it with > > > > index-based implementation, where in each buffer is addressed by > > > > (pool address + index) > > > > > > I don't think it is going to

Re: [dpdk-dev] [PATCH v2 0/7] Removal of PCI bus ABIs

2021-10-04 Thread Harris, James R
Adding Changpeng Liu from SPDK side. On 10/4/21, 6:48 AM, "David Marchand" wrote: On Thu, Sep 30, 2021 at 10:45 AM David Marchand wrote: > On Wed, Sep 29, 2021 at 9:38 AM Xia, Chenbo wrote: > > @David, could you help me understand what is the compile error in Fedora 31? >

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Elad Nachman
On Mon, Oct 4, 2021 at 7:05 PM Ferruh Yigit wrote: > On 10/4/2021 3:58 PM, Elad Nachman wrote: > > בתאריך יום ב׳, 4 באוק׳ 2021, 17:51, מאת Ferruh Yigit ‏< > > ferruh.yi...@intel.com>: > > > >> On 10/4/2021 3:25 PM, Elad Nachman wrote: > >> > >> Can you please try to not top post, it will make imp

[dpdk-dev] [PATCH v4] net: introduce IPv4 ihl and version fields

2021-10-04 Thread Gregory Etelson
RTE IPv4 header definition combines the `version' and `ihl' fields into a single structure member. This patch introduces dedicated structure members for both `version' and `ihl' IPv4 fields. Separated header fields definitions allow to create simplified code to match on the IHL value in a flow rul

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Ferruh Yigit
On 10/4/2021 3:58 PM, Elad Nachman wrote: > בתאריך יום ב׳, 4 באוק׳ 2021, 17:51, מאת Ferruh Yigit ‏< > ferruh.yi...@intel.com>: > >> On 10/4/2021 3:25 PM, Elad Nachman wrote: >> >> Can you please try to not top post, it will make impossible to follow this >> discussion later from the mail archives.

Re: [dpdk-dev] [PATCH v4] net: introduce IPv4 ihl and version fields

2021-10-04 Thread Stephen Hemminger
On Mon, 4 Oct 2021 15:13:22 +0300 Gregory Etelson wrote: > diff --git a/app/test/test_flow_classify.c b/app/test/test_flow_classify.c > index 951606f248..4f64be5357 100644 > --- a/app/test/test_flow_classify.c > +++ b/app/test/test_flow_classify.c > @@ -95,7 +95,7 @@ static struct rte_acl_field_d

Re: [dpdk-dev] [PATCH v1 0/5] introduce IWYU

2021-10-04 Thread Stephen Hemminger
On Mon, 4 Oct 2021 10:10:53 + Sean Morrissey wrote: > This patchset introduces the include-what-you-use script which removes > unused header includes. IWYU GitHub: > > https://github.com/include-what-you-use/include-what-you-use > > Along with the script there are some patches which make a

Re: [dpdk-dev] [PATCH] common/cnxk: fix incorrect free of MCAM counter

2021-10-04 Thread Jerin Jacob
On Fri, Sep 17, 2021 at 10:08 AM wrote: > > From: Satheesh Paul > > Upon MCAM allocation failure, free counters only if counters > were allocated earlier for the flow rule. > > Fixes: f9af9080746 ("common/cnxk: add mcam utility API") > > Signed-off-by: Satheesh Paul Acked-by: Jerin Jacob Appli

Re: [dpdk-dev] [PATCH 1/3] examples/l3fwd: increase number of routes

2021-10-04 Thread Stephen Hemminger
On Mon, 4 Oct 2021 01:41:08 +0530 wrote: > From: Pavan Nikhilesh > > Increase the number of routes from 8 to 16 that are statically added for > lpm and em mode as most of the SoCs support more than 8 interfaces. > The number of routes added is equal to the number of ethernet devices > ports ena

Re: [dpdk-dev] [PATCH v1 02/12] ethdev: add eswitch port item to flow API

2021-10-04 Thread Ori Kam
Hi Ivan, > -Original Message- > From: Ivan Malov > Sent: Monday, October 4, 2021 2:06 PM > Cc: dev@dpdk.org > Subject: Re: [PATCH v1 02/12] ethdev: add eswitch port item to flow API > > Hi Ori, > > On 04/10/2021 08:45, Ori Kam wrote: > > Hi Ivan, > > > >> -Original Message- > >>

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Ferruh Yigit
On 10/4/2021 3:14 PM, Eric Christian wrote: > Adding Sahithi. > > I believe adding the -EAGAIN method puts the responsibility on the > application/caller. If we take the change MAC address as an example. Most > application code just does this kind of check: > > ret = ioctl(sockfd, SIOCS

Re: [dpdk-dev] [PATCH v1 1/5] devtools: script to remove unused headers includes

2021-10-04 Thread Bruce Richardson
On Mon, Oct 04, 2021 at 10:10:54AM +, Sean Morrissey wrote: > This script can be used for removing headers flagged for removal by the > include-what-you-use (IWYU) tool. The script has the ability to remove > headers from specified sub-directories or dpdk as a whole. > Since it also is importi

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Elad Nachman
בתאריך יום ב׳, 4 באוק׳ 2021, 17:51, מאת Ferruh Yigit ‏< ferruh.yi...@intel.com>: > On 10/4/2021 3:25 PM, Elad Nachman wrote: > > Can you please try to not top post, it will make impossible to follow this > discussion later from the mail archives. > > > 1. Userspace will get an error > > So there i

Re: [dpdk-dev] [PATCH v4 6/6] net/iavf: add watchdog for VFLR

2021-10-04 Thread Nicolau, Radu
On 10/4/2021 12:18 PM, Nicolau, Radu wrote: On 10/4/2021 3:15 AM, Wu, Jingjing wrote: -Original Message- From: Nicolau, Radu Sent: Friday, October 1, 2021 5:52 PM To: Wu, Jingjing ; Xing, Beilei Cc: dev@dpdk.org; Doherty, Declan ; Sinha, Abhijit ; Zhang, Qi Z ; Richardson, Bruc

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Ferruh Yigit
On 10/4/2021 3:25 PM, Elad Nachman wrote: Can you please try to not top post, it will make impossible to follow this discussion later from the mail archives. > 1. Userspace will get an error So there is nothing special with returning '-EAGAIN', user will only observe an error. Wasn't initial int

Re: [dpdk-dev] [PATCH v1 5/5] lib/eal: remove unneeded header includes

2021-10-04 Thread Mattias Rönnblom
On 2021-10-04 12:23, Van Haaren, Harry wrote: >> -Original Message- >> From: Morrissey, Sean >> Sent: Monday, October 4, 2021 11:11 AM >> To: Burakov, Anatoly ; Jerin Jacob >> ; Sunil Kumar Kori ; mattias.ronnblom >> ; Van Haaren, Harry >> ; Harman Kalra ; >> Richardson, Bruce ; Ananyev, K

[dpdk-dev] [PATCH v4 3/7] ethdev: copy ethdev 'fast' API into separate structure

2021-10-04 Thread Konstantin Ananyev
Copy public function pointers (rx_pkt_burst(), etc.) and related pointers to internal data from rte_eth_dev structure into a separate flat array. That array will remain in a public header. The intention here is to make rte_eth_dev and related structures internal. That should allow future possible c

[dpdk-dev] [PATCH v4 5/5] app/testpmd: add missing flow types in port info

2021-10-04 Thread Maxime Coquelin
This patch adds missing IPv6-Ex and GTPU flow types to port info command. It also add the same definitions to str2flowtype(), used to configure flow director. Signed-off-by: Maxime Coquelin --- app/test-pmd/cmdline.c | 4 app/test-pmd/config.c | 4 2 files changed, 8 insertions(+) di

[dpdk-dev] [PATCH v4 4/5] net/mlx5: fix RSS RETA update

2021-10-04 Thread Maxime Coquelin
This patch fixes RETA updating for entries above 64. Without ithat, these entries are never updated as calculated mask value will always be 0. Fixes: 634efbc2c8c0 ("mlx5: support RETA query and update") Cc: sta...@dpdk.org Cc: nelio.laranje...@6wind.com Signed-off-by: Maxime Coquelin Acked-by: V

[dpdk-dev] [PATCH v4 3/5] app/testpmd: fix RSS type display

2021-10-04 Thread Maxime Coquelin
This patch fixes the display of the RSS hash types configured in the port, which displayed "all" even if only a single type was configured Fixes: 3c90743dd3b9 ("app/testpmd: support more types for flow RSS") Cc: sta...@dpdk.org Signed-off-by: Maxime Coquelin Acked-by: Xiaoyun Li Reviewed-by: Ch

[dpdk-dev] [PATCH v4 2/5] app/testpmd: fix RSS key length

2021-10-04 Thread Maxime Coquelin
port_rss_hash_key_update() initializes rss_conf with the RSS key configuration provided by the user, but it calls rte_eth_dev_rss_hash_conf_get() before calling rte_eth_dev_rss_hash_update(), which overrides the parsed RSS config. While the RSS key value is set again after, this is not the case o

[dpdk-dev] [PATCH v4 1/5] net/virtio: add initial RSS support

2021-10-04 Thread Maxime Coquelin
Provide the capability to update the hash key, hash types and RETA table on the fly (without needing to stop/start the device). However, the key length and the number of RETA entries are fixed to 40B and 128 entries respectively. This is done in order to simplify the design, but may be revisited la

[dpdk-dev] [PATCH v4 0/5] Virtio PMD RSS support & RSS fixes

2021-10-04 Thread Maxime Coquelin
This series is mainly adding support for RSS to Virtio PMD driver. The two last patches are fixing an issue in testpmd that could cause out of bounds access, and fix an issue spotted in the mlx5 driver while looking for inspiration. The first motivation for this series is to eventually support RSS

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Elad Nachman
1. Userspace will get an error 2. Waiting with rtnl locked causes a deadlock; waiting with rtnl unlocked for interface down command causes a crash because of a race condition in the device delete/unregister list in the kernel. FYI, Elad. בתאריך יום ב׳, 4 באוק׳ 2021, 17:13, מאת Ferruh Yigit ‏< fe

[dpdk-dev] [PATCH v3] test: add reassembly perf test

2021-10-04 Thread pbhagavatula
From: Pavan Nikhilesh Add reassembly perf autotest for both ipv4 and ipv6 reassembly. Each test is performed with variable number of fragments per flow, either ordered or unordered fragments and interleaved flows. Signed-off-by: Pavan Nikhilesh --- v3 Changes: - Fix checkpatch issues. v2 Cha

[dpdk-dev] [PATCH v4 1/7] ethdev: allocate max space for internal queue array

2021-10-04 Thread Konstantin Ananyev
At queue configure stage always allocate space for maximum possible number (RTE_MAX_QUEUES_PER_PORT) of queue pointers. That will allow 'fast' inline functions (eth_rx_burst, etc.) to refer pointer to internal queue data without extra checking of current number of configured queues. That would help

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Eric Christian
Adding Sahithi. I believe adding the -EAGAIN method puts the responsibility on the application/caller. If we take the change MAC address as an example. Most application code just does this kind of check: ret = ioctl(sockfd, SIOCSIFHWADDR, &ifr); if (ret < 0) { P

Re: [dpdk-dev] [PATCH v2] kni: Fix request overwritten

2021-10-04 Thread Ferruh Yigit
On 10/4/2021 2:09 PM, Elad Nachman wrote: > Hi, > > EAGAIN is propogated back to the kernel and to the caller. > So will the user get an error, or it will be handled by the kernel and retried? > We cannot retry from the kni kernel module since we hold the rtnl lock. > Why not? We are already

Re: [dpdk-dev] [EXT] Re: [PATCH v1 6/7] eal/interrupts: make interrupt handle structure opaque

2021-10-04 Thread Harman Kalra
Hi Dmitry, Please find my comments inline. > -Original Message- > From: Dmitry Kozlyuk > Sent: Sunday, October 3, 2021 11:46 PM > To: Harman Kalra > Cc: dev@dpdk.org; Anatoly Burakov > Subject: [EXT] Re: [dpdk-dev] [PATCH v1 6/7] eal/interrupts: make interrupt > handle structure opaque

Re: [dpdk-dev] [EXT] Re: [PATCH v1 2/7] eal/interrupts: implement get set APIs

2021-10-04 Thread Harman Kalra
> -Original Message- > From: Dmitry Kozlyuk > Sent: Monday, October 4, 2021 4:48 PM > To: Harman Kalra > Cc: dev@dpdk.org; Ray Kinsella ; David Marchand > > Subject: Re: [EXT] Re: [dpdk-dev] [PATCH v1 2/7] eal/interrupts: implement > get set APIs > > 2021-10-04 10:37 (UTC+), Harm

[dpdk-dev] [PATCH v4 6/7] ethdev: remove legacy Rx descriptor done API

2021-10-04 Thread Konstantin Ananyev
rte_eth_rx_descriptor_status() should be used as a replacement. Signed-off-by: Andrew Rybchenko Reviewed-by: Ferruh Yigit Acked-by: Konstantin Ananyev --- doc/guides/nics/features.rst| 6 +- doc/guides/rel_notes/deprecation.rst| 5 - doc/guides/rel_notes/release_21_11

[dpdk-dev] [PATCH v4 5/7] ethdev: add API to retrieve multiple ethernet addresses

2021-10-04 Thread Konstantin Ananyev
Introduce rte_eth_macaddrs_get() to allow user to retrieve all ethernet addresses assigned to given port. Change testpmd to use this new function and avoid referencing directly rte_eth_devices[]. Signed-off-by: Konstantin Ananyev --- app/test-pmd/config.c | 23 +++---

[dpdk-dev] [PATCH v4 7/7] ethdev: hide eth dev related structures

2021-10-04 Thread Konstantin Ananyev
Move rte_eth_dev, rte_eth_dev_data, rte_eth_rxtx_callback and related data into private header (ethdev_driver.h). Few minor changes to keep DPDK building after that. Signed-off-by: Konstantin Ananyev --- doc/guides/rel_notes/release_21_11.rst| 6 + drivers/common/octeontx2/otx2_sec_ide

[dpdk-dev] [PATCH v4 4/7] ethdev: make burst functions to use new flat array

2021-10-04 Thread Konstantin Ananyev
Rework 'fast' burst functions to use rte_eth_fp_ops[]. While it is an API/ABI breakage, this change is intended to be transparent for both users (no changes in user app is required) and PMD developers (no changes in PMD is required). One extra thing to note - RX/TX callback invocation will cause ex

[dpdk-dev] [PATCH v4 0/7] hide eth dev related structures

2021-10-04 Thread Konstantin Ananyev
v4 changes: - Fix secondary process attach (Pavan) - Fix build failure (Ferruh) - Update lib/ethdev/verion.map (Ferruh) Note that moving newly added symbols from EXPERIMENTAL to DPDK_22 section makes checkpatch.sh to complain. v3 changes: - Changes in public struct naming (Jerin/Haiyue)

[dpdk-dev] [PATCH v4 2/7] ethdev: change input parameters for rx_queue_count

2021-10-04 Thread Konstantin Ananyev
Currently majority of 'fast' ethdev ops take pointers to internal queue data structures as an input parameter. While eth_rx_queue_count() takes a pointer to rte_eth_dev and queue index. For future work to hide rte_eth_devices[] and friends it would be plausible to unify parameters list of all 'fast

Re: [dpdk-dev] [PATCH v3 1/5] ethdev: add API to negotiate delivery of Rx meta data

2021-10-04 Thread Andrew Rybchenko
On 10/4/21 2:39 PM, Ivan Malov wrote: > On 04/10/2021 09:56, Ori Kam wrote: >>> On 04/10/2021 00:04, Ori Kam wrote: I understand that you are only talking about enabling the action, meaning to let the PMD know that at some point there will be a rule that will use the mark action for

  1   2   >