RE: [PATCH v5 23/27] dev: hide driver object

2022-09-05 Thread Gujjar, Abhinandan S
Acked-by: Abhinandan Gujjar > -Original Message- > From: David Marchand > Sent: Monday, September 5, 2022 2:09 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; Richardson, Bruce ; > Jayatheerthan, Jay ; Ajit Khaparde > ; Chautru, Nicolas > ; Parav Pandit ; Xueming Li > ; Hemant Agrawal ;

RE: [EXT] [PATCH v5 08/27] eal: deprecate RTE_FUNC_PTR_* macros

2022-09-05 Thread Akhil Goyal
> Those macros have no real value and are easily replaced with a simple > if() block. > > Existing users have been converted using a new cocci script. > Deprecate them. > > Signed-off-by: David Marchand > --- > lib/cryptodev/rte_cryptodev.c | 43 ++- > lib/security/rte_secu

RE: [EXT] [PATCH v5 23/27] dev: hide driver object

2022-09-05 Thread Akhil Goyal
> Make rte_driver opaque for non internal users. > This will make extending this object possible without breaking the ABI. > > Introduce a new driver header and move rte_driver definition. > Update drivers and library to use the internal header. > > Some applications may have been dereferencing r

[PATCH v2 2/2] examples/vhost: unconfigure DMA vchannel

2022-09-05 Thread xuan . ding
From: Xuan Ding This patch applies rte_vhost_async_dma_unconfigure() API to manually free 'dma_copy_track' array instead of waiting until the program ends to be released. Signed-off-by: Xuan Ding --- examples/vhost/main.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/examples/vhos

[PATCH v2 1/2] vhost: introduce DMA vchannel unconfiguration

2022-09-05 Thread xuan . ding
From: Xuan Ding This patch adds a new API rte_vhost_async_dma_unconfigure() to unconfigure DMA vchannels in vhost async data path. Lock protection are also added to protect DMA vchannels configuration and unconfiguration from concurrent calls. Signed-off-by: Xuan Ding --- doc/guides/prog_guid

[PATCH v2 0/2] vhost: introduce DMA vchannel unconfiguration

2022-09-05 Thread xuan . ding
From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free the DMA vchannel finished to use. Note: this API should be called after async channel unregister. v2: * Add spinlock protection. * Fix a memory leak issue. * Refine the doc. Xuan

RE: [PATCH] net/ice: avoid out-of-bound access

2022-09-05 Thread Zhang, Qi Z
> -Original Message- > From: Zeng, ZhichaoX > Sent: Tuesday, September 6, 2022 10:29 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > ; Zeng, ZhichaoX ; > Zhang, Qi Z > Subject: [PATCH] net/ice: avoid out-of-bound access > > Add judgment on 'ethdev_port_id' to avoid out-of-b

RE: [PATCH v2] doc: add known issue in i40e guide

2022-09-05 Thread Zhang, Qi Z
> -Original Message- > From: Steve Yang > Sent: Tuesday, September 6, 2022 10:59 AM > To: dev@dpdk.org > Cc: Zhang, Yuying ; Xing, Beilei > ; Yang, SteveX > Subject: [PATCH v2] doc: add known issue in i40e guide > > Add a known issue: configuring VLAN filters from VF is unsupported fo

[PATCH] doc: refine iavf limitation or known issues

2022-09-05 Thread Qi Zhang
Move all VF related limitationi or known issues from i40e.rst to intel_vf.rst, as i40evf has been removed from i40e, i40e.rst should only cover PF's information. The patch also fix couple typos and refine the words to be more accurate. Signed-off-by: Qi Zhang --- doc/guides/nics/i40e.rst |

[PATCH v2] net/i40e: fix single VLAN cannot work normal

2022-09-05 Thread Kevin Liu
After disable QinQ, single VLAN can not work normal. The reason is that QinQ is not disabled correctly. Before configuring QinQ, need to back up and clean MAC/VLAN filters of all ports. After configuring QinQ, restore MAC/VLAN filters of all ports. When disable QinQ, need to set valid_flags to 0x0

RE: [PATCH] net/i40e: fix single VLAN cannot work normal

2022-09-05 Thread Liu, KevinX
> -Original Message- > From: Zhang, Yuying > Sent: Tuesday, September 6, 2022 10:16 AM > To: Liu, KevinX ; dev@dpdk.org > Cc: Xing, Beilei ; Yang, SteveX > Subject: RE: [PATCH] net/i40e: fix single VLAN cannot work normal > > Hi, > > > -Original Message- > > From: Liu, KevinX

Canceled: DTS WG discussions

