[PATCH v2 2/2] net/cpfl: add TDI to flow engine

2024-01-05 Thread wenjing . qiao
From: Wenjing Qiao Add TDI implementation to a flow engine. Signed-off-by: Wenjing Qiao --- doc/guides/nics/cpfl.rst| 10 + doc/guides/nics/features/cpfl.ini |1 + drivers/net/cpfl/cpfl_ethdev.h |8 + drivers/net/cpfl/cpfl_flow.c|5

[PATCH v2 1/2] net/cpfl: parse flow offloading hint from P4 context file

2024-01-05 Thread wenjing . qiao
From: Wenjing Qiao To supporting P4-programmed network controller, reuse devargs "flow_parser" to specify the path of a p4 context JSON configure file. The cpfl PMD use the JSON configuration file to translate rte_flow tokens into low level hardware representation. Note, the p4 co

[PATCH v2 0/2] net/cpfl: support flow offloading for P4

2024-01-05 Thread wenjing . qiao
From: Wenjing Qiao Enable TDI flow engine which can program hardware offloading rules for a P4 programmable network controller. Wenjing Qiao (2): net/cpfl: parse flow offloading hint from P4 context file net/cpfl: add TDI to flow engine v2: - fix typos. - parse vsi id for key. doc/guides

[PATCH 2/2] net/cpfl: add TDI to flow engine

2023-12-22 Thread wenjing . qiao
From: Wenjing Qiao Add TDI implementation to a flow engine. Signed-off-by: Wenjing Qiao --- doc/guides/nics/cpfl.rst| 10 + doc/guides/nics/features/cpfl.ini |1 + drivers/net/cpfl/cpfl_ethdev.h |8 + drivers/net/cpfl/cpfl_flow.c|5

[PATCH 1/2] net/cpfl: parse flow offloading hint from P4 context file

2023-12-22 Thread wenjing . qiao
From: Wenjing Qiao To supporting P4-programmed network controller, reuse devargs "flow_parser" to specify the path of a p4 context JSON configure file. The cpfl PMD use the JSON configuration file to translate rte_flow tokens into low level hardware representation. Note, the p4 co

[PATCH 0/2] net/cpfl: support flow offloading for P4

2023-12-22 Thread wenjing . qiao
From: Wenjing Qiao Enable TDI flow engine which can program hardware offloading rules for a P4 programmable network controller. Wenjing Qiao (2): net/cpfl: parse flow offloading hint from P4 context file net/cpfl: add TDI to flow engine doc/guides/nics/cpfl.rst| 10

[PATCH] net/cpfl: refactor flow parser

2023-11-07 Thread wenjing . qiao
From: Wenjing Qiao Use strncpy instead of memcpy for string copy and rename macro. Coverity issue: 405350 Fixes: 6cc97c9971d7 ("net/cpfl: build action mapping rules from JSON") Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_flow_parser.c | 34 +++-- driver

[PATCH] net/cpfl: fix coverity issues

2023-11-06 Thread wenjing . qiao
From: Wenjing Qiao Fix integer handling issues, tainted_scalar issues, uninit issues, overrun issues and control flow issues reported by coverity scan. Coverity issue: 403259 Coverity issue: 403261 Coverity issue: 403266 Coverity issue: 403267 Coverity issue: 403271 Coverity issue: 403274 Fixes

[PATCH] net/cpfl: refine vxlan encap content

2023-11-02 Thread wenjing . qiao
From: Wenjing Qiao Refine vxlan encap content of all protocol headers with default configuration. Fixes: 6cc97c9971d7 ("net/cpfl: build action mapping rules from JSON") Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_flow_parser.c | 63 - driver

[PATCH v4] net/cpfl: support action prog

2023-11-02 Thread wenjing . qiao
From: Wenjing Qiao Parse JSON file and generate rules that instruct PMD to map an RTE_FLOW_ACTION_TYPE_PROG to a low-level FXP representation, the matching follows below guidelines. Use rte_flow_action_prog->name to match the name of a P4 action type when provided in the JSON file. In ca

[PATCH v3] net/cpfl: support action prog

2023-10-31 Thread wenjing . qiao
From: Wenjing Qiao Parse JSON file and generate rules that instruct PMD to map an RTE_FLOW_ACTION_TYPE_PROG to a low-level FXP representation, the matching follows below guidelines. Use rte_flow_action_prog->name to match the name of a P4 action type when provided in the JSON file. In ca

[PATCH v2] net/cpfl: support action prog

