RE: [PATCH v2] net/ice: refact parser API usage

2022-04-06 Thread Xu, Ting
> -Original Message- > From: Zhang, Qi Z > Sent: Thursday, April 7, 2022 8:40 PM > To: Guo, Junfeng ; Xu, Ting > Cc: dev@dpdk.org; Yang, Qiming ; Zhang, Qi Z > ; sta...@dpdk.org > Subject: [PATCH v2] net/ice: refact parser API usage > > Not necessary to create / destroy a parser instance

[PATCH] interrupts: add uio type to support multiple interrupt vector

2022-04-06 Thread Tianli Lai
vmxnet3 device use MSI-X interrupt type. vmxnet3 driver configure the hardware to generate MSI-X interrupts would fail when call rte_intr_cap_multiple function return zero. Signed-off-by: Tianli Lai --- lib/eal/linux/eal_interrupts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/eal

[PATCH v2 2/2] test/crypto: move dh type from xform to dh op

2022-04-06 Thread Arek Kusztal
This commit reflects API changes in Diffie-Hellman, now for setting crypto operation type asym_op no xform is responsible. Signed-off-by: Arek Kusztal --- v2: - fix applying issue app/test/test_cryptodev_asym.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/

[PATCH v2 1/2] cryptodev: move dh type from xform to dh op

2022-04-06 Thread Arek Kusztal
Operation type (PUBLIC_KEY_GENERATION, SHARED_SECRET) should be free to choose for any operation. One xform/session should be enough to perform both DH operations, if this is xform member, session needs to be created twice for the same group, similar problem would be observed in sessionless case. A

[PATCH 3/3] net/iavf: enable Protocol Agnostic Flow Offloading FDIR

2022-04-06 Thread Junfeng Guo
This patch enabled Protocol Agnostic Flow Offloading FDIR in AVF. Signed-off-by: Junfeng Guo --- drivers/net/iavf/iavf_fdir.c | 66 drivers/net/iavf/iavf_generic_flow.c | 6 +++ drivers/net/iavf/iavf_generic_flow.h | 3 ++ 3 files changed, 75 insertions(+)

[PATCH 2/3] net/iavf: align with proto hdr struct change

2022-04-06 Thread Junfeng Guo
Structure virtchnl_proto_headrs is extended with a union struct for proto_hdr table and raw struct. Thus update the proto_hdrs template init to align the virtchnl changes. Signed-off-by: Junfeng Guo --- drivers/net/iavf/iavf_hash.c | 180 ++- 1 file changed, 92 in

[PATCH 1/3] common/iavf: support raw packet in protocol header