2022-09-05 Thread Honnappa Nagarahalli
BEGIN:VCALENDAR METHOD:CANCEL PRODID:Microsoft Exchange Server 2010 VERSION:2.0 BEGIN:VTIMEZONE TZID:Central Standard Time BEGIN:STANDARD DTSTART:16010101T02 TZOFFSETFROM:-0500 TZOFFSETTO:-0600 RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11 END:STANDARD BEGIN:DAYLIGHT DTSTART:16010101T02

[PATCH v2] doc: add known issue in i40e guide

2022-09-05 Thread Steve Yang
Add a known issue: configuring VLAN filters from VF is unsupported for driver 2.17.15. Signed-off-by: Steve Yang --- doc/guides/nics/i40e.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/guides/nics/i40e.rst b/doc/guides/nics/i40e.rst index 4875774346..78247a496d 100644 --- a/d

RE: [PATCH v1] doc: add known issue in i40e guide

2022-09-05 Thread Zhang, Yuying
Hi, > -Original Message- > From: Yang, SteveX > Sent: Thursday, July 28, 2022 5:08 PM > To: dev@dpdk.org > Cc: Zhang, Yuying ; Xing, Beilei > ; Yang, Qiming ; Yang, SteveX > > Subject: [PATCH v1] doc: add known issue in i40e guide Specify the detail of this known issue in the title. Add

[PATCH v5] lib/eal: fix segfaults in exiting

2022-09-05 Thread Zhichao Zeng
The 'eal-intr-thread' is not closed before memory cleanup in the process of exiting. There is a small chance that the 'eal-intr-thread' is about to use some pointers, the memory was just cleaned, which causes segfaults caught by ASan. This patch closes the 'eal-intr-thread' before memory cleanup i

[PATCH v5] lib/eal: fix segfaults in exiting

2022-09-05 Thread Zhichao Zeng
The 'eal-intr-thread' is not closed before memory cleanup in the process of exiting. There is a small chance that the 'eal-intr-thread' is about to use some pointers, the memory was just cleaned, which causes segfaults caught by ASan. This patch closes the 'eal-intr-thread' before memory cleanup i

RE: [PATCH v2] net/ice: support original represented_port action

2022-09-05 Thread Zhang, Qi Z
> -Original Message- > From: Zhang, Qi Z > Sent: Thursday, September 1, 2022 9:12 AM > To: Zeng, ZhichaoX ; dev@dpdk.org > Cc: Yang, Qiming ; Zhou, YidingX > > Subject: RE: [PATCH v2] net/ice: support original represented_port action > > > > > -Original Message- > > From: Ze

[PATCH] net/ice: avoid out-of-bound access

2022-09-05 Thread Zhichao Zeng
Add judgment on 'ethdev_port_id' to avoid out-of-bound accessing the 'rte_eth_devices'. Fixes: 6f8fba7e437e ("net/ice: support represented port flow action") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i

[PATCH] vhost: use try_lock in rte_vhost_vring_call

2022-09-05 Thread Changpeng Liu
Note that this function is in data path, so the thread context may not same as socket messages processing context, by using try_lock here, users can have another try in case of VQ's access lock is held by `vhost-events` thread. Signed-off-by: Changpeng Liu --- lib/vhost/vhost.c | 6 +- 1 fil

RE: [PATCH] net/i40e: fix single VLAN cannot work normal

2022-09-05 Thread Zhang, Yuying
Hi, > -Original Message- > From: Liu, KevinX > Sent: Friday, August 19, 2022 12:04 AM > To: dev@dpdk.org > Cc: Zhang, Yuying ; Xing, Beilei > ; Yang, SteveX ; Liu, KevinX > > Subject: [PATCH] net/i40e: fix single VLAN cannot work normal > > After disable QinQ, single VLAN can not work n

Re: [PATCH v6 0/7] Introduce support for LoongArch architecture

2022-09-05 Thread maobibo
kindly ping, any comments is welcome. Now linux kernel/gcc/binutils mainline branches have add support for Loongarch. only there is no popular OS distribution. regards bibo,mao 在 2022/9/1 08:09, zhoumin 写道: > Sincerely ping. > > > On Sat, 27 Aug, 2022 at 16:59 +0800, Min Zhou wrote: >> Dear t

Fwd: GRO Enhancement Proposal

2022-09-05 Thread kumaraparameshwaran rathinavel
Hi Jiyay, Please let me know the thoughts. Thanks, Kumara -- Forwarded message - From: kumaraparameshwaran rathinavel Date: Fri, Jul 22, 2022 at 2:05 PM Subject: GRO Enhancement Proposal To: Cc: Hu, Jiayu , Ferruh Yigit Hi Everyone, I am thinking of a few enhancements to the