2023-10-29 Thread wenjing . qiao
From: Wenjing Qiao Parse JSON file and generate rules that instruct PMD to map an RTE_FLOW_ACTION_TYPE_PROG to a low-level FXP representation, the matching follows below guidelines. Use rte_flow_action_prog->name to match the name of a P4 action type when provided in the JSON file. In ca

[PATCH] net/cpfl: support action prog

2023-10-27 Thread wenjing . qiao
From: Wenjing Qiao Parse JSON file and generate rules that instruct PMD to map an RTE_FLOW_ACTION_TYPE_PROG to a low-level FXP representation, the matching follows below guidelines. Use rte_flow_action_prog->name to match the name of a P4 action type when provided in the JSON file. In ca

[PATCH] ethdev: fix flow API support for P4-programmable devices

2023-10-27 Thread wenjing . qiao
From: Wenjing Qiao "program" action should also be added in structure rte_flow_desc_action. Fixes: 8f1953f1914d ("ethdev: add flow API for P4-programmable devices") Signed-off-by: Wenjing Qiao --- lib/ethdev/rte_flow.c | 2 ++ 1 file changed, 2 insertions(+) dif

[PATCH] net/cpfl: fix coverity issue 403269, 403270 and 403272

2023-10-19 Thread wenjing . qiao
From: Wenjing Qiao Fix logically dead code and dereference before null check issues reported in coverity scan. Coverity issue: 403269 Coverity issue: 403270 Coverity issue: 403272 Fixes: 41f20298ee8c ("net/cpfl: parse flow offloading hint from JSON") Fixes: 6cc97c9971d7 ("net/cpf

[PATCH v3 9/9] app/test-pmd: refine encap content

2023-09-06 Thread Wenjing Qiao
From: Yuying Zhang Refine vxlan encap content of all protocol headers. Fixes: 1960be7d32f8 ("app/testpmd: add VXLAN encap/decap") Cc: sta...@dpdk.org Signed-off-by: Yuying Zhang --- app/test-pmd/cmdline_flow.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/a

[PATCH v3 8/9] net/cpfl: add flow support for representor

2023-09-06 Thread Wenjing Qiao
From: Yuying Zhang Add flow support for representor, so representor can create, destroy, validate and flush rules. Signed-off-by: Yuying Zhang --- doc/guides/nics/cpfl.rst| 13 doc/guides/rel_notes/release_23_11.rst | 1 + drivers/net/cpfl/cpfl_flow_engine_fxp.c | 90 +++

[PATCH v3 7/9] net/cpfl: add fxp flow engine

2023-09-06 Thread Wenjing Qiao
From: Yuying Zhang Adapt fxp low level as a flow engine. Signed-off-by: Yuying Zhang --- drivers/net/cpfl/cpfl_ethdev.h | 27 ++ drivers/net/cpfl/cpfl_flow_engine_fxp.c | 583 drivers/net/cpfl/meson.build| 1 + 3 files changed, 611 insertions(+)

[PATCH v3 6/9] net/cpfl: add fxp rule module

2023-09-06 Thread Wenjing Qiao
From: Yuying Zhang Added low level fxp module for rule packing / creation / destroying. Signed-off-by: Yuying Zhang --- drivers/net/cpfl/cpfl_controlq.c | 424 +++ drivers/net/cpfl/cpfl_controlq.h | 24 ++ drivers/net/cpfl/cpfl_ethdev.c | 31 +++ drivers/net/cpf

[PATCH v3 5/9] net/cpfl: set up rte flow skeleton

2023-09-06 Thread Wenjing Qiao
From: Yuying Zhang Set up the rte_flow backend skeleton. Introduce the framework to support different engines as rte_flow backend. Bridge rte_flow driver API to flow engines. Signed-off-by: Yuying Zhang --- drivers/net/cpfl/cpfl_ethdev.c | 54 ++ drivers/net/cpfl/cpfl_ethdev.h | 5 + dr

[PATCH v3 4/9] net/cpfl: setup ctrl path

2023-09-06 Thread Wenjing Qiao
Setup the control vport and control queue for flow offloading. Signed-off-by: Yuying Zhang Signed-off-by: Beilei Xing Signed-off-by: Qi Zhang Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 267 + drivers/net/cpfl/cpfl_ethdev.h | 14

[PATCH v3 3/9] net/cpfl: add FXP low level implementation

2023-09-06 Thread Wenjing Qiao
Add FXP low level implementation for CPFL rte_flow to create/delete rules. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_actions.h | 858 +++ drivers/net/cpfl/cpfl_controlq.c | 379 ++ drivers/net/cpfl/cpfl_controlq.h | 51 ++ drivers/net/cpfl

[PATCH v3 2/9] net/cpfl: add flow json parser

2023-09-06 Thread Wenjing Qiao
A JSON file will be used to direct DPDK CPF PMD to parse rte_flow tokens into low level hardware resources defined in a DDP package file. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.h | 70 + drivers/net/cpfl/cpfl_flow_parser.c | 1910 +++ drivers

[PATCH v3 1/9] net/cpfl: parse flow parser file in devargs

2023-09-06 Thread Wenjing Qiao
Add devargs "flow_parser" for rte_flow json parser. Signed-off-by: Wenjing Qiao --- doc/guides/nics/cpfl.rst | 32 drivers/net/cpfl/cpfl_ethdev.c | 38 +- drivers/net/cpfl/cpfl_ethdev.h | 3 +++ drivers/net/cpfl/m

[PATCH v3 0/9] add rte flow support for cpfl

2023-09-06 Thread Wenjing Qiao
This patchset add rte flow support for cpfl driver. It depends on the following patch set: http://patchwork.dpdk.org/project/dpdk/cover/20230816150541.144532-1-beilei.x...@intel.com/ Wenjing Qiao (4): net/cpfl: parse flow parser file in devargs net/cpfl: add flow json parser net/cpfl: add

[PATCH v4] net/iavf: fix VLAN offload strip flag inconsistency

2023-08-21 Thread Wenjing Qiao
rg Signed-off-by: Wenjing Qiao --- drivers/net/iavf/iavf_ethdev.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index 00b963128b..bdfc0ed098 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/driver

[PATCH v2 4/4] net/cpfl: setup ctrl path

2023-08-11 Thread Wenjing Qiao
Setup the control vport and control queue for flow offloading. Signed-off-by: Yuying Zhang Signed-off-by: Beilei Xing Signed-off-by: Qi Zhang Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_ethd

[PATCH v2 3/4] net/cpfl: introduce CPF common library

2023-08-11 Thread Wenjing Qiao
Add common library support for CPFL rte_flow to create/delete rules. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_actions.h | 858 +++ drivers/net/cpfl/cpfl_contro

[PATCH v2 2/4] net/cpfl: add flow json parser

2023-08-11 Thread Wenjing Qiao
A JSON file will be used to direct DPDK CPF PMD to parse rte_flow tokens into low level hardware resources defined in a DDP package file. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_flow_parse

[PATCH v2 1/4] net/cpfl: parse flow parser file in devargs

2023-08-11 Thread Wenjing Qiao
Add devargs "flow_parser" for rte_flow json parser. Signed-off-by: Wenjing Qiao --- Depends-on: series-29139 ("net/cpfl: support port representor") --- drivers/net/cpfl/cpfl_ethdev.c | 30 +- drivers/net/cpfl/cpfl_ethdev.h | 3 +++ drivers/

[PATCH v2 0/4] net/cpfl: add basic support for rte_flow

2023-08-11 Thread Wenjing Qiao
This patchset adds basic support for rte_flow. --- Depends-on: series-29139 ("net/cpfl: support port representor") Wenjing Qiao (4): net/cpfl: parse flow parser file in devargs net/cpfl: add flow json parser net/cpfl: introduce CPF common library net/cpfl: setup ctrl path d

[PATCH 4/4] net/cpfl: setup ctrl path

2023-08-11 Thread Wenjing Qiao
Setup the control vport and control queue for flow offloading. Signed-off-by: Yuying Zhang Signed-off-by: Beilei Xing Signed-off-by: Qi Zhang Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 270 - drivers/net/cpfl/cpfl_ethdev.h | 14

[PATCH 3/4] net/cpfl: introduce CPF common library

2023-08-11 Thread Wenjing Qiao
Add common library support for CPFL rte_flow to create/delete rules. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_actions.h | 858 +++ drivers/net/cpfl/cpfl_controlq.c | 380 ++ drivers/net/cpfl/cpfl_controlq.h | 51 ++ drivers/net/cpfl

[PATCH 2/4] net/cpfl: add flow json parser

2023-08-11 Thread Wenjing Qiao
A JSON file will be used to direct DPDK CPF PMD to parse rte_flow tokens into low level hardware resources defined in a DDP package file. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_flow_parser.c | 1758 +++ drivers/net/cpfl/cpfl_flow_parser.h | 205

[PATCH 1/4] net/cpfl: parse flow parser file in devargs

2023-08-11 Thread Wenjing Qiao
Add devargs "flow_parser" for rte_flow json parser. Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 30 +- drivers/net/cpfl/cpfl_ethdev.h | 3 +++ drivers/net/cpfl/meson.build | 6 ++ 3 files changed, 38 insertions(+), 1 deletio

[PATCH 0/4] net/cpfl: add basic support for rte_flow

2023-08-11 Thread Wenjing Qiao
This patchset adds basic support for rte_flow. --- Depends-on: series-29139 ("net/cpfl: support port representor") Wenjing Qiao (4): net/cpfl: parse flow parser file in devargs net/cpfl: add flow json parser net/cpfl: introduce CPF common library net/cpfl: setup ctrl path d

[PATCH 14/14] common/idpf/base: use 'type functionname(args)' style

2023-08-08 Thread Wenjing Qiao
From: Simei Su Instead of splitting the function name and function type into multiple lines, use then in a single line. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 5 ++--- drivers/common/idpf/base/idpf_controlq_setup.c | 5 ++-

[PATCH 12/14] common/idpf/base: refine comments and alignment

2023-08-08 Thread Wenjing Qiao
From: Simei Su Refine the macros and definitions by using 'tab' spaces and new lines whereever necessary. Also refine the comment in 'idpf_ctlq_setup_regs'. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 2 +- drivers/common/idpf/b

[PATCH 13/14] common/idpf/base: use GENMASK macro

2023-08-08 Thread Wenjing Qiao
From: Simei Su Instead of using a custom defined macro for generating a mask, use the standard GENMASK macro. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 ++--- drivers/common/idpf/base/idpf_lan_txrx.h| 116 +--

[PATCH 11/14] common/idpf/base: refactor descriptor 'ret val' stripping

2023-08-08 Thread Wenjing Qiao
From: Simei Su Conditional check is not necessary to strip and get status bits from the descriptor. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/common/i

[PATCH 10/14] common/idpf/base: use 'void' return type

2023-08-08 Thread Wenjing Qiao
From: Simei Su As idpf_ctlq_deinit always returns success, make it 'void' instead of returning only success. This also changes the return type for idpf_deinit_hw as 'void'. Based on the upstream comments, explicit __le16 typecasting is not necessary as CPU_TO_LE16 is already being used. Signed-

[PATCH 09/14] common/idpf/base: use local pointer before updating 'CQ out'

2023-08-08 Thread Wenjing Qiao
From: Simei Su Instead of updating directly to 'cq_out' double pointer, use a local pointer and update only when we return success. Signed-off-by: Pavan Kumar Linga Signed-off-by: Simei Su --- drivers/common/idpf/base/idpf_controlq.c | 43 +--- 1 file changed, 23 insertion

[PATCH 08/14] common/idpf/base: define non-flexible size structure for ADI

2023-08-08 Thread Wenjing Qiao
From: Simei Su Customer has a requirement to use the legacy fixed size, single chunk structure for ADI creation - one chunk for queue and one chunk for vector. This is described in detail in customer case https://issuetracker.google.com/issues/270157802. On the other hand, upstream code review p

[PATCH 07/14] common/idpf/base: add union for SW cookie fields in ctlq msg

2023-08-08 Thread Wenjing Qiao
From: Simei Su Instead of using something like a byte offset, we can add a union to the struct here to enable direct addressing. Signed-off-by: Alan Brady Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/idpf_controlq_api.h | 5 + 2

[PATCH 06/14] common/idpf/base: add necessary check

2023-08-08 Thread Wenjing Qiao
From: Simei Su Add necessary check for payload and message buffer. Signed-off-by: Julianx Grajkowski Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/idpf_common.c | 6 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.mai

[PATCH 05/14] common/idpf/base: add some adi specific fields

2023-08-08 Thread Wenjing Qiao
From: Simei Su a) Add maximum ADI count in capabilities message b) Add PF side ADI index to create_adi message c) Define another constant to indicate 'Function active' state of ADI Signed-off-by: Shailendra Bhatnagar Signed-off-by: Simei Su --- .mailmap | 1 + driv