2022-04-06 Thread Junfeng Guo
The patch extends existing virtchnl_proto_hdrs structure to allow VF to pass a pair of buffers as packet data and mask that describe a match pattern of a filter rule. Then the kernel PF driver is requested to parse the pair of buffer and figure out low level hardware metadata (ptype, profile, field

[PATCH 0/3] Enable Protocol Agnostic Flow Offloading FDIR in AVF

2022-04-06 Thread Junfeng Guo
This patch set enabled Protocol Agnostic Flow (raw flow) Offloading for FDIR in AVF. [PATCH 1/3] common/iavf: support raw packet in protocol header [PATCH 2/3] net/iavf: align with proto hdr struct change [PATCH 3/3] net/iavf: enable Protocol Agnostic Flow Offloading FDIR Junfeng Guo (3): comm

[RFC v2] net/i40e: backport i40e fixes and share code to 21.11

2022-04-06 Thread Steve Yang
Backport all the i40e share code to 21.11 based on cid-i40e.2022.03.08. Backport all the iavf share code to 21.11 based on cid-avf.2022.03.08. Backport all DPDK bug fixes of i40e and iavf to 21.11 from 22.03. Signed-off-by: Steve Yang --- v2: add new device id for i40e. --- drivers/common/iavf/

[RFC v2] net/i40e: backport i40e fixes and share code to 19.11.11

2022-04-06 Thread Steve Yang
Backport all the i40e share code to 19.11.11 based on cid-i40e.2022.03.08. Backport all DPDK bug fixes of i40e & i40evf to 19.11.11 from 22.03. Signed-off-by: Steve Yang --- v2: add new device id for i40e --- drivers/net/i40e/base/README| 2 +- drivers/net/i40e/base/i40e_adminq.c

[RFC 2/2] ethdev: queue-based flow aged report

2022-04-06 Thread Xiaoyu Min
When application use queue-based flow management and operate the same flow on the same queue, e.g create/destroy/query, API for querying aged flows should also with queue id parameter just like other queue-based flow APIs. By this way, PMD can work in more optimized way since resources are isolate

[RFC 1/2] ethdev: port flags for pre-configuration flow hints

2022-04-06 Thread Xiaoyu Min
The data-path focused flow rule management can manage flow rules in more optimized way then tranditional one by using hits provided by application in initialization phase. In addition to the current hints we have in port attr, more hints could be proivded by application about it's behaviour. One

[RFC 0/2] queue-based flow aged report

2022-04-06 Thread Xiaoyu Min
For the queue-based flow managemnt, application can operate the same flow on the same queue. For example, application create flow with age action, query aged flow, and destroy aged flow. All operations of flow happens on the same queue. In this case, the PMD could be more optimized since all oper

Re: [RFC PATCH v1 00/15] merge DTS core files to DPDK

2022-04-06 Thread Jerin Jacob
On Wed, Apr 6, 2022 at 8:26 PM Juraj Linkeš wrote: > > These are the basic libraries that other libraries depend on. There's > also the basic framework functionality related to test execution. > > Juraj Linkeš (15): > dts: merge DTS dep/tclclient.tgz to DPDK > dts: merge DTS dep/tgen.tgz to DP

[PATCH v2] net/ice: refact parser API usage

2022-04-06 Thread Qi Zhang
Not necessary to create / destroy a parser instance for every raw packet rule. A global parser instance will be created in ice_flow_init and be destroyed in ice_flow_uninit. Also, ice_dev_udp_tunnel_port_add has been hooked to perform corresponding parser configure. This also fix the issue that RS

Re: [PATCH] kni: fix device address set

2022-04-06 Thread Stephen Hemminger
On Thu, 7 Apr 2022 08:44:23 +0800 "Min Hu (Connor)" wrote: > Hi, Stephen, > I think this is a good option, but the macro definition is like: > +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) > +#define ether_addr_copy(dst, src) memcpy(dst, src, ETH_ALEN) > +#endif Minimal supported DPDK ver

[PATCH] net/ice/base: enable FDIR support for IPV6_NETX_PROTO

2022-04-06 Thread Jie Wang
To support the new DDP and be compatible with the old version DDP file, API function 'check_ddp_support_proto_id' is added to detect if the required protocol ID is supported by the current DDP file. Add new protocol ID IPV6_NETX_PROTO support for PF FDIR if current DDP is new DDP and keep behavior

[PATCH 39/39] net/ice: fix DCF reset

2022-04-06 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 38/39] testpmd: force flow flush

2022-04-06 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 37/39] net/ice: fix DCF ACL flow engine

2022-04-06 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 36/39] net/ice: add enable/disable queues for DCF large VF

2022-04-06 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 35/39] net/ice: enable IRQ mapping configuration for large VF

2022-04-06 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 34/39] net/ice: enable multiple queues configurations for large VF

2022-04-06 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 33/39] net/ice: negotiate large VF and request more queues

2022-04-06 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 32/39] net/ice: add DCF request queues function

2022-04-06 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 31/39] net/ice: handle virtchnl event message without interrupt

2022-04-06 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 30/39] net/ice/base: update Protocol ID table to match DVM DDP

2022-04-06 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 29/39] net/ice/base: update Profile ID table for VXLAN

2022-04-06 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 28/39] net/ice: treat unknown package as OS default package

