[PATCH] net/ice: promote dynflag API

2022-04-13 Thread peng1x . zhang
From: Peng Zhang Promote dynflag APIs to be stable. Signed-off-by: Peng Zhang --- drivers/net/ice/rte_pmd_ice.h | 1 - drivers/net/ice/version.map | 15 +-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/rte_pmd_ice.h b/drivers/net/ice/rte_pmd_ice

Re: 21.11.1 patches review and test

2022-04-13 Thread Christian Ehrhardt
On Wed, Apr 13, 2022 at 12:06 PM Kevin Traynor wrote: > > Hi Christian/Thomas/Ori, > > On 11/04/2022 07:58, Christian Ehrhardt wrote: > > On Fri, Apr 1, 2022 at 12:22 PM Kevin Traynor wrote: > >> Hi all, > >> > >> Here is a list of patches targeted for stable release 21.11.1. > > Hi Kevin, > > th

RE: 21.11.1 patches review and test

2022-04-13 Thread Jiang, YuX
> -Original Message- > From: Jiang, YuX > Sent: Tuesday, April 12, 2022 4:59 PM > To: Kevin Traynor ; sta...@dpdk.org > Cc: dev@dpdk.org; Abhishek Marathe ; > Ali Alnubani ; Walker, Benjamin > ; David Christensen > ; hariprasad.govindhara...@intel.com; Hemant > Agrawal ; Stokes, Ian ; > Jer

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: Wang, Haiyue > Sent: Thursday, April 14, 2022 10:49 > To: Jeff Daly ; dev@dpdk.org > Cc: sta...@dpdk.org; Stephen Douthit > Subject: RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on > hotplug > > > -Original Message- > > From: Jeff Daly

RE: [DPDK v3] net/ixgbe: promote MDIO API

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: Zeng, ZhichaoX > Sent: Wednesday, April 13, 2022 01:56 > To: dev@dpdk.org > Cc: Zeng, ZhichaoX ; Wang, Haiyue > ; Ray Kinsella > > Subject: [DPDK v3] net/ixgbe: promote MDIO API > > From: zhichao zeng > > Promote the MDIO APIs to be stable. > > Signed-off

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: Jeff Daly > Sent: Wednesday, April 13, 2022 01:42 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Stephen Douthit ; Wang, Haiyue > > Subject: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug > > Currently the ixgbe driver does not ID any SFP exce

RSS queue group action in vnet/flow CLI

2022-04-13 Thread Xu, Ting
Hi, I have a patch sent 2 weeks ago, which is about to enable RSS queue group action in vnet/flow CLI, but no body review. The patch is below: https://gerrit.fd.io/r/c/vpp/+/35780 RSS queue group action is a supported action in DPDK. It can distribute packets among several assigned continuous q

RE: [PATCH v6 1/2] net/ixgbe: Limit SDP3 check of TX_DISABLE to appropriate devices

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: Jeff Daly > Sent: Wednesday, April 13, 2022 23:32 > To: Wang, Haiyue ; dev@dpdk.org > Cc: sta...@dpdk.org; Xiaolong Ye ; Xiao Zhang > ; Zhao1, > Wei ; Lunyuan Cui > Subject: RE: [PATCH v6 1/2] net/ixgbe: Limit SDP3 check of TX_DISABLE to > appropriate device

RE: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: je...@silicom-usa.com > Sent: Tuesday, March 8, 2022 06:35 > To: dev@dpdk.org > Cc: Stephen Douthit ; Daly, Jeff > ; Wang, Haiyue > > Subject: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices > > From: Stephen Douthit > > 1G Cu SFPs are not

RE: [PATCH v2] net/ice: fix raw flow input pattern value change in FDIR

2022-04-13 Thread Guo, Junfeng
> -Original Message- > From: Xu, Ting > Sent: Monday, March 28, 2022 09:49 > To: dev@dpdk.org > Cc: Guo, Junfeng ; Xu, Ting > ; sta...@dpdk.org; Yang, Qiming > ; Zhang, Qi Z > Subject: [PATCH v2] net/ice: fix raw flow input pattern value change in > FDIR > > When parsing raw flow patt

Re: [PATCH 0/3] BNXT changes

2022-04-13 Thread Ajit Khaparde
On Wed, Apr 13, 2022 at 3:32 AM Ruifeng Wang wrote: > > This patch set includes changes proposed for BNXT PMD. > Found these in code review. > > Ruifeng Wang (3): > net/bnxt: defer completion index update > net/bnxt: remove redundant ifdefs > net/bnxt: fix risk in Rx descriptor read in NEON