[PATCH 04/14] common/idpf/base: remove mailbox registers

2023-08-08 Thread Wenjing Qiao
From: Simei Su Removing mailbox register offsets as the mapping to device register offsets are different between CVL and MEV (they are swapped out) individual drivers will define the offsets based on how registers are hardware addressed. However the it will begin with VDEV_MBX_START offset. Sign

[PATCH 03/14] common/idpf/base: initial PTP support

2023-08-08 Thread Wenjing Qiao
From: Simei Su Adding a few PTP capabilities to determine which PTP features are enabled - legacy cross time, ptm, device clock control, PTP Tx timestamp with direct registers access, PTP Tx timestamp using virtchnl messages. Creating structures and opcodes to support feautres introduced by capa

[PATCH 02/14] common/idpf/base: add miss completion capabilities

2023-08-08 Thread Wenjing Qiao
From: Simei Su Add miss completion tag to other capabilities list, to indicate support for detecting a miss completion based on the upper bit of the completion tag. Signed-off-by: Josh Hay Signed-off-by: Simei Su --- .mailmap | 1 + drivers/common/idpf/base/virtchn

[PATCH 01/14] common/idpf/base: enable support for physical port stats

2023-08-08 Thread Wenjing Qiao
From: Simei Su Add support to indicate physical port representor and query its statistics. Signed-off-by: Zhenning Xiao Signed-off-by: Jayaprakash Shanmugam Signed-off-by: Simei Su --- .mailmap | 2 + drivers/common/idpf/base/virtchnl2.h | 80