2022-04-06 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 27/39] net/ice: disable ACL function for MDCF instance

2022-04-06 Thread Kevin Liu
MDCF instance does not support ACL, so disable it. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_acl_filter.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/i

[PATCH 26/39] net/ice/base: support custom ddp package version

2022-04-06 Thread Kevin Liu
From: Alvin Zhang Add checking if the current ddp package is a custom package. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_flex_pipe.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/base/ice_flex_pipe.c

[PATCH 25/39] net/ice: support IPv4 GRE raw pattern type

2022-04-06 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 24/39] net/ice/base: support IPv4 GRE tunnel

2022-04-06 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 23/39] net/ice: support new patterns of TCP and UDP

2022-04-06 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 22/39] net/ice/base: support new patterns of TCP and UDP

2022-04-06 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 21/39] net/ice: support new pattern of IPv4

2022-04-06 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 20/39] net/ice: support IPv6 NVGRE tunnel

2022-04-06 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 19/39] net/ice/base: support IPv6 GRE UDP pattern

2022-04-06 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 18/39] net/ice: support buildin recipe configuration

2022-04-06 Thread Kevin Liu
From: Alvin Zhang Support parsing 'br'(buildin recipe) parameter in device parameter list. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf_ethdev.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff

[PATCH 17/39] net/ice/base: support custom DDP buildin recipe

2022-04-06 Thread Kevin Liu
From: Alvin Zhang Add control flag and data pointer for custom DDP package buildin recipe. Init the data pointer of buildin recipe. Support dumping buildin recipe lookup info. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_common.c

[PATCH 16/39] net/ice: support MDCF(multi-DCF) instance

2022-04-06 Thread Kevin Liu
Add MDCF flushing flow rule ops. Support parsing commandline device capability 'mdcf'. Support PF reporting current DCF id and disabling the DCF capability of an MDCF instance. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/ice_dcf.c

[PATCH 15/39] net/iavf: support checking if device is an MDCF instance

2022-04-06 Thread Kevin Liu
From: Alvin Zhang For an MDCF instance (with 'mdcf' in the parameter list), it should not be bound to iavf PMD. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

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

2022-04-06 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 13/39] common/iavf: support flushing rules and reporting DCF id

2022-04-06 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 12/39] net/ice: add VXLAN support for switch filter

2022-04-06 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 11/39] net/ice/base: add VXLAN support for switch filter

2022-04-06 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 10/39] net/ice: enable CVL DCF device reset API

2022-04-06 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 09/39] net/ice: support DCF new VLAN capabilities

2022-04-06 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 08/39] net/ice: support dcf VLAN filter and offload configuration

2022-04-06 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 07/39] net/ice: support dcf MAC configuration

2022-04-06 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 06/39] net/ice: support dcf promisc configuration

2022-04-06 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 05/39] net/ice: add ops dev-supported-ptypes-get to dcf

2022-04-06 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 04/39] net/ice: add ops MTU-SET to dcf

2022-04-06 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 03/39] net/ice: cleanup Tx buffers

2022-04-06 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] net/ice/base: enable FDIR support for IPV6_NETX_PROTO

2022-04-06 Thread Jie Wang
To support the new DDP and be compatible with the old version DDP file, API function 'check_ddp_support_proto_id' is added to detect if the required protocol ID is supported by the current DDP file. Add new protocol ID IPV6_NETX_PROTO support for PF FDIR if current DDP is new DDP and keep behavior

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

2022-04-06 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 01/39] net/ice: enable RSS RETA ops for DCF hardware

2022-04-06 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 00/39] support full function of DCF

2022-04-06 Thread Kevin Liu
These functions have been customized and implemented on DPDK-20.11, Now it's time to migrate the function to DPDK-22.07. Alvin Zhang (18): net/ice: support dcf promisc configuration net/ice: support dcf VLAN filter and offload configuration net/ice: support DCF new VLAN capabilities common

RE: [RFC PATCH v2 3/9] vhost: annotate virtqueue access lock

