[21.11.5 v2] net/iavf: support rte flow with mask for FDIR

2023-12-26 Thread Zhichao Zeng
This patch supports rte flow with mask for FDIR, including eth/ipv4/ipv6/tcp/udp flow items, where src/dst for ipv4/ipv6 and sport/dport for tcp/udp are realized by switch filter. This patch is based on DPDK v21.11.5 LTS [4e50ad4469f7c037e32de5aa3535d1cd25de0741], for customer cherry-pick. Signed

RE: [PATCH v4 1/3] net/iavf: support Tx LLDP on scalar

2023-12-26 Thread Zhang, Qi Z
> -Original Message- > From: Zeng, ZhichaoX > Sent: Thursday, December 21, 2023 3:28 PM > To: dev@dpdk.org > Cc: Zhang, Qi Z ; Zeng, ZhichaoX > ; Wu, Jingjing ; Xing, Beilei > > Subject: [PATCH v4 1/3] net/iavf: support Tx LLDP on scalar > > This patch adds an mbuf dynfield IAVF_TX_LL

[PATCH v3 18/18] net/bnxt: enable SSE mode for compressed CQE

2023-12-26 Thread Ajit Khaparde
P7 device family supports 16 byte Rx completions. Enable SSE vector mode for compressed Rx CQE processing. Signed-off-by: Ajit Khaparde Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt_ethdev.c | 16 ++- drivers/net/bnxt/bnxt_rxr.h | 2 + drivers/net/bnxt/bnxt_rxtx_

[PATCH v3 17/18] net/bnxt: add AVX2 support for compressed CQE

2023-12-26 Thread Ajit Khaparde
P7 device family supports 16 byte Rx completions. Add AVX2 vector mode for compressed Rx CQE. Signed-off-by: Ajit Khaparde Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt_ethdev.c| 5 + drivers/net/bnxt/bnxt_rxr.h | 2 + drivers/net/bnxt/bnxt_rxtx_vec_avx2.c |

[PATCH v3 15/18] net/bnxt: add 400G get support for P7 devices

2023-12-26 Thread Ajit Khaparde
From: Damodharam Ammepalli P7 devices report speeds over speeds2 hsi fields. Adding required support to capture the capability from phy_qcap and save the speeds2 fields into driver priv structure. In fixed mode update the link_speed from force_link_speeds2 field. Updates to logging to provide mor

[PATCH v3 16/18] net/bnxt: query extended stats from firmware

2023-12-26 Thread Ajit Khaparde
From: Damodharam Ammepalli Add the driver support for HWRM_STAT_EXT_CTX_QUERY HWRM msg. In this patch only P7 chipset is enabled for this HWRM while P5 and previous generation remain with HWRM_STAT_CTX_QUERY. Signed-off-by: Damodharam Ammepalli Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/

[PATCH v3 14/18] net/bnxt: add tunnel TPA support

2023-12-26 Thread Ajit Khaparde
From: Damodharam Ammepalli This patch adds support for tunnel TPA type. The tunnel TPA support is brought in by the updated bit_field tnl_tpa_en(4) in hwrm_vnic_tpa_cfg_input->enables, which is used by the firmware to indicate the capability of the underlying hardware. This patch updates hwrm HW

[PATCH v3 13/18] net/bnxt: add VF FLR async event handler

2023-12-26 Thread Ajit Khaparde
From: Jay Ding When a VF undergoes an FLR, the firmware indicates this via an async notification to the PF. Note that the PF driver needs to register for the notification with the firmware. Add support for VF_FLR async event handling when the driver is running on a PF. Signed-off-by: Jay Ding S

[PATCH v3 12/18] net/bnxt: set allmulti mode if multicast filter fails

2023-12-26 Thread Ajit Khaparde
Fallback to all multicast mode if FW rejects multicast filter programming. The firmware can reject the MC filter programming request if it is running low in resources when there is a large number of functions. The driver must be prepared to fallback to the all-multicast mode if the original MC fil

[PATCH v3 11/18] net/bnxt: add ESP and AH header based RSS support

2023-12-26 Thread Ajit Khaparde
Check if the firmware can support RSS based on these types and program the hardware accordingly when requested when the firmware indicates that the underlying hardware supports the functionality. Signed-off-by: Ajit Khaparde Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt.h|

[PATCH v3 10/18] net/bnxt: add flow query callback

2023-12-26 Thread Ajit Khaparde
From: Damodharam Ammepalli This patch addsbnxt query callback to rte_flow_ops in non TruFlow mode. At this point only the RSS hash function type is displayed. Signed-off-by: Damodharam Ammepalli Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_flow.c | 61 +

[PATCH v3 09/18] net/bnxt: extend RSS hash support for P7 devices

2023-12-26 Thread Ajit Khaparde
P7 adapters support XOR based and checksum based RSS hashing. Add support for checksum and XOR based RSS hash for these adapters. Signed-off-by: Ajit Khaparde Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt.h| 15 +-- drivers/net/bnxt/bnxt_ethdev.c | 72 ++- dr

[PATCH v3 08/18] net/bnxt: refactor Rx doorbell during Rx flush

2023-12-26 Thread Ajit Khaparde
Ring the Rx doorbell during the Rx ring flush processing only if there is a valid completion. Signed-off-by: Ajit Khaparde Reviewed-by: Damodharam Ammepalli --- drivers/net/bnxt/bnxt_rxr.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b

[PATCH v3 07/18] net/bnxt: reattempt mbuf allocation for Rx and AGG rings

2023-12-26 Thread Ajit Khaparde
Normally the PMD allocates a new mbuf for every mbuf consumed. In case of mbuf alloc failure, that slot in the Rx or AGG ring remains empty till a new mbuf is not allocated for that slot. If this happens too frequently the Rx ring or the aggregation ring could be completely drained of mbufs and can