[PATCH 00/14] update idpf base code

2023-08-08 Thread Wenjing Qiao
This patch set updates idpf base code. Simei Su (14): common/idpf/base: enable support for physical port stats common/idpf/base: add miss completion capabilities common/idpf/base: initial PTP support common/idpf/base: remove mailbox registers common/idpf/base: add some adi specific field

[PATCH v2] net/iavf: fix vlan offload strip flag inconsistency

2023-07-12 Thread Wenjing Qiao
For i40e in-tree kernel driver, it will set strip on when setting filter on. To be consistent with dpdk, disable strip again. Fixes: cb25d4323fbf ("net/avf: enable MAC VLAN and promisc ops") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- Depends-on: patch-129488 ("common/i

[PATCH v2] common/iavf: fix hw mac type for 710 NIC

2023-07-12 Thread Wenjing Qiao
Fix hw mac type according to PCI ID list. Fixes: eb385183edac ("net/iavf/base: update device IDs") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/common/iavf/iavf_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/iavf/iavf_common.c b/driv

[PATCH 1/2] common/iavf: fix hw mac type for 710 NIC

2023-07-12 Thread Wenjing Qiao
Fix hw mac type according to PCI ID list. Fixes: eb385183edac ("net/iavf/base: update device IDs") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/common/iavf/iavf_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/common/iavf/iavf_common.c b/driv

[PATCH] net/iavf: fix vlan offload strip flag inconsistency

2023-07-07 Thread Wenjing Qiao
For i40e in-tree kernel driver, it will set strip on when setting filter on. To be consistent with dpdk, disable strip again. Fixes: cb25d4323fbf ("net/avf: enable MAC VLAN and promisc ops") Signed-off-by: Wenjing Qiao --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iav

[PATCH v4 7/7] net/idpf: adjust timestamp mbuf register

2023-05-19 Thread Wenjing Qiao
Due to only support timestamp at port level, adjust timestamp mbuf register to dev config. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/net/idpf/idpf_ethdev.c | 9 +++-- driver

[PATCH v4 6/7] net/cpfl: adjust timestamp mbuf register

2023-05-19 Thread Wenjing Qiao
Due to only support timestamp at port level, adjust timestamp mbuf register to dev config. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/net/cpfl/cpfl_ethdev.c | 9 +++-- driver

[PATCH v4 5/7] common/idpf: add timestamp enable flag for rxq

2023-05-19 Thread Wenjing Qiao
A rxq can be configured with timestamp offload. So, add timestamp enable flag for rxq. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/common/idpf/idpf_common_rxtx.c | 11 ++- driv

[PATCH v4 4/7] common/idpf: enhance timestamp offload feature for ACC

2023-05-19 Thread Wenjing Qiao
For ACC, getting main time from MTS registers by shared memory. Notice: it is a workaround, and it will be removed after generic solution are provided. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/common

[PATCH v4 3/7] net/cpfl: save main time by alarm

2023-05-19 Thread Wenjing Qiao
Using alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/cpfl/cpfl_

[PATCH v4 2/7] net/idpf: save main time by alarm

2023-05-19 Thread Wenjing Qiao
Using alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/idpf/idpf_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/idpf/idpf_

[PATCH v4 1/7] common/idpf: fix 64b timestamp roll over issue

2023-05-19 Thread Wenjing Qiao
Reading MTS register at first packet will cause timestamp roll over issue. To support calculating 64b timestamp, need an alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --

[PATCH v4 0/7] fix idpf and cpfl timestamp

2023-05-19 Thread Wenjing Qiao
Using alarm to save main time to solve timestamp roll over issue. Enhance timestamp offload feature support for ACC. Ajust timestamp mbuf register to dev config. *** BLURB HERE *** Wenjing Qiao (7): common/idpf: fix 64b timestamp roll over issue net/idpf: save main time by alarm net/cpfl

[PATCH v2] net/ice: adjust timestamp mbuf register

2023-05-19 Thread Wenjing Qiao
Due to only support timestamp at port level, adjust timestamp mbuf register to dev config. Fixes: 953e74e6b73a ("net/ice: enable Rx timestamp on flex descriptor") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/ice/ice_ethdev.c | 10 ++ drivers/net/ice/ice_rxt

[PATCH] net/ice: adjust timestamp mbuf register

2023-05-19 Thread Wenjing Qiao
Due to only support timestamp at port level, adjust timestamp mbuf register to dev config. Fixes: 953e74e6b73a ("net/ice: enable Rx timestamp on flex descriptor") Cc: sta...@intel.com Signed-off-by: Wenjing Qiao --- drivers/net/ice/ice_ethdev.c | 10 ++ drivers/net/ice/

[PATCH] net/ice: fix timestamp enable error

2023-05-18 Thread Wenjing Qiao
more than 0, code will still calculate timestamp. So fix it. Fixes: f9c561ffbccc ("net/ice: fix performance for Rx timestamp") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/ice/ice_rxtx.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/d

[PATCH v3 15/15] common/idpf/base: update license and README

2023-04-26 Thread Wenjing Qiao
Update license and README Signed-off-by: Wenjing Qiao --- .mailmap | 8 drivers/common/idpf/base/README| 4 ++-- drivers/common/idpf/base/idpf_alloc.h | 2 +- drivers/common/idpf/base/idpf_common.c | 2 +- drivers

[PATCH v3 14/15] common/idpf/base: add func to clean all DESCs on controlq

2023-04-26 Thread Wenjing Qiao
Add 'idpf_ctlq_clean_sq_force' which will clean all descriptors on given control queue. It is needed in case control plane is not running and we need to do proper driver cleanup. Signed-off-by: NorbertX Ciosek Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.

[PATCH v3 12/15] common/idpf/base: replace MAKEMASK to IDPF_M

2023-04-26 Thread Wenjing Qiao
Replace MAKEMASK to IDPF_M to avoid conflicts with MAKEMASK redefinition from various subcomponents. Signed-off-by: Priyalee Kushwaha Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.h | 3 -- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 +-- drivers

[PATCH v3 13/15] common/idpf/base: add/delete queue groups commands

2023-04-26 Thread Wenjing Qiao
Add types for new two virtchnl commands: add & delete queue group Signed-off-by: Nizan Zorea Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 189 +++ 1 file changed, 189 insertions(+) diff --git a/drivers/common/idpf/base/virtchnl2.h b/dri

[PATCH v3 11/15] common/idpf/base: allocate static buffer at initialization

2023-04-26 Thread Wenjing Qiao
Some OSs don't allow allocating DMA memory at runtime. So create an initial static buffer at initialization to hold this data. Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_common.c | 26 +++--- 1 file changed, 15 inser

[PATCH v3 10/15] common/idpf/base: fix memory leaks on ctrlq functions

2023-04-26 Thread Wenjing Qiao
idpf_init_hw needs to free it's q_info. idpf_clean_arq_element needs to return buffers via post_rx_buffs Fixes: fb4ac04e9bfa ("common/idpf: introduce common library") Cc: sta...@dpdk.org Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idp

[PATCH v3 09/15] common/idpf/base: fix idpf_send_msg_to_cp prototypes

2023-04-26 Thread Wenjing Qiao
Virtchnl2 opcodes are no longer in the enum virtchnl_ops. So change these parameters to allow int rather that compiler enum type checking. Fixes: fb4ac04e9bfa ("common/idpf: introduce common library") Cc: sta...@dpdk.org Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --

[PATCH v3 08/15] common/idpf/base: swap opcode and retval location in msg struct

2023-04-26 Thread Wenjing Qiao
To make the code more readable and make it clearer that the opcode goes in cookie_high and retval goes in cookie_low. Add macro definitions for filling opcode and retval. Signed-off-by: Charles Stoll Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.c | 2 ++ drivers

[PATCH v3 07/15] common/idpf/base: add virtchnl2 error codes

2023-04-26 Thread Wenjing Qiao
codes wherever necessary. Signed-off-by: Kazatsker Kirill Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 40 +--- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/drivers/common/idpf/base/virtchnl2.h

[PATCH v3 06/15] common/idpf/base: modify SSO/LSO and ITR fields

2023-04-26 Thread Wenjing Qiao
should be negotiated. Remove all the above said fields and mark them as reserved. Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/common

[PATCH v3 05/15] common/idpf/base: move OEM capability to the last bit

2023-04-26 Thread Wenjing Qiao
Move the existing OEM capability in VIRTCHNL2_OTHER_CAPS to the last bit. This should not break any backward compatibility as it is not used yet. And VIRTCHNL2_MEV_DEVICE is no longer upstreamed. Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base

[PATCH v3 04/15] common/idpf/base: remove qregion struct variables

2023-04-26 Thread Wenjing Qiao
get version comments where it should be PF/VF. Note: qregion variables will be added once the requirements are defined properly. Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 27 +++ 1 file changed, 11 insertions

[PATCH v3 03/15] common/idpf/base: fix ITR register definitions for AVF

2023-04-26 Thread Wenjing Qiao
Fix ITR register definitions for AVF1.0 and AVF2.0 Fixes: fb4ac04e9bfa ("common/idpf: introduce common library") Cc: sta...@dpdk.org Signed-off-by: Priyalee Kushwaha Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_lan_pf_regs.h | 9 +++-- drivers/common

[PATCH v3 02/15] common/idpf/base: fix ctlq message send and receive

2023-04-26 Thread Wenjing Qiao
") Cc: sta...@dpdk.org Signed-off-by: Charles Stoll Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/common/idpf/base/idpf_controlq.c b/drivers/common/idpf/base/idpf_contro

[PATCH v3 01/15] common/idpf/base: remove virtchnl related base code

2023-04-26 Thread Wenjing Qiao
Since virtchnl related base code of iavf and idpf has the same sourse, so remove virtual related base code of idpf. Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_common.c|2 +- drivers/common/idpf/base/idpf_prototype.h |2 +- drivers/common/idpf/base

[PATCH v3 00/15] update idpf base code

2023-04-26 Thread Wenjing Qiao
This patch set updates idpf base code. Wenjing Qiao (15): common/idpf/base: remove virtchnl related base code common/idpf/base: fix ctlq message send and receive common/idpf/base: fix ITR register definitions for AVF common/idpf/base: remove qregion struct variables common/idpf/base

[PATCH v3 7/7] net/idpf: register timestamp mbuf when starting dev

2023-04-24 Thread Wenjing Qiao
Due to only support timestamp at port level, registering timestamp mbuf should be at dev start stage. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/net/idpf/idpf_ethdev.c | 7 +++ d

[PATCH v3 6/7] net/cpfl: register timestamp mbuf when starting dev

2023-04-24 Thread Wenjing Qiao
Due to only support timestamp at port level, registering timestamp mbuf should be at dev start stage. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/net/cpfl/cpfl_ethdev.c | 7 +++ d

[PATCH v3 5/7] common/idpf: add timestamp enable flag for rxq

2023-04-24 Thread Wenjing Qiao
A rxq can be configured with timestamp offload. So, add timestamp enable flag for rxq. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao Suggested-by: Jingjing Wu --- drivers/common/idpf/idpf_common_rxtx.c | 3 ++- drivers/c

[PATCH v3 4/7] common/idpf: enhance timestamp offload feature for ACC

2023-04-24 Thread Wenjing Qiao
For ACC, getting main time from MTS registers by shared memory. Notice: it is a workaround, and it will be removed after generic solution are provided. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- config/m

[PATCH v3 3/7] net/cpfl: save main time by alarm

2023-04-24 Thread Wenjing Qiao
Using alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/cpfl/cpfl_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/driver

[PATCH v3 2/7] net/idpf: save main time by alarm

2023-04-24 Thread Wenjing Qiao
Using alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --- drivers/net/idpf/idpf_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/driver

[PATCH v3 1/7] common/idpf: fix 64b timestamp roll over issue

2023-04-24 Thread Wenjing Qiao
Reading MTS register at first packet will cause timestamp roll over issue. To support calculating 64b timestamp, need an alarm to save main time from registers every 1 second. Fixes: 8c6098afa075 ("common/idpf: add Rx/Tx data path") Cc: sta...@dpdk.org Signed-off-by: Wenjing Qiao --

[PATCH v3 0/7] fix and enhance idpf and cpfl timestamp

2023-04-24 Thread Wenjing Qiao
Using alarm to save main time to solve timestamp roll over issue. Enhance timestamp offload feature support for ACC. Ajust timestamp mbuf registering at dev start. Wenjing Qiao (7): common/idpf: fix 64b timestamp roll over issue net/idpf: save main time by alarm net/cpfl: save main time by

[PATCH v2 15/15] common/idpf: update license and README

2023-04-21 Thread Wenjing Qiao
Update license and README Signed-off-by: Wenjing Qiao --- .mailmap | 8 drivers/common/idpf/base/README| 4 ++-- drivers/common/idpf/base/idpf_alloc.h | 2 +- drivers/common/idpf/base/idpf_common.c | 2 +- drivers

[PATCH v2 14/15] common/idpf: add func to clean all DESCs on controlq

2023-04-21 Thread Wenjing Qiao
Add 'idpf_ctlq_clean_sq_force' which will clean all descriptors on given control queue. It is needed in case control plane is not running and we need to do proper driver cleanup. Signed-off-by: NorbertX Ciosek Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.

[PATCH v2 13/15] common/idpf: add/delete queue groups commands

2023-04-21 Thread Wenjing Qiao
Add types for new two virtchnl commands: add & delete queue group Signed-off-by: Nizan Zorea Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 189 +++ 1 file changed, 189 insertions(+) diff --git a/drivers/common/idpf/base/virtchnl2.h b/dri

[PATCH v2 12/15] common/idpf: replace MAKEMASK to IDPF_M

2023-04-21 Thread Wenjing Qiao
Replace MAKEMASK to IDPF_M to avoid conflicts with MAKEMASK redefinition from various subcomponents. Signed-off-by: Priyalee Kushwaha Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.h | 3 -- drivers/common/idpf/base/idpf_lan_pf_regs.h | 26 +-- drivers

[PATCH v2 11/15] common/idpf: allocate static buffer at initialization

2023-04-21 Thread Wenjing Qiao
Some OSs don't allow allocating DMA memory at runtime. So create an initial static buffer at initialization to hold this data. Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_common.c | 26 +++--- 1 file changed, 15 inser

[PATCH v2 10/15] common/idpf: fix memory leaks on ctrlq functions

2023-04-21 Thread Wenjing Qiao
idpf_init_hw needs to free it's q_info. idpf_clean_arq_element needs to return buffers via post_rx_buffs Fixes: fb4ac04e9bfa ("common/idpf: introduce common library") Cc: sta...@dpdk.org Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idp

[PATCH v2 09/15] common/idpf: fix idpf_send_msg_to_cp prototypes

2023-04-21 Thread Wenjing Qiao
Virtchnl2 opcodes are no longer in the enum virtchnl_ops. So change these parameters to allow int rather that compiler enum type checking. Fixes: fb4ac04e9bfa ("common/idpf: introduce common library") Cc: sta...@dpdk.org Signed-off-by: Christopher Pau Signed-off-by: Wenjing Qiao --

[PATCH v2 08/15] common/idpf: swap opcode and retval location in msg struct

2023-04-21 Thread Wenjing Qiao
To make the code more readable and make it clearer that the opcode goes in cookie_high and retval goes in cookie_low. Add macro definitions for filling opcode and retval. Signed-off-by: Charles Stoll Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/idpf_controlq.c | 2 ++ drivers

[PATCH v2 07/15] common/idpf: add virtchnl2 error codes

2023-04-21 Thread Wenjing Qiao
codes wherever necessary. Signed-off-by: Kazatsker Kirill Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 40 +--- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/drivers/common/idpf/base/virtchnl2.h

[PATCH v2 06/15] common/idpf: modify SSO/LSO and ITR fields

2023-04-21 Thread Wenjing Qiao
should be negotiated. Remove all the above said fields and mark them as reserved. Signed-off-by: Pavan Kumar Linga Signed-off-by: Wenjing Qiao --- drivers/common/idpf/base/virtchnl2.h | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/common

  1   2   >