[PATCH] gpu/cuda: add more NVIDIA GPU devices

2022-04-13 Thread eagostini
From: Elena Agostini Add more NVIDIA GPU devices to the gpu/cuda driver list compatible with GPUDirect RDMA. Signed-off-by: Elena Agostini --- drivers/gpu/cuda/cuda.c| 173 +++-- drivers/gpu/cuda/devices.h | 74 2 files changed, 220 inserti

Re: [PATCH] net/bonding: fix rss key configuration when the key length is 52

2022-04-13 Thread Stephen Hemminger
On Wed, 13 Apr 2022 17:03:07 +0800 "Min Hu (Connor)" wrote: > Hi, Stephen, > > 在 2022/4/12 23:19, Stephen Hemminger 写道: > > On Mon, 11 Apr 2022 03:06:46 + > > "Zhang, Ke1X" wrote: > > > >> This is a coding waring as below: > >> > >> _coding style issues_ > >> > >> WARNING:TYPO_SP

Re: EAL: failed to parse device "vdev:net_pcap_rx_0", core (0), capture for (0) tuples

2022-04-13 Thread Stephen Hemminger
On Tue, 12 Apr 2022 09:59:06 +0300 İbrahim Koçak wrote: > Hi, > > I want to run dpdk-pdump but I get the following error. I can not open > tuple..I share to application output. Can you support to me ? > > Thank you, > İbrahim Koçak Which version of DPDK? What version of rdma-core library? Lo

RE: [PATCH v6 1/2] net/ixgbe: Limit SDP3 check of TX_DISABLE to appropriate devices

2022-04-13 Thread Jeff Daly
> -Original Message- > From: Wang, Haiyue > Sent: Tuesday, April 12, 2022 9:22 PM > To: Jeff Daly ; dev@dpdk.org > Cc: sta...@dpdk.org; Xiaolong Ye ; Xiao Zhang > ; Zhao1, Wei ; Lunyuan Cui > > Subject: RE: [PATCH v6 1/2] net/ixgbe: Limit SDP3 check of TX_DISABLE to > appropriate devic

[Bug 994] [asan] mem: cannot reuse released memory segment

2022-04-13 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=994 Bug ID: 994 Summary: [asan] mem: cannot reuse released memory segment Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: major

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-04-13 Thread Jeff Daly
> -Original Message- > From: Morten Brørup > Sent: Wednesday, April 13, 2022 3:20 AM > To: Wang, Haiyue ; Jeff Daly usa.com>; dev@dpdk.org > Cc: sta...@dpdk.org; Stephen Douthit ; Yang, > Qiming > Subject: RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on > hotplug > > C

Re: [PATCH v2 4/4] examples/dma: add force minimal copy size parameter

2022-04-13 Thread Bruce Richardson
On Mon, Apr 11, 2022 at 08:14:59PM +0800, Chengwen Feng wrote: > This patch adds force minimal copy size parameter > (-m/--force-min-copy-size), so when do copy by CPU or DMA, the real copy > size will be the maximum of mbuf's data_len and this parameter. > > This parameter was designed to compare

Re: [PATCH v2 3/4] examples/dma: support enqueue drop statistic

2022-04-13 Thread Bruce Richardson
On Mon, Apr 11, 2022 at 08:14:58PM +0800, Chengwen Feng wrote: > The copy drop statistic counted in two scenarios: DMA copy failures and > enqueue failures. so it is difficult to locate the problem. > Is the app actually tracking copy failures? From a quick glance at the code it looks to me like

Re: [PATCH v2 2/4] examples/dma: fix Tx drop statistic is not collected

2022-04-13 Thread Bruce Richardson
On Mon, Apr 11, 2022 at 08:14:57PM +0800, Chengwen Feng wrote: > The Tx drop statistic was designed to collected by > rte_eth_dev_tx_buffer mechanism, but the application uses > rte_eth_tx_burst to send packets and this lead the Tx drop statistic > was not collected. > > This patch removes rte_eth

[PATCH v3] kni: optimize alloc queue release

2022-04-13 Thread Naga Harish K S V
the kni alloc queue is filled with physical addresses of mbufs for kernel consumption. Any unused mbufs in the alloc queue are freed during shutdown sequence in rte_kni_release. In the current existing implementation, for freeing one entry of alloc queue all the objects of the mempool are traverse

[PATCH v2 2/2] cryptodev: add dh padding options

2022-04-13 Thread Arek Kusztal
Diffie-Hellman padding is used in certain protocols, in others, leading zero bytes need to be stripped. Even same protocol may use a different approach - most glaring example is TLS1.2 - TLS1.3. To make the user life easier, and to avoid additional copy on certain occasions, driver should be able t