Re: [PATCH v3 1/4] net/axgbe: fix scattered Rx

2022-09-05 Thread Ferruh Yigit
On 9/5/2022 6:00 AM, Namburu, Chandu-babu wrote: -Original Message- From: Modali, Bhagyada Sent: Friday, September 2, 2022 2:18 PM To: Namburu, Chandu-babu ; Yigit, Ferruh Cc: dev@dpdk.org; sta...@dpdk.org; Modali, Bhagyada Subject: [PATCH v3 1/4] net/axgbe: fix scattered Rx Error c

Re: [PATCH v7 09/12] net/nfp: add flower ctrl VNIC rxtx logic

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: Adds a Rx and Tx function for the ctrl VNIC. The logic is mostly identical to the normal Rx and Tx functionality of the NFP PMD. Make use of the ctrl VNIC service logic to service the ctrl VNIC Rx path. Signed-off-by: Chaoyong He Signed-off-by: Heinric

Re: [PATCH v7 05/12] net/nfp: add flower PF setup and mempool init logic

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: Adds the vNIC initialization logic for the flower PF vNIC. The flower firmware exposes this vNIC for the purposes of fallback traffic in the switchdev use-case. The logic of setting up this vNIC is similar to the logic seen in nfp_net_init() and nfp_net_

Re: [PATCH v7 00/12] preparation for the rte_flow offload of nfp PMD

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: This is the first patch series to add the support of rte_flow offload for nfp PMD, includes: Add the support of flower firmware Add the support of representor port Add the flower service infrastructure Add the cmsg interactive channels between pmd and fw

Re: [PATCH v7 04/12] net/nfp: add initial flower firmware support

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: Adds the basic probing infrastructure to support the flower firmware. This firmware is geared towards offloading OVS and can generally be found in /lib/firmware/netronome/flower. It is also used by the NFP kernel driver when OVS offload with TC is desired