[PATCH v3 06/18] net/bnxt: support backward compatibility

2023-12-26 Thread Ajit Khaparde
From: Kalesh AP On older firmware versions, HWRM_FUNC_QCAPS response is not returning the maximum number of multicast filters that can be supported by the function. As a result, memory allocation with size 0 fails. Bugzilla ID: 1309 Cc: sta...@dpdk.org Signed-off-by: Kalesh AP Reviewed-by: Aji

[PATCH v3 05/18] net/bnxt: fix speed change from 200G to 25G on Thor

2023-12-26 Thread Ajit Khaparde
From: Kalesh AP While forcing speed to 200G, driver sets the structure variable "bp->link_info->link_signal_mode" value to BNXT_SIG_MODE_PAM4. After that when the user forces the speed back to 25G, this cached value is not set back to BNXT_SIG_MODE_NRZ which results in issuing the HWRM_PORT_PHY_C

[PATCH v3 04/18] net/bnxt: fix setting 50G and 100G forced speed

2023-12-26 Thread Ajit Khaparde
From: Kalesh AP Thor based NICs can support PAM4 as well as NRZ link negotiation. While PAM4 can negotiate speeds at 50G, 100G and 200G, the PMD will use NRZ signaling for 50G and 100G speeds. PAM4 signaling will be used only for 200G speed negotiations. Driver has to check for NRZ speed support

[PATCH v3 03/18] net/bnxt: fix a typo while parsing link speed

2023-12-26 Thread Ajit Khaparde
From: Kalesh AP While setting forced speed, the speed should have mapped to macro "HWRM_PORT_PHY_CFG_INPUT_FORCE_xxx" instead of "HWRM_PORT_PHY_CFG_INPUT_AUTO_xxx". We do not see any issue as both these macros are defined to the same value. Fixing it for better convey the intent. Signed-off-by:

[PATCH v3 02/18] net/bnxt: add support for compressed Rx CQE

2023-12-26 Thread Ajit Khaparde
Thor2 supports compressed Rx completions instead of the full featured 32-byte Rx completions. Add support for these compressed CQEs in scalar mode. Unlike in the typical Rx completions, the hardware does not provide the opaque field to index into the aggregator descriptor ring. So maintain the cons

[PATCH v3 01/18] net/bnxt: add support for UDP GSO

2023-12-26 Thread Ajit Khaparde
UDP GSO aka UDP Fragmentation Offload allows an application or stack to provide a data payload larger than the MTU. The application then updates the mbuf ol_flags and sets the PKT_TX_UDP_SEG flag. Then based on the tso_segs and tso_mss fields in the mbuf the PMD can indicate the UDP GSO transmit re

[PATCH v3 00/18] bnxt patchset

2023-12-26 Thread Ajit Khaparde
This patchset contains more code fixes and reafctoring, apart from extending more support for the newer P7 device family. The patchset adds vector mode support for compressed Rx CQE. This patchset includes support for checksum and XOR RSS hash mode. It also adds support for forced speeds and autone

[PATCH v2 2/2] doc: add document for diagnostic utilities

2023-12-26 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst +++

[PATCH v2 1/2] net/ice: add Tx scheduling tree dump support

2023-12-26 Thread Qi Zhang
Added Testpmd CLI support for dumping Tx scheduling tree. Usage: testpmd>txsched dump The output file is in "dot" format, which can be converted into an image file using Graphviz. - In "brief" mode, all scheduling nodes in the tree are displayed. - In "detail" mode, each node's configuration

memory_hotplug_lock deadlock during initialization in Multi-process Mode on DPDK Version 22.11.3 LTS

2023-12-26 Thread Linzhe Lee
Dear Team, I hope this message finds you well. We have encountered a recurring deadlock issue within the function rte_rwlock_write_lock in the DPDK version 22.11.3 LTS. It appears to be related to a known matter addressed in https://bugs.dpdk.org/show_bug.cgi?id=1277 and subsequently resolved in

[PATCH 2/2] doc: add document for diagnostic utilities

2023-12-26 Thread Qi Zhang
Document CLI for diagnose purpose. Signed-off-by: Qi Zhang --- doc/guides/nics/ice.rst | 36 1 file changed, 36 insertions(+) diff --git a/doc/guides/nics/ice.rst b/doc/guides/nics/ice.rst index 820a385b06..29309abe4d 100644 --- a/doc/guides/nics/ice.rst +++

[PATCH 1/2] net/ice: add Tx scheduling tree dump support

2023-12-26 Thread Qi Zhang
Added Testpmd CLI support for dumping Tx scheduling tree. Usage: testpmd>txsched dump The output file is in "dot" format, which can be converted into an image file using Graphviz. - In "brief" mode, all scheduling nodes in the tree are displayed. - In "detail" mode, each node's configuration

[PATCH v3] net/iavf: add diagnostic support in TX path

2023-12-26 Thread Mingjin Ye
The only way to enable diagnostics for TX paths is to modify the application source code. Making it difficult to diagnose faults. In this patch, the devarg option "mbuf_check" is introduced and the parameters are configured to enable the corresponding diagnostics. supported cases: mbuf, size, seg

RE: [PATCH] net/e1000: support launchtime feature

2023-12-26 Thread Su, Simei
Hi Chuanyu, > -Original Message- > From: Chuanyu Xue > Sent: Friday, December 22, 2023 11:04 AM > To: Su, Simei > Cc: Xing, Beilei ; chuanyu@uconn.edu; > dev@dpdk.org; Zhang, Qi Z ; Lu, Wenzhuo > > Subject: RE: [PATCH] net/e1000: support launchtime feature > > Hi Simei, > Thank you