2022-04-06 Thread Hu, Jiayu
Hi David, Please see replies inline. > -Original Message- > From: David Marchand > Sent: Wednesday, March 30, 2022 9:50 PM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo ; Hu, > Jiayu ; Wang, YuanX ; Ding, > Xuan > Subject: [RFC PATCH v2 3/9] vhost: annotate virtqueue

Re: [RFC] Telemetry enhancements and Windows support

2022-04-06 Thread Dmitry Kozlyuk
2022-04-06 14:57 (UTC-0700), Stephen Hemminger: > On Thu, 7 Apr 2022 00:50:29 +0300 > Dmitry Kozlyuk wrote: > > > 2022-04-04 11:03 (UTC+0100), Bruce Richardson: > > [...] > > > Having EAL be the only one to create threads seems reasonable. However, > > > I'm > > > a little uncertain about the

Re: [RFC] Telemetry enhancements and Windows support

2022-04-06 Thread Stephen Hemminger
On Thu, 7 Apr 2022 00:50:29 +0300 Dmitry Kozlyuk wrote: > 2022-04-04 11:03 (UTC+0100), Bruce Richardson: > [...] > > Having EAL be the only one to create threads seems reasonable. However, I'm > > a little uncertain about the scope of change and tying telemetry and EAL > > together a lot more.

Re: [RFC] Telemetry enhancements and Windows support

2022-04-06 Thread Dmitry Kozlyuk
2022-04-04 11:03 (UTC+0100), Bruce Richardson: [...] > Having EAL be the only one to create threads seems reasonable. However, I'm > a little uncertain about the scope of change and tying telemetry and EAL > together a lot more. Scope is a strong valid argument. What do you think if telemetry woul

Re: [PATCH v3] ci: add Fedora 35 container in GHA

2022-04-06 Thread David Marchand
On Mon, Apr 4, 2022 at 6:06 PM Aaron Conole wrote: > David Marchand writes: > > > Build DPDK with Fedora 35 containers. > > > > GHA container support does not allow caching images and docker hub > > seems to limit image pulls. > > On the other hand, the Fedora project hub does not seem to limit t

[PATCH V5 6/6] examples/pipeline: add packet recirculation example

2022-04-06 Thread Cristian Dumitrescu
Add example program to illustrate packet recirculation. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/recirculation.cli | 34 examples/pipeline/examples/recirculation.spec | 81 +++ 2 files changed, 115 insertions(+) create mode 100644 examples/pipe

[PATCH V5 5/6] pipeline: support packet recirculation

2022-04-06 Thread Cristian Dumitrescu
Add support for packet recirculation. The current packet is flagged for recirculation using the new "recirculate" instruction; on TX, this flag causes the packet to execute the full pipeline again as if it was a new packet, except the packet meta-data is preserved. The new "recircid" instruction ca

[PATCH V5 4/6] examples/pipeline: add packet mirroring example

2022-04-06 Thread Cristian Dumitrescu
Add example program to illustrate packet mirroring. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/mirroring.cli | 43 examples/pipeline/examples/mirroring.spec | 80 +++ 2 files changed, 123 insertions(+) create mode 100644 examples/pipeline

[PATCH V5 3/6] examples/pipeline: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
Add CLI commands for packet mirroring. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 203 ++-- 1 file changed, 195 insertions(+), 8 deletions(-) diff --git a/examples/pipeline/cli

[PATCH V5 2/6] pipeline: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
The packet mirroring is configured through slots and sessions, with the number of slots and sessions set at init. The new "mirror" instruction assigns one of the existing sessions to a specific slot, which results in scheduling a mirror operation for the current packet to be executed later at the

[PATCH V5 1/6] port: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
Add packet clone operation to the output ports in order to support packet mirroring. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/port/rte_swx_port.h | 37 lib/port/rte_swx_port_ethdev.c | 67 - lib/port/r

[PATCH V4 6/6] examples/pipeline: add packet recirculation example