Re: [PATCH v7 03/12] net/nfp: move app specific init logic to own function

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: The NFP card can load different firmware applications. This commit move the init logic of corenic app of the secondary process into its own function. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund <...> + switch (app_id) { + c

Re: [PATCH v7 01/12] net/nfp: move app specific attributes to own struct

2022-09-05 Thread Ferruh Yigit
On 8/12/2022 11:22 AM, Chaoyong He wrote: The NFP Card can load different firmware applications. Currently only the CoreNIC application is supported. This commit makes needed infrastructure changes in order to support other firmware applications too. App (or firmware application) is a little c

[PATCH v2 11/31] common/cnxk: support zero aura for inline inbound meta

2022-09-05 Thread Nithin Dabilpuram
Add support to create zero aura for inline inbound meta pkts when platform supports it. Aura zero will hold as many buffers as all the available pkt pool with a data to accommodate 384B in best case to store meta packets coming from Inline IPsec. Signed-off-by: Nithin Dabilpuram --- drivers/comm

[PATCH v2 09/31] common/cnxk: add support to set NPA buf type

2022-09-05 Thread Nithin Dabilpuram
Add support to set/get per-aura buf type with refs and get sum of all aura limits matching given buf type mask and val. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/meson.build| 1 + drivers/common/cnxk/roc_npa.c | 11 drivers/common/cnxk/roc_npa.h | 22 +++ d

[PATCH v2 08/31] common/cnxk: reserve aura zero on cn10ka NPA

2022-09-05 Thread Nithin Dabilpuram
Reserve aura id 0 on cn10k and provide mechanism to specifically allocate it and free it via roc_npa_* API's. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_dpi.c | 2 +- drivers/common/cnxk/roc_nix_queue.c | 2 +- drivers/common/cnxk/roc_npa.c | 100 +++

[PATCH v2 07/31] common/cnxk: delay inline device RQ enable to dev start

2022-09-05 Thread Nithin Dabilpuram
Similar to other RQ's, delay inline device rq until dev is started to avoid traffic reception when device is stopped. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_idev.h| 2 -- drivers/common/cnxk/roc_nix_inl.c | 34 --- drivers/common/cnxk/roc_ni

[PATCH v2 04/31] common/cnxk: update inbound inline IPsec config mailbox

2022-09-05 Thread Nithin Dabilpuram
From: Srujana Challa Updates CPT inbound inline IPsec configuration mailbox to provide opcode and CPT credit from VF. This patch also adds mailbox for reading inbound IPsec configuration. Signed-off-by: Srujana Challa --- drivers/common/cnxk/roc_cpt.c | 15 +++ drivers/common/cnx

[PATCH v2 31/31] net/cnxk: dumps device private information

2022-09-05 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla Add support for ethdev private data dump callback for debugging purposes. Signed-off-by: Rakesh Kudurumalla --- drivers/net/cnxk/cnxk_ethdev.c | 1 + drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/cnxk/cnxk_ethdev_ops.c | 29 +

[PATCH v2 30/31] common/cnxk: dump device basic info to file

2022-09-05 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla Add helper API to complete device info for debug purposes. This is used by ethdev dump API to dump ethdev's internal info. Signed-off-by: Rakesh Kudurumalla --- drivers/common/cnxk/roc_nix.h | 12 +- drivers/common/cnxk/roc_nix_debug.c | 726

[PATCH v2 29/31] net/cnxk: enable esn and antireplay support

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Enable ESN and anti-replay in IPsec capabilities Add support for session update security API Fix the cpt command population for ESN enabled case Signed-off-by: Vidya Sagar Velumuri --- drivers/net/cnxk/cn9k_ethdev_sec.c | 139 - 1 file cha

[PATCH v2 28/31] net/cnxk: Add support for crypto auth alg MD5

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Add support for MD5 auth algo for security offload in inline mode. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/cnxk_security.c | 4 drivers/net/cnxk/cn9k_ethdev_sec.c | 20 2 files changed, 24 insertions(+) diff --git a/dr

[PATCH v2 27/31] net/cnxk: add support for crypto cipher DES-CBC

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Add support for DES-CBC cipher for security offload in inline mode. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/cnxk_security.c | 5 + drivers/net/cnxk/cn9k_ethdev_sec.c | 20 2 files changed, 25 insertions(+) diff --git a/

[PATCH v2 26/31] net/cnxk: limit port specific SA table size

2022-09-05 Thread Nithin Dabilpuram
Limit port specific SA table size to 1 entry when not used. This is usefule when inline device is enabled as then Port specific SA table will not be used for Inline IPsec inbound processing. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cnxk_ethdev.c | 4 drivers/net/cnxk/cn

[PATCH v2 25/31] event/cnxk: wait for CPT fc on wqe path

2022-09-05 Thread Nithin Dabilpuram
Wait for CPT flow control on WQE path. This is to avoid CPT queue overflow and thereby a CPT misc interrupt. Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_tx.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h

[PATCH v2 24/31] common/cnxk: support Tx compl event via RQ to CQ mapping

2022-09-05 Thread Nithin Dabilpuram
From: Kommula Shiva Shankar This patch adds RoC support for Tx completion events via RQ to CQ mapping. Signed-off-by: Kommula Shiva Shankar --- drivers/common/cnxk/roc_nix.c | 5 - drivers/common/cnxk/roc_nix.h | 2 ++ drivers/common/cnxk/roc_nix_queue.c | 7 ++- drivers/ne

[PATCH v2 23/31] common/cnxk: add CQ limit associated with SQ

2022-09-05 Thread Nithin Dabilpuram
From: Kommula Shiva Shankar Update CQ threshold limit associated with sq. This is used when we need completions for packets that are successfully transmitted. Signed-off-by: Kommula Shiva Shankar --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_queue.c | 2 ++ 2 files

[PATCH v2 22/31] common/cnxk: add support for CPT second pass

2022-09-05 Thread Nithin Dabilpuram
From: Rakesh Kudurumalla Added mailbox for masking and setting nix_rq_ctx parameters and enabling rq masking in ipsec_cfg1 so second pass is applied to all rq's Signed-off-by: Rakesh Kudurumalla --- drivers/common/cnxk/hw/nix.h | 4 +- drivers/common/cnxk/roc_mbox.h| 23 - dr

[PATCH v2 21/31] net/cnxk: skip PFC configuration on LBK

2022-09-05 Thread Nithin Dabilpuram
From: Satha Rao CNXK platforms do not support PFC on LBK so skipping configuration on LBK interfaces. Signed-off-by: Satha Rao --- drivers/net/cnxk/cnxk_ethdev.c | 2 +- drivers/net/cnxk/cnxk_ethdev_ops.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/

[PATCH v2 20/31] net/cnxk: enable 3des-cbc cipher capability

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Enable 3DES-CBC cipher capability for inline IPsec processing. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/cnxk_security.c | 3 +++ drivers/crypto/cnxk/cn9k_ipsec.c| 6 ++ drivers/net/cnxk/cn9k_ethdev_sec.c | 21 - 3 fil

[PATCH v2 19/31] net/cnxk: enable additional ciphers for inline

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Enable below ciphers and auths as part of capabilities for inline IPsec AES_CTR AES_XCBC_MAC AES_GMAC Signed-off-by: Vidya Sagar Velumuri --- drivers/net/cnxk/cn9k_ethdev_sec.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/driver

[PATCH v2 18/31] common/cnxk: add 98xx A1 platform

2022-09-05 Thread Nithin Dabilpuram
From: Harman Kalra Adding support for 98xx A1 pass chip. Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_model.c | 1 + drivers/common/cnxk/roc_model.h | 16 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_model.c b/drivers/commo

[PATCH v2 17/31] common/cnxk: updated shaper profile with red algorithm

2022-09-05 Thread Nithin Dabilpuram
From: Satha Rao Updated shaper profile with user configurable RED algorithm. This helps in configuring a TM node in red drop mode vs stall mode. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_nix.h | 1 + drivers/common/cnxk/roc_nix_tm_utils.c | 7 +-- 2 files changed, 6 ins

[PATCH v2 16/31] common/cnxk: enable aging on CN10K platform

2022-09-05 Thread Nithin Dabilpuram
From: Satha Rao This patch set enables aging on CNF105 variant of CN10K platform. Enables aging statistics while dumping/reset SQ statistics. Signed-off-by: Satha Rao --- drivers/common/cnxk/roc_errata.h| 3 +-- drivers/common/cnxk/roc_nix_debug.c | 19 +-- drivers/common/

[PATCH v2 15/31] net/cnxk: add crypto capabilities for HMAC-SHA2

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Add capabilities for HMAC_SHA2 and udp encap for 9k security offload in inline mode. Set explicit IV mode in IPsec context when IV is provided by the application Signed-off-by: Vidya Sagar Velumuri --- drivers/net/cnxk/cn9k_ethdev_sec.c | 79 +

[PATCH v2 14/31] net/cnxk: use full context IPsec structures in fp

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Use the Full context SA structures and command in IPsec fast path. For inline outbound, populate CPT instruction as per Full context. Add new macros and functions with respect to Full context. Populate wqe ptr in CPT instruction with proper offset from mbuf. Add option

[PATCH v2 13/31] common/cnxk: avoid the use of platform specific APIs

2022-09-05 Thread Nithin Dabilpuram
From: Vidya Sagar Velumuri Replace the use of platform specific APIs with platform independent APIs. Signed-off-by: Vidya Sagar Velumuri --- drivers/common/cnxk/roc_cpt.c| 8 drivers/common/cnxk/roc_cpt.h| 2 +- drivers/crypto/cnxk/cn9k_ipsec.c | 8 3 files changed, 9

[PATCH v2 12/31] net/cnxk: support for zero aura for inline meta

2022-09-05 Thread Nithin Dabilpuram
Add support for zero aura for inline meta pkts and register callback to ROC to create meta pool via mempool. Also add devargs to override meta buffer count and size. Signed-off-by: Nithin Dabilpuram --- drivers/event/cnxk/cn10k_eventdev.c | 8 +- drivers/event/cnxk/cn10k_worker.h|

[PATCH v2 10/31] common/cnxk: update attributes to pools used by NIX

2022-09-05 Thread Nithin Dabilpuram
Update attributes to pools used by NIX so that we can later identify which mempools are packet pools and which are used for Inline IPsec enabled ethdev. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_nix_queue.c | 112 +++- 1 file changed, 110 insertions(+),

[PATCH v2 06/31] common/cnxk: limit meta aura workaround to CN10K A0

2022-09-05 Thread Nithin Dabilpuram
Limit meta aura workaround to CN10K A0. Also other NIX and Inline related Erratas applicable for CN10K A1. Signed-off-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_errata.h | 7 +++ drivers/common/cnxk/roc_nix_inl.c | 10 ++ drivers/net/cnxk/cnxk_ethdev.c| 3 ++- 3 files c

[PATCH v2 05/31] net/cnxk: fix missing fc wait for outbound path in vec mode

2022-09-05 Thread Nithin Dabilpuram
Fix missing fc wait for outbound path in vector mode. Currently only poll mode has it. Fixes: 358d02d20a2f ("net/cnxk: support flow control for outbound inline") Cc: ndabilpu...@marvell.com Signed-off-by: Nithin Dabilpuram --- drivers/net/cnxk/cn10k_tx.h | 22 +- 1 file chan

[PATCH v2 03/31] common/cnxk: add cn10ka A1 platform

2022-09-05 Thread Nithin Dabilpuram
From: Harman Kalra Adding support for cn10ka A1 pass. It is next minor pass of A0. Signed-off-by: Harman Kalra --- drivers/common/cnxk/roc_model.c | 1 + drivers/common/cnxk/roc_model.h | 9 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_model.c

[PATCH v2 02/31] common/cnxk: fix part value for cn10k

2022-09-05 Thread Nithin Dabilpuram
From: Harman Kalra Updating the logic for getting part and pass value for cn10k family, as device tree compatible logic does not work in VMs. Scanning all the PCI device and detect first RVU device, subsystem device file gives part no and revision file provide pass information. Fixes: 014a9e222b

[PATCH v2 01/31] cnxk/net: add fc check in vector event Tx path

2022-09-05 Thread Nithin Dabilpuram
From: Pavan Nikhilesh Add FC check in vector event Tx path, the check needs to be performed after head wait right before LMTST is issued. Since, SQB pool fc updates are delayed w.r.t the actual utilization of pool add sufficient slack to avoid overflow. Added a new device argument to override th

[RFC 3/3] net/idpf: adjust RSS LUT to exclude hairpin queue

2022-09-05 Thread Junfeng Guo
RSS should direct traffic only to the normal data Rx queues, so when hairpin queue configured, RSS LUT should be adjusted to exclude the hairpin queue. Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 24 1 file changed, 24 insert

[RFC 2/3] net/idpf: add support for hairpin queue

2022-09-05 Thread Junfeng Guo
- Implement hairpin queue setup/confige/enable/disable. - Cross-vport hairpin queue implemented via hairpin_bind/unbind API. Test step: 1. Make sure no bug on CP side. 2. Add rule on IMC. - devmem 0x202920C100 64 0x804 - opcode=0x1303 prof_id=0x34 sub_prof_id=0x0 cookie=0xa2b87 key=0x18,\

[RFC 1/3] net/idpf: add support for CPF

2022-09-05 Thread Junfeng Guo
Add CPF device id in idpf map. Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index b3ca4e3326..08ada728b1 100644 --- a/drivers/net/idpf/idpf_ethdev.c +++ b/drivers/

[RFC 0/3] enable hairpin queue

2022-09-05 Thread Junfeng Guo
This patchset enables CPF for Intel Device ID of 0x1453 and supports hairpin queue based on idpf (Infrastructure Data Path Function) PMD [*EXPERIMENTAL*] in DPDK. This patchset is based on the idpf PMD code: https://patchwork.dpdk.org/project/dpdk/list/?series=24538&state=* Junfeng Guo (3): net

[PATCH v2 14/14] net/idpf: add support for timestamp offload

2022-09-05 Thread Junfeng Guo
Add support for timestamp offload. Signed-off-by: Wenjing Qiao Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.h | 3 ++ drivers/net/idpf/idpf_rxtx.c | 79 ++ drivers/net/idpf/idpf_rxtx.h | 89 +- 3 files changed, 170

[PATCH v2 13/14] net/idpf: add AVX512 data path for single queue model

2022-09-05 Thread Junfeng Guo
Add support of AVX512 vector data path for single queue model. Signed-off-by: Wenjun Wu Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.h | 5 + drivers/net/idpf/idpf_rxtx.c| 137 drivers/net/idpf/idpf_rxtx.h| 11 + drivers/net/idpf/idpf_rxtx

[PATCH v2 12/14] net/idpf: add support for write back based on ITR expire

2022-09-05 Thread Junfeng Guo
Force write-backs by setting WB_ON_ITR bit in DYN_CTL register, so that the packets can be received once at a time. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 116 + drivers/net/idpf/idpf_ethdev.h | 3 + drivers/n

[PATCH v2 11/14] net/idpf: add support for hw statistics

2022-09-05 Thread Junfeng Guo
Add hardware packets/bytes statisticsi query and reset. Signed-off-by: Mingxia Liu Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 78 ++ drivers/net/idpf/idpf_ethdev.h | 2 + drivers/net/idpf/idpf_vchnl.c | 27 3 files changed, 107

[PATCH v2 10/14] net/idpf: add support for mtu configuration

2022-09-05 Thread Junfeng Guo
Add dev ops mtu_set. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index b1e2ca21ca..6b3e7eff89 100644 --- a/driv

[PATCH v2 09/14] net/idpf: add support for RSS

2022-09-05 Thread Junfeng Guo
Add RSS support. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 118 - drivers/net/idpf/idpf_ethdev.h | 17 + drivers/net/idpf/idpf_vchnl.c | 96 +++ 3 files changed, 229 insertions(+), 2

[PATCH v2 08/14] net/idpf: add support for basic Rx/Tx datapath

2022-09-05 Thread Junfeng Guo
Add basic RX & TX support in split queue mode and single queue mode. Split queue mode is selected by default. Signed-off-by: Beilei Xing Signed-off-by: Xiaoyun Li Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 47 +- drivers/net/idpf/idpf_rxtx.c | 896 ++

[PATCH v2 07/14] net/idpf: add support for link status update

2022-09-05 Thread Junfeng Guo
Add dev ops link_update. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 21 + drivers/net/idpf/idpf_ethdev.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c i

[PATCH v2 06/14] net/idpf: add support for packet type get

2022-09-05 Thread Junfeng Guo
Add dev ops dev_supported_ptypes_get. Signed-off-by: Beilei Xing Signed-off-by: Wenjun Wu Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 7 + drivers/net/idpf/idpf_ethdev.h | 2 + drivers/net/idpf/idpf_rxtx.c | 19 +++ drivers/net/idpf/idpf_rxtx.h | 6 + drivers/net

[PATCH v2 05/14] net/idpf: add support for device information get

2022-09-05 Thread Junfeng Guo
Add dev ops dev_infos_get. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 80 ++ 1 file changed, 80 insertions(+) diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c index 0349ec6e9d..8852b7ce2

[PATCH v2 04/14] net/idpf: add support for queue operations

2022-09-05 Thread Junfeng Guo
Add support for queue operations: - rx_queue_start - rx_queue_stop - tx_queue_start - tx_queue_stop - rx_queue_setup - rx_queue_release - tx_queue_setup - tx_queue_release Signed-off-by: Beilei Xing Signed-off-by: Xiaoyun Li Signed-

[PATCH v2 03/14] net/idpf: add support for device initialization

2022-09-05 Thread Junfeng Guo
Support device init and the following dev ops: - dev_configure - dev_start - dev_stop - dev_close Signed-off-by: Beilei Xing Signed-off-by: Xiaoyun Li Signed-off-by: Xiao Wang Signed-off-by: Junfeng Guo --- drivers/net/idpf/idpf_ethdev.c | 810 +

[PATCH v2 02/14] net/idpf/base: add logs and OS specific implementation

2022-09-05 Thread Junfeng Guo
Add PMD logs. Add some MACRO definations and small functions which are specific for DPDK. Signed-off-by: Beilei Xing Signed-off-by: Junfeng Guo --- drivers/net/idpf/base/iecm_osdep.h | 365 + drivers/net/idpf/idpf_logs.h | 38 +++ 2 files changed, 403 insertio

[PATCH v2 00/14] add support for idpf PMD in DPDK

2022-09-05 Thread Junfeng Guo
This patchset introduced the idpf (Infrastructure Data Path Function) PMD [*EXPERIMENTAL*] in DPDK for Intel Device ID of 0x1452. v2: fixed some coding style issues and did some refactors. Junfeng Guo (14): net/idpf/base: introduce base code net/idpf/base: add logs and OS specific implementat

[PATCH] net/axgbe: optimise scattered rx

2022-09-05 Thread Bhagyada Modali
Updated the logic to remove the extra increments of the variables. Fixes: 965b3127d425 ("net/axgbe: support scattered Rx") Cc: sta...@dpdk.org Signed-off-by: Bhagyada Modali --- drivers/net/axgbe/axgbe_rxtx.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dr

RE: [PATCH v2] net/mlx5: fix modify action attributes detection

2022-09-05 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Jiawei(Jonny) Wang > Sent: Thursday, September 1, 2022 5:12 AM > To: Slava Ovsiienko ; Matan Azrad > ; Ori Kam ; Suanming Mou > > Cc: dev@dpdk.org; Raslan Darawsheh ; > sta...@dpdk.org > Subject: [PATCH v2] net/mlx5: fix modify action attributes detection

[PATCH v5 27/27] dev: hide device object

2022-09-05 Thread David Marchand
Make rte_device opaque for non internal users. This will make extending this object possible without breaking the ABI. Some applications may have been dereferencing rte_device objects, mark this object's accessors as stable. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes s

[PATCH v5 26/27] bus/pci: fill bus specific information

2022-09-05 Thread David Marchand
For diagnostic, it may be useful to provide the PCI vendor and device id. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes since v4: - fixed Windows build issue (missing asprintf implementation), --- drivers/bus/pci/bsd/pci.c| 8 +++--- drivers/bus/pci/bus_pci_driv

[PATCH v5 25/27] dev: provide bus specific information

2022-09-05 Thread David Marchand
For diagnostic, it may be useful to provide a description of the device with bus specific information. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes since RFC v3: - split patch in two, as per Thomas offlist request, --- app/test-pmd/config.c | 2 ++ lib/eal/co

[PATCH v5 23/27] dev: hide driver object

2022-09-05 Thread David Marchand
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI. Introduce a new driver header and move rte_driver definition. Update drivers and library to use the internal header. Some applications may have been dereferencing rte_driver obje

[PATCH v5 24/27] dev: introduce device accessors

2022-09-05 Thread David Marchand
Prepare for making the device object opaque by adding accessors. Update existing "external" users. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes since v4: - updated test_vdev.c, Changes since RFC v2: - added rte_dev_devargs, - updated testpmd, --- app/proc-info/main.c

[PATCH v5 22/27] dev: introduce driver accessors

2022-09-05 Thread David Marchand
Prepare for making the driver object opaque by adding accessors. Update existing "external" users. Internal users may still dereference a rte_driver object. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- app/test-pmd/config.c | 2 +- lib/eal/common/eal_common_dev.c | 6

[PATCH v5 21/27] bus: hide bus object

2022-09-05 Thread David Marchand
Make rte_bus opaque for non internal users. This will make extending this object possible without breaking the ABI. Introduce a new driver header and move rte_bus definition and helpers. Update drivers and library to use the internal header. Some applications may have been dereferencing rte_bus o

[PATCH v5 20/27] bus: introduce accessors

2022-09-05 Thread David Marchand
Add helpers to get a rte_bus object details. This will be used externally. Internal users may still dereference a rte_bus object. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- Changes since RFC v1: - changed approach: only external users are updated, --- app/test-pmd/config.c

[PATCH v5 19/27] bus: move IOVA definition from header

2022-09-05 Thread David Marchand
iova enum definition does not need to be defined as part of the bus API. Move it to rte_eal.h. With this step, rte_eal.h does not depend on rte_bus.h and rte_dev.h. Fix existing code that was relying on these implicit inclusions. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- app/

[PATCH v5 18/27] bus/vmbus: make driver-only headers private

2022-09-05 Thread David Marchand
The vmbus bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup the code: - fix indentation, - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and ma

[PATCH v5 17/27] bus/vdev: make driver-only headers private

2022-09-05 Thread David Marchand
The vdev bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup the code: - fix indentation, - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and mac

[PATCH v5 16/27] bus/pci: make driver-only headers private

2022-09-05 Thread David Marchand
The pci bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup the code: - fix indentation, - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and macr

Re: [PATCH] MAINTAINERS: drop email address for Jan Viktorin

2022-09-05 Thread Jan Viktorin
On Wed, 31 Aug 2022 22:25:24 +0200 Thomas Monjalon wrote: > 31/08/2022 21:30, Stephen Hemminger: > > Going over list of active DPDK developers and MAINTAINERS > > and noticed that Jan's email was not active. His response was: > > > >well, that rehivetech.com address is probably receiving but

[PATCH v5 15/27] bus/ifpga: make driver-only headers private

2022-09-05 Thread David Marchand
The ifpga bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup the code: - remove unneeded list head structure type, - reorder the definitions and macro manipulating the bus singleton object, - remove inclusion of rte_bus.h and fi

[PATCH v5 14/27] bus/ifpga: cleanup exported symbols

2022-09-05 Thread David Marchand
Remove unused symbols (exposed only in an internal header which guarantees that no application out there relied on them). Remove rte_ prefix and inline the rest to avoid having to expose them as global symbols for a relatively small added value. Signed-off-by: David Marchand Acked-by: Rosen Xu

[PATCH v5 13/27] bus/fslmc: make driver-only headers private

2022-09-05 Thread David Marchand
The fslmc bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup internal structures: - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and macro mani

[PATCH v5 12/27] bus/dpaa: make driver-only headers private

2022-09-05 Thread David Marchand
The dpaa bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup internal structures: - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions and macro manip

[PATCH v5 11/27] bus/auxiliary: make driver-only headers private

2022-09-05 Thread David Marchand
The auxiliary bus interface is for drivers only. Mark as internal and move the header in the driver headers list. While at it, cleanup the code: - fix indentation, - remove unneeded reference to bus specific singleton object, - remove unneeded list head structure type, - reorder the definitions an

[PATCH v5 10/27] build: export drivers headers

2022-09-05 Thread David Marchand
Same as for device classes, external DPDK users may need to include some bus headers for their out of tree drivers. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- drivers/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/drivers/meson.build b/drivers/meson.build

[PATCH v5 08/27] eal: deprecate RTE_FUNC_PTR_* macros

2022-09-05 Thread David Marchand
Those macros have no real value and are easily replaced with a simple if() block. Existing users have been converted using a new cocci script. Deprecate them. Signed-off-by: David Marchand --- devtools/cocci/func_or_ret.cocci | 12 + doc/guides/rel_notes/deprecation.rst |

  1   2   >