[PATCH v2 1/2] cryptodev: add dh verify option

2022-04-13 Thread Arek Kusztal
For some elliptic curves public point in DH exchange needs to be checked, if lays on the curve. Modular exponentiation needs certain checks as well, though mathematically much easier. This commit adds verify option to asym_op operations. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_a

[PATCH v2 0/2] cryptodev: add dh verify option

2022-04-13 Thread Arek Kusztal
This patchset adds verify and padding option to Cryptodev Diffie-Hellman op. Verify - obligatory in all mainstream protocols, in Cryptodev only Weierstrass Elliptic-Curve point verification was included. FFDH or curves 448/25519 verification is easy enough to be done by the user. Padding - differe

Re: [PATCH] net/ixgbe: Treat 1G Cu SFPs as 1G SX on the X550 devices

2022-04-13 Thread Thomas Monjalon
Please, could we have a review of this patch? +Cc new ixgbe maintainers 07/03/2022 23:34, je...@silicom-usa.com: > From: Stephen Douthit > > 1G Cu SFPs are not officially supported on the X552/X553 family of devices > but treat them as 1G SX modules since they usually work. Print a warning > t

Re: 21.11.1 patches review and test

2022-04-13 Thread Kevin Traynor
On 13/04/2022 05:06, YangHang Liu wrote: Hi Kevin, The dpdk 21.11.1-rc1 test result from Red Hat looks good. We tested below 17 scenarios and all got PASS on RHEL8: - Guest with device assignment(PF) throughput testing(1G hugepage size): PASS - Guest with device assignment(PF) thro

Re: 21.11.1 patches review and test

2022-04-13 Thread Kevin Traynor
On 12/04/2022 09:58, Jiang, YuX wrote: -Original Message- From: Kevin Traynor Sent: Friday, April 1, 2022 6:22 PM To: sta...@dpdk.org Cc: dev@dpdk.org; Abhishek Marathe ; Ali Alnubani ; Walker, Benjamin ; David Christensen ; hariprasad.govindhara...@intel.com; Hemant Agrawal ; Stokes, Ia

Re: 21.11.1 patches review and test

2022-04-13 Thread Kevin Traynor
On 11/04/2022 12:00, Ali Alnubani wrote: -Original Message- From: Kevin Traynor Sent: Friday, April 1, 2022 1:22 PM To: sta...@dpdk.org Cc: dev@dpdk.org; Abhishek Marathe ; Ali Alnubani ; benjamin.wal...@intel.com; David Christensen ; hariprasad.govindhara...@intel.com; Hemant Agrawal ;

RE: [PATCH] mbuf: expose outer vlan in mbuf dump

2022-04-13 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, 13 April 2022 14.03 > > 12/04/2022 18:11, Ben Magistro: > > Was there a consensus on if this should be re-drafted as a bug and > fixes or > > left as a backportable feature/improvement? I am good either way, > just > > wanted

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-04-13 Thread Morten Brørup
> From: Wang, Haiyue [mailto:haiyue.w...@intel.com] > Sent: Wednesday, 13 April 2022 13.49 > > > From: Morten Brørup > > Sent: Wednesday, April 13, 2022 15:20 > > > > > From: Wang, Haiyue [mailto:haiyue.w...@intel.com] > > > Sent: Wednesday, 13 April 2022 09.02 > > > > > > > From: Morten Brørup

Re: [PATCH v1 0/4] [RFC] Testpmd RPC API

2022-04-13 Thread Owen Hilyard
> > If so, I think, gRPC service would be along with existing > testpmd functions, like start_packet_forwarding(). It was my intention to re-use existing functions. I used the ACL tests as an example because they are more self-contained then Testpmd, which made creating the proof of concept much

Re: [PATCH v2] common/sff_module: add telemetry command to dump module EEPROM

2022-04-13 Thread Thomas Monjalon
11/04/2022 11:13, Bruce Richardson: > On Mon, Apr 11, 2022 at 09:13:47AM +0100, Zhang, RobinX wrote: > > Hi Bruce, > > > > > -Original Message- > > > From: Richardson, Bruce > > > Sent: Friday, April 8, 2022 7:27 PM > > > To: Zhang, RobinX > > > Cc: dev@dpdk.org; Yang, Qiming ; Zhang, Qi

Re: [PATCH] mbuf: expose outer vlan in mbuf dump

2022-04-13 Thread Thomas Monjalon
12/04/2022 18:11, Ben Magistro: > Was there a consensus on if this should be re-drafted as a bug and fixes or > left as a backportable feature/improvement? I am good either way, just > wanted to clarify if I had an additional action at this time. There is no consensus but that's a detail. In any

RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on hotplug

2022-04-13 Thread Wang, Haiyue
> -Original Message- > From: Morten Brørup > Sent: Wednesday, April 13, 2022 15:20 > To: Wang, Haiyue ; Daly, Jeff ; > dev@dpdk.org > Cc: sta...@dpdk.org; Stephen Douthit ; Yang, Qiming > > Subject: RE: [PATCH v6 2/2] net/ixgbe: Fix SFP detection and linking on > hotplug > > > From: W

[PATCH] devtools: fix null test for NUMA systems

2022-04-13 Thread David Marchand
On NUMA systems, default cores (0 and 1) might be on different memory nodes. Double the amount of memory. Cc: sta...@dpdk.org Signed-off-by: David Marchand --- devtools/test-null.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/test-null.sh b/devtools/test-null.

[PATCH] net/mlx5: fix gtp handling in header modify action

2022-04-13 Thread Dariusz Sosnowski
GTP items were ignored during conversion of modify header actions. This caused modify TTL action to generate a wrong modify header command when tunnel and inner headers used different IP versions. This patch adds GTP item handling to modify header action conversion. Fixes: 04233f36c712 ("net/mlx5

[Bug 993] [build][21.11] build failure using meson 0.62.0

2022-04-13 Thread bugzilla
https://bugs.dpdk.org/show_bug.cgi?id=993 Bug ID: 993 Summary: [build][21.11] build failure using meson 0.62.0 Product: DPDK Version: 21.11 Hardware: All OS: FreeBSD Status: UNCONFIRMED Severity: normal

[PATCH 2/2] example/vhost: support to clear in-flight packets for async dequeue

2022-04-13 Thread Yuan Wang
This patch allows vring_state_changed() to clear in-flight dequeue packets. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/vhost/main.c b/examples/vhost/main.c index d26e40ab73..04e7821322 100644 --- a/examples/vhost/main.c +++ b

[PATCH 1/2] vhost: support clear in-flight packets for async dequeue

2022-04-13 Thread Yuan Wang
rte_vhost_clear_queue_thread_unsafe() supports to clear in-flight packets for async enqueue only. But after supporting async dequeue, this API should support async dequeue too. This patch also adds the thread-safe version of this API, the difference between the two API is that thread safety uses l

[PATCH 0/2] support to clear in-flight packets for async

2022-04-13 Thread Yuan Wang
These patches support to clear in-flight packets for async dequeue and introduce thread-safe version of this function. note: The patches depend on the following patches (https://patches.dpdk.org/project/dpdk/patch/20220411100032.114434-5-xuan.d...@intel.com/) (https://patches.dpdk.org/project/dpdk

[PATCH 3/3] net/bnxt: fix risk in Rx descriptor read in NEON path

2022-04-13 Thread Ruifeng Wang
Rx descriptor contains a valid bit which indicates readiness of the rest of descriptor words. Hence, the word contains valid bit must be read prior to other words. In NEON vector path, two contiguous 8B descriptor are loaded to a single NEON register. Given vector load ensures no 16B atomicity, re

[PATCH 2/3] net/bnxt: remove redundant ifdefs

2022-04-13 Thread Ruifeng Wang
NEON vector path is built only when Arm platform is 64-bit. The ifdefs in NEON path are of no use, hence remove. Signed-off-by: Ruifeng Wang --- drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxtx_vec_neon.c b/drivers/net/bnxt/

[PATCH 1/3] net/bnxt: defer completion index update

2022-04-13 Thread Ruifeng Wang
When no packet is received, there is no need to update completion raw cons. Moved update down to remove unnecessary store in this case. Signed-off-by: Ruifeng Wang --- drivers/net/bnxt/bnxt_rxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_rxr.c b/dr

[PATCH 0/3] BNXT changes

2022-04-13 Thread Ruifeng Wang
This patch set includes changes proposed for BNXT PMD. Found these in code review. Ruifeng Wang (3): net/bnxt: defer completion index update net/bnxt: remove redundant ifdefs net/bnxt: fix risk in Rx descriptor read in NEON path drivers/net/bnxt/bnxt_rxr.c | 2 +- drivers/net/bn

RE: [PATCH v2] kni: optimize alloc queue release

2022-04-13 Thread Kundapura, Ganapati
Hi Harish > -Original Message- > From: Naga Harish K S V > Sent: 13 April 2022 11:19 > To: Yigit, Ferruh > Cc: Jayatheerthan, Jay ; dev@dpdk.org > Subject: [PATCH v2] kni: optimize alloc queue release > > the kni alloc queue is filled with physical addresses of mbufs for kernel > consum

Re: 21.11.1 patches review and test

2022-04-13 Thread Kevin Traynor
Hi Christian/Thomas/Ori, On 11/04/2022 07:58, Christian Ehrhardt wrote: On Fri, Apr 1, 2022 at 12:22 PM Kevin Traynor wrote: Hi all, Here is a list of patches targeted for stable release 21.11.1. Hi Kevin, this breaks on me at build time due to symbol changes. It is a wild mix of Base->Inter

[PATCH v3 22/22] net/ice: fix DCF reset

2022-04-13 Thread Kevin Liu
After the PF triggers the VF reset, before the VF PMD can perform any operations on the hardware, it must reinitialize the all resources. This patch adds a flag to indicate whether the VF has been reset by PF, and update the DCF resetting operations according to this flag. Fixes: 1a86f4dbdf42 ("n

[PATCH v3 21/22] testpmd: force flow flush

2022-04-13 Thread Kevin Liu
From: Qi Zhang For mdcf, rte_flow_flush is still need to be invoked even there are no flows be created in current instance. Signed-off-by: Qi Zhang Signed-off-by: Kevin Liu --- app/test-pmd/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/config.

[PATCH v3 20/22] net/ice: fix DCF ACL flow engine

2022-04-13 Thread Kevin Liu
From: Alvin Zhang ACL is not a necessary feature for DCF, it may not be supported by the ice kernel driver, so in this patch the program does not return the ACL initiation fails to high level functions, as substitute it prints some error logs, cleans the related resources and unregisters the ACL

[PATCH v3 19/22] net/ice: add enable/disable queues for DCF large VF

2022-04-13 Thread Kevin Liu
The current virtchnl structure for enable/disable queues only supports max 32 queue pairs. Use a new opcode and structure to indicate up to 256 queue pairs, in order to enable/disable queues in large VF case. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH v3 18/22] net/ice: enable IRQ mapping configuration for large VF

2022-04-13 Thread Kevin Liu
From: Steve Yang The current IRQ mapping configuration only supports max 16 queues and 16 MSIX vectors. Change the queue vector mapping structure to indicate up to 256 queues. A new opcode is used to handle the case with large number of queues. To avoid adminq buffer size limitation, we support t

[PATCH v3 17/22] net/ice: enable multiple queues configurations for large VF

2022-04-13 Thread Kevin Liu
From: Steve Yang Since the adminq buffer size has a 4K limitation, the current virtchnl command VIRTCHNL_OP_CONFIG_VSI_QUEUES cannot send the message only once to configure up to 256 queues. In this patch, we send the messages multiple times to make sure that the buffer size is less than 4K each

[PATCH v3 16/22] net/ice: negotiate large VF and request more queues

2022-04-13 Thread Kevin Liu
From: Steve Yang Negotiate large VF capability with PF during VF initialization. If large VF is supported and the number of queues larger than 16 is required, VF requests additional queues from PF. Mark the state that large VF is supported. If the allocated queues number is larger than 16, the m

[PATCH v3 15/22] net/ice: add DCF request queues function

2022-04-13 Thread Kevin Liu
From: Steve Yang Add a new virtchnl function to request additional queues from PF. Current default queue pairs number is 16. In order to support up to 256 queue pairs DCF port, enable this request queues function. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.

[PATCH v3 14/22] net/ice: handle virtchnl event message without interrupt

2022-04-13 Thread Kevin Liu
From: Steve Yang Currently, VF can only handle virtchnl event message by calling interrupt. It is not available in two cases: 1. If the event message comes during VF initialization before interrupt is enabled, this message will not be handled correctly. 2. Some virtchnl commands need to receive t

[PATCH v3 13/22] net/ice: treat unknown package as OS default package

2022-04-13 Thread Kevin Liu
From: Alvin Zhang In order to use custom package, unknown package should be treated as OS default package. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_ethdev.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice

[PATCH v3 11/22] net/ice: support IPv6 NVGRE tunnel

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add protocol definition and pattern matching for IPv6 NVGRE tunnel. Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice/ice_switch_fil

[PATCH v3 12/22] net/ice: support new pattern of IPv4

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add definition and pattern entry for IPv4 pattern: MAC/VLAN/IPv4 Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c

[PATCH v3 09/22] net/ice: support DCF new VLAN capabilities

2022-04-13 Thread Kevin Liu
From: Alvin Zhang The new VLAN virtchnl opcodes introduce new capabilities like VLAN filtering, stripping and insertion. The DCF needs to query the VLAN capabilities based on current device configuration firstly. DCF is able to configure inner VLAN filter when port VLAN is enabled base on negot

[PATCH v3 10/22] net/ice: enable CVL DCF device reset API

2022-04-13 Thread Kevin Liu
From: Dapeng Yu Enable CVL DCF device reset API. Signed-off-by: Dapeng Yu Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c | 24 drivers/net/ice/ice_dcf.h | 1 + 2 files changed, 25 insertions(+) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf

[PATCH v3 08/22] net/ice: support dcf VLAN filter and offload configuration

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 101 +++ 1 file

[PATCH v3 07/22] net/ice: support dcf MAC configuration

2022-04-13 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- driv

[PATCH v3 06/22] net/ice: support dcf promisc configuration

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Support configuration of unicast and multicast promisc on dcf. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 77 ++-- drivers/net/ice/ice_dcf_ethdev.h | 3 ++ 2 files changed, 76 insertions(+), 4 delet

[PATCH v3 05/22] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-13 Thread Kevin Liu
From: Jie Wang add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes through the new API. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 80 +++- 1 file changed, 49 insertions(+), 31 deletions(-) diff --git

[PATCH v3 04/22] net/ice: add ops MTU-SET to dcf

2022-04-13 Thread Kevin Liu
From: Jie Wang add API "mtu_set" to dcf, and it can configure the port mtu through cmdline. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 14 ++ drivers/net/ice/ice_dcf_ethdev.h | 6 ++ 2 files changed, 20 insertions(+) diff --git a/

[PATCH v3 03/22] net/ice: cleanup Tx buffers

2022-04-13 Thread Kevin Liu
From: Robin Zhang Add support for ops rte_eth_tx_done_cleanup in dcf Signed-off-by: Robin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index ccad7fc30

[PATCH v3 02/22] net/ice: enable RSS HASH ops for DCF hardware

2022-04-13 Thread Kevin Liu
From: Steve Yang RSS HASH should be updated and queried by application, Add related ops ('.rss_hash_update', '.rss_hash_conf_get') for DCF. Because DCF doesn't support configure RSS HASH, only HASH key can be updated within ops '.rss_hash_update'. Signed-off-by: Steve Yang Signed-off-by: Kevin

[PATCH v3 01/22] net/ice: enable RSS RETA ops for DCF hardware

2022-04-13 Thread Kevin Liu
From: Steve Yang RSS RETA should be updated and queried by application, Add related ops ('.reta_update', '.reta_query') for DCF. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c| 2 +- drivers/net/ice/ice_dcf.h| 1 + drivers/net/ice/ice_dcf_et

[PATCH v3 00/22] support full function of DCF

2022-04-13 Thread Kevin Liu
v3: * remove patch: 1.net/ice/base: add VXLAN support for switch filter 2.net/ice: add VXLAN support for switch filter 3.common/iavf: support flushing rules and reporting DCF id 4.net/ice/base: fix ethertype filter input set 5.net/ice/base: support IPv6 GRE U

Re: 21.11.1 patches review and test

2022-04-13 Thread Kevin Traynor
On 13/04/2022 08:26, Christian Ehrhardt wrote: On Mon, Apr 11, 2022 at 8:58 AM Christian Ehrhardt wrote: On Fri, Apr 1, 2022 at 12:22 PM Kevin Traynor wrote: Hi all, Here is a list of patches targeted for stable release 21.11.1. Hi Kevin, this breaks on me at build time due to symbol cha

[PATCH v2 33/33] net/ice: fix DCF reset

2022-04-13 Thread Kevin Liu
After the PF triggers the VF reset, before the VF PMD can perform any operations on the hardware, it must reinitialize the all resources. This patch adds a flag to indicate whether the VF has been reset by PF, and update the DCF resetting operations according to this flag. Fixes: 1a86f4dbdf42 ("n

[PATCH v2 32/33] testpmd: force flow flush

2022-04-13 Thread Kevin Liu
From: Qi Zhang For mdcf, rte_flow_flush is still need to be invoked even there are no flows be created in current instance. Signed-off-by: Qi Zhang Signed-off-by: Kevin Liu --- app/test-pmd/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/config.

[PATCH v2 31/33] net/ice: fix DCF ACL flow engine

2022-04-13 Thread Kevin Liu
From: Alvin Zhang ACL is not a necessary feature for DCF, it may not be supported by the ice kernel driver, so in this patch the program does not return the ACL initiation fails to high level functions, as substitute it prints some error logs, cleans the related resources and unregisters the ACL

[PATCH v2 30/33] net/ice: add enable/disable queues for DCF large VF

2022-04-13 Thread Kevin Liu
The current virtchnl structure for enable/disable queues only supports max 32 queue pairs. Use a new opcode and structure to indicate up to 256 queue pairs, in order to enable/disable queues in large VF case. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH v2 29/33] net/ice: enable IRQ mapping configuration for large VF

2022-04-13 Thread Kevin Liu
From: Steve Yang The current IRQ mapping configuration only supports max 16 queues and 16 MSIX vectors. Change the queue vector mapping structure to indicate up to 256 queues. A new opcode is used to handle the case with large number of queues. To avoid adminq buffer size limitation, we support t

[PATCH v2 28/33] net/ice: enable multiple queues configurations for large VF

2022-04-13 Thread Kevin Liu
From: Steve Yang Since the adminq buffer size has a 4K limitation, the current virtchnl command VIRTCHNL_OP_CONFIG_VSI_QUEUES cannot send the message only once to configure up to 256 queues. In this patch, we send the messages multiple times to make sure that the buffer size is less than 4K each

[PATCH v2 27/33] net/ice: negotiate large VF and request more queues

2022-04-13 Thread Kevin Liu
From: Steve Yang Negotiate large VF capability with PF during VF initialization. If large VF is supported and the number of queues larger than 16 is required, VF requests additional queues from PF. Mark the state that large VF is supported. If the allocated queues number is larger than 16, the m

[PATCH v2 26/33] net/ice: add DCF request queues function

2022-04-13 Thread Kevin Liu
From: Steve Yang Add a new virtchnl function to request additional queues from PF. Current default queue pairs number is 16. In order to support up to 256 queue pairs DCF port, enable this request queues function. Signed-off-by: Steve Yang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.

[PATCH v2 25/33] net/ice: handle virtchnl event message without interrupt

2022-04-13 Thread Kevin Liu
From: Steve Yang Currently, VF can only handle virtchnl event message by calling interrupt. It is not available in two cases: 1. If the event message comes during VF initialization before interrupt is enabled, this message will not be handled correctly. 2. Some virtchnl commands need to receive t

[PATCH v2 24/33] net/ice/base: update Protocol ID table to match DVM DDP

2022-04-13 Thread Kevin Liu
From: Junfeng Guo The ice kernel driver and DDP is working in Double VLAN Mode (DVM), but the DVM is not supported on this PMD. Thus update the SW to HW Protocol ID table for VLAN to support common switch filtering with single VLAN layer. Signed-off-by: Junfeng Guo Signed-off-by: Kevin Liu ---

[PATCH v2 23/33] net/ice/base: update Profile ID table for VXLAN

2022-04-13 Thread Kevin Liu
From: Junfeng Guo Update Profile ID table for VXLAN to align with Tencent customed DDP. Signed-off-by: Junfeng Guo Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_switch.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ice/base/ice_swi

[PATCH v2 22/33] net/ice: treat unknown package as OS default package

2022-04-13 Thread Kevin Liu
From: Alvin Zhang In order to use custom package, unknown package should be treated as OS default package. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_ethdev.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/net/ice/ice

[PATCH v2 21/33] net/ice: support IPv4 GRE raw pattern type

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add definitions, matching entries, parsers for below patterns: ETH/IPV4/GRE/RAW/IPV4 ETH/IPV4/GRE/RAW/IPV4/UDP ETH/IPV4/GRE/RAW/IPV4/TCP Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_generic_flow.c | 27 + dri

[PATCH v2 13/33] common/iavf: support flushing rules and reporting DCF id

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add virtual channel opcode for DCF flushing rules. Add virtual channel event for PF reporting DCF id. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/common/iavf/virtchnl.h | 13 + 1 file changed, 13 insertions(+) diff

[PATCH v2 12/33] net/ice: add VXLAN support for switch filter

2022-04-13 Thread Kevin Liu
From: Junfeng Guo 1. Add profile rule for VXLAN on Switch Filter, including pattern_eth_ipv4_udp_vxlan_any pattern_eth_ipv6_udp_vxlan_any pattern_eth_ipv4_udp_vxlan_eth_ipv4 pattern_eth_ipv4_udp_vxlan_eth_ipv6 pattern_eth_ipv6_udp_vxlan_eth_ipv4 pat

[PATCH v2 20/33] net/ice/base: support IPv4 GRE tunnel

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add definitions, trainer packets and routine path for IPv4 GRE tunnel. Ref: https://www.ietf.org/rfc/rfc1701.html Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_flex_pipe.c | 37 ++- drivers/net/ice/base/ice_

[PATCH v2 19/33] net/ice: support new patterns of TCP and UDP

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add definitions and pattern entries for below TCP and UDP patterns: MAC/VLAN/IPv4/TCP MAC/VLAN/IPv4/UDP Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 6 ++ 1 file changed, 6 insertions(+) diff -

[PATCH v2 18/33] net/ice/base: support new patterns of TCP and UDP

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Find training packets for below TCP and UDP patterns: MAC/VLAN/IPv4/TCP MAC/VLAN/IPv4/UDP Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_switch.c | 12 1 file changed, 12 insertions(+) diff --git a/d

[PATCH v2 17/33] net/ice: support new pattern of IPv4

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add definition and pattern entry for IPv4 pattern: MAC/VLAN/IPv4 Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice/ice_switch_filter.c

[PATCH v2 16/33] net/ice: support IPv6 NVGRE tunnel

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add protocol definition and pattern matching for IPv6 NVGRE tunnel. Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_switch_filter.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice/ice_switch_fil

[PATCH v2 15/33] net/ice/base: support IPv6 GRE UDP pattern

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add supports(trainer packet and it's offsets, definitions, pattern matching) for IPv6 GRE UDP pattern. Signed-off-by: Junfeng Guo Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_protocol_type.h | 1 + drivers/net/ice/base/ice_switch.c

[PATCH v2 14/33] net/ice/base: fix ethertype filter input set

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Add destination and source MAC as the input sets to ethertype filter. For example: flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 type is 0x802 / end actions queue index 2 / end This flow will result in all the matched ingress packets be forwarded to queue 2.

[PATCH v2 11/33] net/ice/base: add VXLAN support for switch filter

2022-04-13 Thread Kevin Liu
From: Junfeng Guo 1. Add profile rule for VXLAN on Switch Filter, including pattern_eth_ipv4_udp_vxlan_any pattern_eth_ipv6_udp_vxlan_any pattern_eth_ipv4_udp_vxlan_eth_ipv4 pattern_eth_ipv4_udp_vxlan_eth_ipv6 pattern_eth_ipv6_udp_vxlan_eth_ipv4 pat

[PATCH v2 10/33] net/ice: enable CVL DCF device reset API

2022-04-13 Thread Kevin Liu
From: Dapeng Yu Enable CVL DCF device reset API. Signed-off-by: Dapeng Yu Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c | 24 drivers/net/ice/ice_dcf.h | 1 + 2 files changed, 25 insertions(+) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf

[PATCH v2 09/33] net/ice: support DCF new VLAN capabilities

2022-04-13 Thread Kevin Liu
From: Alvin Zhang The new VLAN virtchnl opcodes introduce new capabilities like VLAN filtering, stripping and insertion. The DCF needs to query the VLAN capabilities based on current device configuration firstly. DCF is able to configure inner VLAN filter when port VLAN is enabled base on negot

Re: [PATCH] vmbus: get current rte_vmbus_bus struct

2022-04-13 Thread David Marchand
On Wed, Apr 13, 2022 at 9:32 AM Abdelfattah Chehab wrote: > > Hi All, > > FOREACH_DEVICE_ON_VMBUS needs rte_vmbus_bus to work on > > If static link to libdpdk.a : no issues > > If dynamic link to *.so: linker issue, global variable not found. Not sure I really get your usecase, but this probably

[PATCH v2 08/33] net/ice: support dcf VLAN filter and offload configuration

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Below PMD ops are supported in this patch: .vlan_filter_set = dcf_dev_vlan_filter_set .vlan_offload_set = dcf_dev_vlan_offload_set Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 101 +++ 1 file

[PATCH v2 07/33] net/ice: support dcf MAC configuration

2022-04-13 Thread Kevin Liu
Below PMD ops are supported in this patch: .mac_addr_add = dcf_dev_add_mac_addr .mac_addr_remove = dcf_dev_del_mac_addr .set_mc_addr_list = dcf_set_mc_addr_list .mac_addr_set = dcf_dev_set_default_mac_addr Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- driv

[PATCH v2 06/33] net/ice: support dcf promisc configuration

2022-04-13 Thread Kevin Liu
From: Alvin Zhang Support configuration of unicast and multicast promisc on dcf. Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 77 ++-- drivers/net/ice/ice_dcf_ethdev.h | 3 ++ 2 files changed, 76 insertions(+), 4 delet

[PATCH v2 05/33] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-13 Thread Kevin Liu
From: Jie Wang add API "dev_supported_ptypes_get" to dcf, that dcf pmd can get ptypes through the new API. Signed-off-by: Jie Wang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 80 +++- 1 file changed, 49 insertions(+), 31 deletions(-) diff --git

  1   2   >