2022-04-06 Thread Cristian Dumitrescu
Add example program to illustrate packet recirculation. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/recirculation.cli | 34 examples/pipeline/examples/recirculation.spec | 81 +++ 2 files changed, 115 insertions(+) create mode 100644 examples/pipe

[PATCH V4 5/6] pipeline: support packet recirculation

2022-04-06 Thread Cristian Dumitrescu
Add support for packet recirculation. The current packet is flagged for recirculation using the new "recirculate" instruction; on TX, this flag causes the packet to execute the full pipeline again as if it was a new packet, except the packet meta-data is preserved. The new "recircid" instruction ca

[PATCH V4 4/6] examples/pipeline: add packet mirroring example

2022-04-06 Thread Cristian Dumitrescu
Add example program to illustrate packet mirroring. Signed-off-by: Cristian Dumitrescu --- examples/pipeline/examples/mirroring.cli | 43 examples/pipeline/examples/mirroring.spec | 80 +++ 2 files changed, 123 insertions(+) create mode 100644 examples/pipeline

[PATCH V4 3/6] examples/pipeline: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
Add CLI commands for packet mirroring. Signed-off-by: Cristian Dumitrescu Signed-off-by: Yogesh Jangra Signed-off-by: Kamalakannan R --- examples/pipeline/cli.c | 203 ++-- 1 file changed, 195 insertions(+), 8 deletions(-) diff --git a/examples/pipeline/cli

[PATCH V4 2/6] pipeline: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
The packet mirroring is configured through slots and sessions, with the number of slots and sessions set at init. The new "mirror" instruction assigns one of the existing sessions to a specific slot, which results in scheduling a mirror operation for the current packet to be executed later at the

[PATCH V4 1/6] port: support packet mirroring

2022-04-06 Thread Cristian Dumitrescu
Add packet clone operation to the output ports in order to support packet mirroring. Signed-off-by: Cristian Dumitrescu Signed-off-by: Kamalakannan R --- lib/port/rte_swx_port.h | 37 lib/port/rte_swx_port_ethdev.c | 67 - lib/port/r

[PATCH v2 3/3] doc: rewrite shell scripts in Python

2022-04-06 Thread Dmitry Kozlyuk
Shell used in documentation generation could not run on Windows. Rewrite scripts in Python. New scripts use proper path separators and handle paths with spaces. Signed-off-by: Dmitry Kozlyuk Reviewed-by: Bruce Richardson --- doc/api/generate_doxygen.py | 19 +++ doc/api/generat

[PATCH v2 2/3] doc: fix API index Markdown syntax

2022-04-06 Thread Dmitry Kozlyuk
API documentation index had spaces between link caption and URL, which may be unsupported by some Markdown implementations. That is, "[caption](URL)" is valid but "[caption] (URL)" is not. The problematic behavior is observed with Doxygen on Windows. Remove the spaces. Unfortunately, Markdown synta

[PATCH v2 1/3] doc: simplify CSS customization for Doxygen

2022-04-06 Thread Dmitry Kozlyuk
CSS for API documentation was customized by a shell script modifying the file that Doxygen produces. This way CSS code is kept in a script and an extra build step is added. Move custom style to a plain CSS file. Use Doxygen capability to attach this extra stylesheet. Signed-off-by: Dmitry Kozlyuk

[PATCH v2 0/3] doc: build on Windows

2022-04-06 Thread Dmitry Kozlyuk
Enable biulding documentation on Windows natively. Thanks to Vipin for raising the issue. v2: fix typo in meson.build file name, use print(file=x) instead of stdout redirection. Dmitry Kozlyuk (3): doc: simplify CSS customization for Doxygen doc: fix API index Markdown syntax doc: rewri

RE: Re:RE: [PATCH v5] ip_frag: add IPv4 options fragment and test data

2022-04-06 Thread Ananyev, Konstantin
Hi Huichao, In general yes, it is developer responsibility to address any issues with his/her patches. In that particular case, looking at the logs, it seems to be some misconfiguration on test-machine not related anyhow to your changes. BTW, there are few similar failures with other patches at

[RFC PATCH v1 8/8] dts: merge DTS vm_images/network-init.sh to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/vm_images/network-init.sh | 6 ++ 1 file changed, 6 insertions(+) create mode 100755 dts/vm_images/network-init.sh diff --git a/dts/vm_images/network-init.sh b/dts/vm_images/network-init.sh new file mode 100755 index 00..ad0190a5af --- /dev/null +++ b/dts/vm_images/network-in

[RFC PATCH v1 6/8] dts: merge DTS vm_images/create_vm_image.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/vm_images/create_vm_image.py | 474 +++ 1 file changed, 474 insertions(+) create mode 100755 dts/vm_images/create_vm_image.py diff --git a/dts/vm_images/create_vm_image.py b/dts/vm_images/create_vm_image.py new file mode 100755 index 00..8a010c99ac ---

[RFC PATCH v1 7/8] dts: merge DTS vm_images/make_build_container.sh to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/vm_images/make_build_container.sh | 16 1 file changed, 16 insertions(+) create mode 100755 dts/vm_images/make_build_container.sh diff --git a/dts/vm_images/make_build_container.sh b/dts/vm_images/make_build_container.sh new file mode 100755 index 00..fb4472436f

[RFC PATCH v1 5/8] dts: merge DTS vm_images/README.md to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/vm_images/README.md | 64 + 1 file changed, 64 insertions(+) create mode 100644 dts/vm_images/README.md diff --git a/dts/vm_images/README.md b/dts/vm_images/README.md new file mode 100644 index 00..1a59810d43 --- /dev/null +++ b/dts/vm_imag

[RFC PATCH v1 4/8] dts: merge DTS vm_images/Dockerfile to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/vm_images/Dockerfile | 9 + 1 file changed, 9 insertions(+) create mode 100644 dts/vm_images/Dockerfile diff --git a/dts/vm_images/Dockerfile b/dts/vm_images/Dockerfile new file mode 100644 index 00..ce4dbca44a --- /dev/null +++ b/dts/vm_images/Dockerfile @@ -0,0 +1,9 @@

[RFC PATCH v1 3/8] dts: merge DTS requirements.txt to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/requirements.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 dts/requirements.txt diff --git a/dts/requirements.txt b/dts/requirements.txt new file mode 100644 index 00..f58a64defa --- /dev/null +++ b/dts/requirements.txt @

[RFC PATCH v1 2/8] dts: merge DTS pyproject.toml to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 dts/pyproject.toml diff --git a/dts/pyproject.toml b/dts/pyproject.toml new file mode 100644 index 00..e5befba31b --- /dev/null +++ b/dts/pyproject.toml @@ -0,0 +1,3 @@ +[tool.isort] +profile = "black" + -

[RFC PATCH v1 1/8] dts: merge DTS format.sh to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/format.sh | 35 +++ 1 file changed, 35 insertions(+) create mode 100755 dts/format.sh diff --git a/dts/format.sh b/dts/format.sh new file mode 100755 index 00..d35c0bf1da --- /dev/null +++ b/dts/format.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +fu

[RFC PATCH v1 0/8] merge DTS repo config and tools to DPDK

2022-04-06 Thread Juraj Linkeš
Various tools and repo config. Juraj Linkeš (8): dts: merge DTS format.sh to DPDK dts: merge DTS pyproject.toml to DPDK dts: merge DTS requirements.txt to DPDK dts: merge DTS vm_images/Dockerfile to DPDK dts: merge DTS vm_images/README.md to DPDK dts: merge DTS vm_images/create_vm_imag

[RFC PATCH v1 2/2] dts: merge DTS tests/TestSuite_pf_smoke.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/tests/TestSuite_pf_smoke.py | 170 1 file changed, 170 insertions(+) create mode 100644 dts/tests/TestSuite_pf_smoke.py diff --git a/dts/tests/TestSuite_pf_smoke.py b/dts/tests/TestSuite_pf_smoke.py new file mode 100644 index 00..586ae8c685 --- /d

[RFC PATCH v1 1/2] dts: merge DTS test_plans/pf_smoke_test_plan.rst to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/test_plans/pf_smoke_test_plan.rst | 165 ++ 1 file changed, 165 insertions(+) create mode 100644 dts/test_plans/pf_smoke_test_plan.rst diff --git a/dts/test_plans/pf_smoke_test_plan.rst b/dts/test_plans/pf_smoke_test_plan.rst new file mode 100644 index 00

[RFC PATCH v1 0/2] merge DTS testcase files to DPDK

2022-04-06 Thread Juraj Linkeš
DTS testcases with their testplans and configuration. Outstanding items: Create util and data subdirectories under tests/ and move testsuite related files into them to better organize DTS: Python libraries from framework/ which are only used by testcases. Files from dep/ which are used only by tes

[RFC PATCH v1 23/23] dts: merge DTS framework/flow/generator.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/generator.py | 204 1 file changed, 204 insertions(+) create mode 100644 dts/framework/flow/generator.py diff --git a/dts/framework/flow/generator.py b/dts/framework/flow/generator.py new file mode 100644 index 00..c2bde76e53 --- /d

[RFC PATCH v1 21/23] dts: merge DTS framework/flow/flow_pattern_items.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/flow_pattern_items.py | 1219 ++ 1 file changed, 1219 insertions(+) create mode 100644 dts/framework/flow/flow_pattern_items.py diff --git a/dts/framework/flow/flow_pattern_items.py b/dts/framework/flow/flow_pattern_items.py new file mode 100644 index

[RFC PATCH v1 22/23] dts: merge DTS framework/flow/flow_rule.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/flow_rule.py | 65 + 1 file changed, 65 insertions(+) create mode 100644 dts/framework/flow/flow_rule.py diff --git a/dts/framework/flow/flow_rule.py b/dts/framework/flow/flow_rule.py new file mode 100644 index 00..6687bffe57 --- /de

[RFC PATCH v1 20/23] dts: merge DTS framework/flow/flow_items.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/flow_items.py | 128 +++ 1 file changed, 128 insertions(+) create mode 100644 dts/framework/flow/flow_items.py diff --git a/dts/framework/flow/flow_items.py b/dts/framework/flow/flow_items.py new file mode 100644 index 00..e43614c587 ---

[RFC PATCH v1 19/23] dts: merge DTS framework/flow/flow_action_items.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/flow_action_items.py | 1597 +++ 1 file changed, 1597 insertions(+) create mode 100644 dts/framework/flow/flow_action_items.py diff --git a/dts/framework/flow/flow_action_items.py b/dts/framework/flow/flow_action_items.py new file mode 100644 index 000

[RFC PATCH v1 17/23] dts: merge DTS framework/flow/exceptions.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/exceptions.py | 44 1 file changed, 44 insertions(+) create mode 100644 dts/framework/flow/exceptions.py diff --git a/dts/framework/flow/exceptions.py b/dts/framework/flow/exceptions.py new file mode 100644 index 00..cf261307a8 ---

[RFC PATCH v1 18/23] dts: merge DTS framework/flow/flow.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/flow.py | 223 + 1 file changed, 223 insertions(+) create mode 100644 dts/framework/flow/flow.py diff --git a/dts/framework/flow/flow.py b/dts/framework/flow/flow.py new file mode 100644 index 00..e80e69a991 --- /dev/null +++ b/d

[RFC PATCH v1 16/23] dts: merge DTS framework/flow/enums.py to DPDK

2022-04-06 Thread Juraj Linkeš
--- dts/framework/flow/enums.py | 122 1 file changed, 122 insertions(+) create mode 100644 dts/framework/flow/enums.py diff --git a/dts/framework/flow/enums.py b/dts/framework/flow/enums.py new file mode 100644 index 00..4e08ac2ace --- /dev/null +++

  1   2   3   >