[PATCH] net/i40e/base: fix the debug print format

2025-01-14 Thread Zhichao Zeng
dpdk.org Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Zhichao Zeng --- drivers/net/i40e/base/i40e_nvm.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/net/i40e/base/i40e_nvm.c b/drivers/net/i40e/base/i40e_nvm.c index 3e16a0d997..5ece2ebf55 100644 --

[PATCH] net/ice/base: support switch recipe reuse

2024-12-05 Thread Zhichao Zeng
code in kernel driver to support reusing the switch recipe. Signed-off-by: Zhichao Zeng --- drivers/net/ice/base/ice_adminq_cmd.h | 3 + drivers/net/ice/base/ice_common.c | 2 + drivers/net/ice/base/ice_switch.c | 238 -- drivers/net/ice/base/ice_switch.h

[PATCH] net/ixgbe: add support for new device

2024-11-25 Thread Zhichao Zeng
Add support for loopback_mode for new device. Signed-off-by: Zhichao Zeng --- drivers/net/ixgbe/ixgbe_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 0d42fd8a3b..7d16eb9df7 100644 --- a/drivers

[PATCH v2] net/ice: fix wrong DDP search path

2024-11-04 Thread Zhichao Zeng
package") Signed-off-by: Zhichao Zeng v2: change return code --- drivers/net/ice/ice_ethdev.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index d5e94a6685..cf06ac58ce 100644 --- a/driv

[PATCH] net/ice: fix wrong DDP search path

2024-11-01 Thread Zhichao Zeng
package") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_ethdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index d5e94a6685..0705f8e961 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/n

[PATCH v6] net/ice: support customized search path for DDP package

2024-09-20 Thread Zhichao Zeng
ned-off-by: Zhichao Zeng --- v6: use open() instead of fopen() v5: update documentation, fix code logic v4: fix CI error v3: update doc, fix code error v2: separate the patch and rewrite the log --- doc/guides/nics/ice.rst | 60 +++- drivers/net/ice/ice_eth

[PATCH v5] net/ice: support customized search path for DDP package

2024-09-18 Thread Zhichao Zeng
ned-off-by: Zhichao Zeng --- v5: update documentation, fix code logic v4: fix CI error v3: update doc, fix code error v2: separate the patch and rewrite the log --- doc/guides/nics/ice.rst | 61 +++- drivers/net/ice/ice_ethdev.c | 44 -- d

[PATCH v4] net/ice: support customized search path for DDP package

2024-09-12 Thread Zhichao Zeng
ned-off-by: Zhichao Zeng --- v4: fix CI error v3: update doc, fix code error v2: separate the patch and rewrite the log --- doc/guides/nics/ice.rst | 63 +++- drivers/net/ice/ice_ethdev.c | 44 + drivers/net/ice/ice_ethdev.h | 1 + 3 fil

[PATCH v3] net/ice: support customized search path for DDP package

2024-09-12 Thread Zhichao Zeng
ned-off-by: Zhichao Zeng --- v3: update doc, fix code error v2: separate the patch and rewrite the log --- doc/guides/nics/ice.rst | 64 drivers/net/ice/ice_ethdev.c | 41 +++ drivers/net/ice/ice_ethdev.h | 1 + 3 files changed, 77

[PATCH v3] net/ice: support customized search path for DDP package

2024-09-12 Thread Zhichao Zeng
ned-off-by: Zhichao Zeng --- v3: update doc, fix code error v2: separate the patch and rewrite the log --- doc/guides/nics/ice.rst | 64 drivers/net/ice/ice_ethdev.c | 41 +++ drivers/net/ice/ice_ethdev.h | 1 + 3 files changed, 77

[PATCH v2] net/ice: support customized search path for DDP package

2024-08-28 Thread Zhichao Zeng
This patch adds support for customizing firmware search path for DDP package like the kernel behavior, it will read the search path from "/sys/module/firmware_class/parameters/path", and try to load DDP package. Signed-off-by: Zhichao Zeng --- v2: separate the patch and rewrite the lo

[PATCH v2] net/ice: support customized search path for DDP package

2024-08-28 Thread Zhichao Zeng
This patch adds support for customizing firmware search path for DDP package like the kernel behavior, it will read the search path from "/sys/module/firmware_class/parameters/path", and try to load DDP package. Signed-off-by: Zhichao Zeng --- v2: separate the patch and rewrite the lo

[PATCH] net/ice: support for more flexible loading of DDP package

2024-08-27 Thread Zhichao Zeng
vior. Signed-off-by: Bruce Richardson Signed-off-by: Zhichao Zeng --- doc/guides/nics/ice.rst | 12 +++ drivers/net/ice/ice_ethdev.c | 61 drivers/net/ice/ice_ethdev.h | 2 ++ 3 files changed, 75 insertions(+) diff --git a/doc/guides/nics/ice.r

[PATCH] net/ice: support for more flexible loading of DDP package

2024-08-27 Thread Zhichao Zeng
vior. Signed-off-by: Bruce Richardson Signed-off-by: Zhichao Zeng --- doc/guides/nics/ice.rst | 12 drivers/net/ice/ice_ethdev.c | 59 drivers/net/ice/ice_ethdev.h | 2 ++ 3 files changed, 73 insertions(+) diff --git a/doc/guides/nics/ice.r

[PATCH] net/ice/base: add retries for reading NVM

2024-07-22 Thread Zhichao Zeng
Reading NVM fails in some scenarios, so synchronize with the share code in the kernel driver to add retries for reading NVM. Signed-off-by: Zhichao Zeng --- drivers/net/ice/base/ice_nvm.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/net

[PATCH v6] net/i40e: support FEC feature

2024-07-02 Thread Zhichao Zeng
This patch enabled querying Forward Error Correction(FEC) capabilities, set FEC mode and get current FEC mode functions. Signed-off-by: Zhichao Zeng --- v6: fix some judgments v5: fix some judgments v4: fix some logic v3: optimize code details v2: update NIC feature document --- doc/guides

[PATCH v6] net/i40e: support FEC feature

2024-07-02 Thread Zhichao Zeng
This patch enabled querying Forward Error Correction(FEC) capabilities, set FEC mode and get current FEC mode functions. Signed-off-by: Zhichao Zeng --- v6: fix some judgments v5: fix some judgments v4: fix some logic v3: optimize code details v2: update NIC feature document --- doc/guides

[PATCH] telemetry: fix potential connection issue

2024-06-20 Thread Zhichao Zeng
metry: introduce backward compatibility") Cc: sta...@dpdk.org Signed-off-by: Zhichao Zeng --- lib/telemetry/telemetry_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/telemetry/telemetry_legacy.c b/lib/telemetry/telemetry_legacy.c index 4c1d1c353a..578230732c 10

[PATCH v5] net/i40e: support FEC feature

2024-04-11 Thread Zhichao Zeng
This patch enabled querying Forward Error Correction(FEC) capabilities, set FEC mode and get current FEC mode functions. Signed-off-by: Qiming Yang Signed-off-by: Zhichao Zeng --- v5: fix some judgments v4: fix some logic v3: optimize code details v2: update NIC feature document --- doc

[PATCH v5] net/i40e: support FEC feature

2024-04-11 Thread Zhichao Zeng
This patch enabled querying Forward Error Correction(FEC) capabilities, set FEC mode and get current FEC mode functions. Signed-off-by: Qiming Yang Signed-off-by: Zhichao Zeng --- v5: fix some judgments v4: fix some logic v3: optimize code details v2: update NIC feature document --- doc

[PATCH v4] net/i40e: support FEC feature

2024-03-06 Thread Zhichao Zeng
This patch enabled querying Forward Error Correction(FEC) capabilities, set FEC mode and get current FEC mode functions. Signed-off-by: Qiming Yang Signed-off-by: Zhichao Zeng --- v4: fix some logic v3: optimize code details v2: update NIC feature document --- doc/guides/nics/features

[PATCH v6 3/3] net/iavf: add Tx LLDP command

2024-01-02 Thread Zhichao Zeng
This patch adds an IAVF testpmd command "set tx lldp on" which will register an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to indicate the need to test transmit LLDP packet. It needs to stop and restart Tx port to select correct Tx path. Signed-off-by: Zhichao Zeng --- doc/guides/nics/in

[PATCH v6 2/3] net/iavf: support Tx LLDP on AVX512

2024-01-02 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynfield IAVF_TX_LLDP_DYNFIELD to support transmitting LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf

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

2024-01-02 Thread Zhichao Zeng
This patch adds an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to transmit LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 5 + drivers/net/iavf/iavf_rxtx.c | 13

[PATCH v6 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2024-01-02 Thread Zhichao Zeng
descriptor based on the mbuf dynfield to transmit the LLDP packet. --- v6: check dynfield before access v5: check dynfield at dev_start v4: fix compile error v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP

[PATCH v5 3/3] net/iavf: add Tx LLDP command

2023-12-27 Thread Zhichao Zeng
ports turning on for now. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_testpmd.c| 81 ++ drivers/net/iavf/meson.build | 3 + 3 files changed, 87 insertions(+) create mode 100644 drivers/net/iavf/

[PATCH v5 2/3] net/iavf: support Tx LLDP on AVX512

2023-12-27 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynfield IAVF_TX_LLDP_DYNFIELD to support sending LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/iavf_rxtx.h

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

2023-12-27 Thread Zhichao Zeng
This patch adds an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to send LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 5 + drivers/net/iavf/iavf_rxtx.c | 16

[PATCH v5 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-27 Thread Zhichao Zeng
supports turning on for now. IAVF will fill the SWTCH_UPLINK bit in the Tx context descriptor based on the mbuf dynfield to send the LLDP packet. --- v5: check dynfield at dev_start v4: fix compile error v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit

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

2023-12-26 Thread Zhichao Zeng
. Signed-off-by: Zhichao Zeng --- drivers/common/iavf/virtchnl.h | 40 - drivers/net/iavf/iavf_fdir.c | 265 ++--- drivers/net/iavf/iavf_hash.c | 112 +++--- 3 files changed, 208 insertions(+), 209 deletions(-) diff --git a/drivers/common/iavf/virtchnl.h b

[PATCH v4 3/3] net/iavf: add Tx LLDP command

2023-12-24 Thread Zhichao Zeng
d reopen the port to select correct Tx path. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_testpmd.c| 84 ++ drivers/net/iavf/meson.build | 3 + drivers/net/iavf/version.map | 3 + 4 files ch

[PATCH v4 2/3] net/iavf: support Tx LLDP on AVX512

2023-12-24 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynfield IAVF_TX_LLDP_DYNFIELD to support sending LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/iavf_rxtx.h

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

2023-12-24 Thread Zhichao Zeng
This patch adds an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to send LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 19 +-- drivers/net/iavf/iavf_rxtx.h| 3

[PATCH v4 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-24 Thread Zhichao Zeng
x512, need to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path. --- v4: fix compile error v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP on scalar

[PATCH v4 3/3] net/iavf: add Tx LLDP command

2023-12-20 Thread Zhichao Zeng
d reopen the port to select correct Tx path. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_testpmd.c| 82 ++ drivers/net/iavf/meson.build | 3 + 3 files changed, 88 insertions(+) create mode 100

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

2023-12-20 Thread Zhichao Zeng
This patch adds an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to send LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 1 + drivers/net/iavf/iavf_rxtx.c | 16 ++-- drivers

[PATCH v4 2/3] net/iavf: support Tx LLDP on AVX512

2023-12-20 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynfield IAVF_TX_LLDP_DYNFIELD to support sending LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/iavf_rxtx.h

[PATCH v4 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-20 Thread Zhichao Zeng
x512, need to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path. --- v4: fix compile error v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP on scalar

[PATCH v3 3/3] net/iavf: add Tx LLDP command

2023-12-20 Thread Zhichao Zeng
d reopen the port to select correct Tx path. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/net/iavf/iavf_testpmd.c| 80 ++ drivers/net/iavf/meson.build | 3 + 3 files changed, 86 insertions(+) create mode 100

[PATCH v3 2/3] net/iavf: support Tx LLDP on AVX512

2023-12-20 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynfield IAVF_TX_LLDP_DYNFIELD to support sending LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/iavf_rxtx.h

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

2023-12-20 Thread Zhichao Zeng
This patch adds an mbuf dynfield IAVF_TX_LLDP_DYNFIELD to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to send LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 18 -- drivers/net/iavf/rte_pmd_iavf.h | 4 2

[PATCH v3 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-20 Thread Zhichao Zeng
x512, need to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path. --- v3: non-lldp packet do not use the context descriptor v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP on scalar net/iavf: suppo

[PATCH v3] net/iavf: support rte flow with mask for FDIR

2023-12-14 Thread Zhichao Zeng
This patch supports rte flow with mask for FDIR, including eth/ipv4/ipv6/tcp/udp flow items, where src/dst for ipv4/ipv6 and sport/dport for tcp/udp are realized by switch filter. Signed-off-by: Zhichao Zeng --- v3: fix judgment on ipv6 addresses v2: implemented by switch filter --- drivers

[PATCH v2 3/3] net/iavf: add Tx LLDP command

2023-12-13 Thread Zhichao Zeng
x lldp on", and reopen the port to select correct Tx path. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 ++ drivers/net/iavf/iavf_testpmd.c| 68 ++ drivers/net/iavf/meson.build | 3 ++ 3 files changed, 74 insertions(+)

[PATCH v2 2/3] net/iavf: support Tx LLDP on AVX512

2023-12-13 Thread Zhichao Zeng
This patch adds an avx512 ctx Tx path that supports context descriptor, filling in the SWTCH_UPLINK bit based on mbuf dynflag IAVF_TX_LLDP_DYNFLAG to support sending LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/iavf_rxtx.h

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

2023-12-13 Thread Zhichao Zeng
This patch adds an mbuf dynflag IAVF_TX_LLDP_DYNFLAG to determine whether or not to fill the SWTCH_UPLINK bit in the Tx context descriptor to send LLDP packet. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c| 5 + drivers/net/iavf/rte_pmd_iavf.h | 2 ++ 2 files changed, 7

[PATCH v2 0/3] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-13 Thread Zhichao Zeng
d the LLDP packet. For avx512, need to close the Tx port first, then "set tx lldp on", and reopen the port to select correct Tx path. --- v2: split into patch set, refine commit log Zhichao Zeng (3): net/iavf: support Tx LLDP on scalar net/iavf: support Tx LLDP on AVX512 net/iavf:

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

2023-12-13 Thread Zhichao Zeng
This patch supports rte flow with mask for FDIR, including eth/ipv4/ipv6/tcp/udp flow items, where src/dst for ipv4/ipv6 and sport/dport for tcp/udp are realized by switch filter. Signed-off-by: Zhichao Zeng --- v2: implemented by switch filter --- drivers/net/iavf/iavf_fdir.c | 262

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

2023-12-11 Thread Zhichao Zeng
This patch supports rte flow with mask for FDIR, including eth/ipv4/ipv6/tcp/udp flow items. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_fdir.c | 419 --- 1 file changed, 243 insertions(+), 176 deletions(-) diff --git a/drivers/net/iavf/iavf_fdir.c b

[PATCH] net/iavf: support Tx LLDP on scalar and AVX512

2023-12-05 Thread Zhichao Zeng
ose the Tx port first, then "set tx lldp on", and reopen the port to select correct path. Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_24_03.rst | 3 ++ drivers/net/iavf/iavf_rxtx.c| 10 drivers/net/iavf/iavf_rxtx.h| 3

[v21.11] net/iavf: support rte flow with mask for FDIR

2023-11-29 Thread Zhichao Zeng
Add mask support for FDIR, including eth/ipv4/ipv6/tcp/udp flow items. This patch is based on DPDK v21.11 LTS [45cef8185a4fcb3aea4279711850c16e580b9a36], for customer cherry-pick. Signed-off-by: Zhichao Zeng --- drivers/common/iavf/virtchnl.h | 40 ++- drivers/net/iavf/iavf_fdir.c | 435

[PATCH v2] net/ice: fix DCF port statistics not cleared

2023-11-01 Thread Zhichao Zeng
Call 'ice_dcf_stats_reset' during the initialization of the DCF port in order to clear any statistics that may exist from the last use of the DCF and to avoid statistics errors. Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization") Cc: sta...@dpdk.org Signed-

[PATCH] net/ice: fix DCF port statistics not cleared

2023-10-30 Thread Zhichao Zeng
DCF and to avoid statistics errors. Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization") Cc: sta...@dpdk.org Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_dcf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/

[PATCH v2] net/iavf: refactor part of watchdog

2023-08-14 Thread Zhichao Zeng
gs to control watchdog") Signed-off-by: Zhichao Zeng --- v2: improve git log --- drivers/net/iavf/iavf_ethdev.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index

[PATCH] net/iavf: fix ASan error caused by watchdog

2023-08-02 Thread Zhichao Zeng
Cancel rte alarm when closing the watchdog at the same time to avoid ASan error, and optimize the prompt when opening and closing the watchdog. Fixes: af801b0374e3 ("net/iavf: add devargs to control watchdog") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_eth

[PATCH] net/iavf: fix the order of closing Rx queue

2023-07-11 Thread Zhichao Zeng
received when disabling the queues. Fixes: 02d212ca3125 ("net/iavf: rename remaining avf strings") Cc: sta...@dpdk.org Signed-off-by: Bartosz Staszewski Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] net/iavf: fix AVX2 path selection

2023-07-05 Thread Zhichao Zeng
The AVX2 path does not support outer checksum offload, when AVX2 is forcibly selected and outer checksum offload is configured, the basic Tx path will be selected to ensure proper functionality. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Zhichao Zeng --

[PATCH] net/iavf: fix avx2 path selection

2023-07-05 Thread Zhichao Zeng
The AVX2 path does not support outer checksum offload, when AVX2 is forcibly selected and outer checksum offload is configured, the basic Tx path will be selected to ensure proper functionality. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Zhichao Zeng --

[PATCH] doc: update iavf feature list

2023-07-04 Thread Zhichao Zeng
The iavf supports timestamp offload on vector path. Signed-off-by: Zhichao Zeng --- doc/guides/nics/features/iavf.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/guides/nics/features/iavf.ini b/doc/guides/nics/features/iavf.ini index 55a02165a0..b72cd98484 100644

[PATCH v2] net/iavf: fix duplicate reset done check with large VF

2023-06-29 Thread Zhichao Zeng
watchdog when request queues to avoid the VIRTCHNL command timeout error when starting with large VF. Fixes: af801b0374e3 ("net/iavf: add devargs to control watchdog") Fixes: 7a93cd3575eb ("net/iavf: add VF reset check") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_et

[PATCH] doc: fix missing release note for UFO on iavf and ice

2023-06-27 Thread Zhichao Zeng
Add missing release note for UDP fragmentation offload on iavf and ice. Fixes: 0f24dc14654e ("net/iavf: enable UDP fragmentation offload") Fixes: 623ca7a15db4 ("net/ice: enable UDP fragmentation offload") Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_23_07

[PATCH] doc: fix missing release note for timestamp offload on iavf

2023-06-27 Thread Zhichao Zeng
Add missing release note for Rx timestamp offload on vector path. Fixes: 61b6874b9224 ("net/iavf: support Rx timestamp offload on AVX512") Signed-off-by: Zhichao Zeng --- doc/guides/rel_notes/release_23_07.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides

[PATCH v2] net/ice: revert mark action in switch filter

2023-06-24 Thread Zhichao Zeng
. Fixes: e24f43f2c824 ("net/ice: support flow mark action in switch") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 1ff4b1afda..

[PATCH v2] net/ice: revert mark action in switch filter

2023-06-24 Thread Zhichao Zeng
. Fixes: e24f43f2c824 ("net/ice: support flow mark action in switch") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 1ff4b1afda..

[PATCH] net/ice: revert mark action in switch filter

2023-06-21 Thread Zhichao Zeng
This implementation has some problem, the function did not work properly, and it broke the mark action in FDir filter, so revert this commit. Fixes: e24f43f2c824 ("net/ice: support flow mark action in switch") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 9 --

[PATCH] net/iavf: fix duplicate reset done check with large VF

2023-06-21 Thread Zhichao Zeng
This patch fixes duplicate VF reset done check in dev_reset with large VF, which cause some errors when starting testpmd with large VF. Fixes: 7a93cd3575eb ("net/iavf: add VF reset check") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 20 +++- 1 fi

[PATCH v5 3/3] net/iavf: support Rx timestamp offload on SSE

2023-06-13 Thread Zhichao Zeng
and timestamp error Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 160 ++- 1 file changed, 157 insertions(+), 3 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c index 3f30be01aa..892bfa4cf3

[PATCH v5 2/3] net/iavf: support Rx timestamp offload on AVX2

2023-06-13 Thread Zhichao Zeng
Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 191 +- 1 file changed, 187 insertions(+), 4 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net/iavf/iavf_rxtx_vec_avx2.c index c7f8b6ef71..c10f24036e 100644 --- a/drivers

[PATCH v5 1/3] net/iavf: support Rx timestamp offload on AVX512

2023-06-13 Thread Zhichao Zeng
This patch enables Rx timestamp offload on the AVX512 data path. It significantly reduces the performance drop when RTE_ETH_RX_OFFLOAD_TIMESTAMP is enabled. Signed-off-by: Zhichao Zeng --- v5: fix CI errors --- v4: rework avx2 patch based on offload path --- v3: logging with driver dedicated

[PATCH v5 0/3] Enable iavf Rx Timestamp offload on vector path

2023-06-13 Thread Zhichao Zeng
warning and SSE path Zhichao Zeng (3): net/iavf: support Rx timestamp offload on AVX512 net/iavf: support Rx timestamp offload on AVX2 net/iavf: support Rx timestamp offload on SSE drivers/net/iavf/iavf_rxtx.h| 3 +- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 191

[PATCH v2] net/iavf: fix compilation warnings

2023-06-09 Thread Zhichao Zeng
Fixes: d65eadb9e178 ("net/iavf: support Rx timestamp offload on AVX512") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 11 --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 11 --- drivers/net/iavf/iavf_rxtx_vec_sse.c| 7 --- 3 file

[PATCH] net/iavf: fix old GCC compilation warnings

2023-06-08 Thread Zhichao Zeng
pport Rx timestamp offload on SSE") Fixes: 4f58266da4d3 ("net/iavf: support Rx timestamp offload on AVX2") Fixes: d65eadb9e178 ("net/iavf: support Rx timestamp offload on AVX512") Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 1

[PATCH v2] net/iavf: add VF reset check

2023-06-01 Thread Zhichao Zeng
commit adds a VF reset check before the dev_reset to inform the application not to invoke any virtual channel commands, to avoid making the device to be abnormal. Suggested-by: Liang-Min Larry Wang Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 13 + 1 file changed, 13

[PATCH v2] net/iavf: add VF reset check

2023-06-01 Thread Zhichao Zeng
commit adds a VF reset check before the dev_reset to inform the application not to invoke any virtual channel commands, to avoid making the device to be abnormal. Suggested-by: Liang-Min Larry Wang Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 13 + 1 file changed, 13

[PATCH v2] net/iavf: add devargs to control watchdog

2023-06-01 Thread Zhichao Zeng
e watchdog. Signed-off-by: Zhichao Zeng --- v2: enables watchdog when link status changes to down --- drivers/net/iavf/iavf.h| 5 ++- drivers/net/iavf/iavf_ethdev.c | 81 +- drivers/net/iavf/iavf_vchnl.c | 21 +++-- 3 files changed, 81 insertions(+), 26

[PATCH] net/ice: fix outer UDP checksum offload

2023-06-01 Thread Zhichao Zeng
ing judgment for the outer-udp checksum offload flag. Fixes: bd70c451532c ("net/ice: support Tx checksum offload for tunnel") Cc: sta...@dpdk.org Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ne

[PATCH v4 3/3] net/iavf: support Rx timestamp offload on SSE

2023-05-28 Thread Zhichao Zeng
This patch enables Rx timestamp offload on SSE data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch based on offload path --- v

[PATCH v4 2/3] net/iavf: support Rx timestamp offload on AVX2

2023-05-28 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX2 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch based on offload path --- v

[PATCH v4 1/3] net/iavf: support Rx timestamp offload on AVX512

2023-05-28 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX512 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Wenjun Wu Signed-off-by: Zhichao Zeng --- v4: rework avx2 patc

[PATCH v4 0/3] Enable iavf Rx Timestamp offload on vector path

2023-05-28 Thread Zhichao Zeng
Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. --- v4: rework avx2 patch based on offload path --- v3: logging with driver dedicated macro --- v2: fix compile warning and SSE path Zhich

[PATCH v4 3/3] net/iavf: support Rx timestamp offload on SSE

2023-05-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on SSE data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch based on offload path --- v

[PATCH v4 2/3] net/iavf: support Rx timestamp offload on AVX2

2023-05-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX2 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch based on offload path --- v

[PATCH v4 1/3] net/iavf: support Rx timestamp offload on AVX512

2023-05-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX512 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Wenjun Wu Signed-off-by: Zhichao Zeng --- v4: rework avx2 patc

[PATCH v4 0/3] Enable iavf Rx Timestamp offload on vector path

2023-05-26 Thread Zhichao Zeng
Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. --- v4: rework avx2 patch based on offload path --- v3: logging with driver dedicated macro --- v2: fix compile warning and SSE path Zhich

[PATCH v4 3/3] net/iavf: support Rx timestamp offload on SSE

2023-05-25 Thread Zhichao Zeng
This patch enables Rx timestamp offload on SSE data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch base on offload path --- v

[PATCH v4 2/3] net/iavf: support Rx timestamp offload on AVX2

2023-05-25 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX2 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v4: rework avx2 patch base on offload path --- v

[PATCH v4 1/3] net/iavf: support Rx timestamp offload on AVX512

2023-05-25 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX512 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Wenjun Wu Signed-off-by: Zhichao Zeng --- v4: rework avx2 pat

[PATCH v4 0/3] Enable iavf Rx Timestamp offload on vector path

2023-05-25 Thread Zhichao Zeng
Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. --- v4: rework avx2 patch base on offload path --- v3: logging with driver dedicated macro --- v2: fix compile warning and SSE path Zhich

[PATCH] net/iavf: add VF reset check

2023-05-24 Thread Zhichao Zeng
This commit adds a VF reset check before the dev_reset, so that the application can check if the iavf device comes out of reset when calling the rte_eth_dev_reset. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_ethdev.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers

[PATCH v4] net/iavf: add devargs to control watchdog

2023-05-14 Thread Zhichao Zeng
e watchdog. Signed-off-by: Zhichao Zeng --- v4: add usage of new devarg in intel_vf.rst --- v3: add usage of new devarg in ice.rst --- v2: enables watchdog when link status changes to down --- doc/guides/nics/intel_vf.rst | 5 +++ drivers/net/iavf/iavf.h| 5 ++- drivers/net/iavf/iavf_eth

[PATCH v3] net/iavf: add devargs to control watchdog

2023-05-14 Thread Zhichao Zeng
e watchdog. Signed-off-by: Zhichao Zeng --- v3: add usage of new devarg in ice.rst --- v2: enables watchdog when link status changes to down --- doc/guides/nics/ice.rst| 13 ++ drivers/net/iavf/iavf.h| 5 ++- drivers/net/iavf/iavf_ethdev.c | 81 +

[PATCH v2] net/iavf: add devargs to control watchdog

2023-05-04 Thread Zhichao Zeng
e watchdog. Signed-off-by: Zhichao Zeng --- v2: enables watchdog when link status changes to down --- drivers/net/iavf/iavf.h| 5 ++- drivers/net/iavf/iavf_ethdev.c | 81 +- drivers/net/iavf/iavf_vchnl.c | 21 +++-- 3 files changed, 81 insertions(+), 26

[PATCH v3 3/3] net/iavf: support Rx timestamp offload on SSE

2023-04-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on SSE data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v3: logging with driver dedicated macro --- v2: f

[PATCH v3 2/3] net/iavf: support Rx timestamp offload on AVX2

2023-04-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX2 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Zhichao Zeng --- v3: logging with driver dedicated macro --- v2: f

[PATCH v3 0/3] Enable iavf Rx Timestamp offload on vector path

2023-04-26 Thread Zhichao Zeng
Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. --- v3: logging with driver dedicated macro --- v2: fix compile warning and SSE path Zhichao Zeng (3): net/iavf: support Rx timestamp offload

[PATCH v3 1/3] net/iavf: support Rx timestamp offload on AVX512

2023-04-26 Thread Zhichao Zeng
This patch enables Rx timestamp offload on AVX512 data path. Enable timestamp offload with the command '--enable-rx-timestamp', pay attention that getting Rx timestamp offload will drop the performance. Signed-off-by: Wenjun Wu Signed-off-by: Zhichao Zeng --- v3: logging with driver

[PATCH] net/iavf: add devargs to enable watchdog

2023-04-17 Thread Zhichao Zeng
Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf.h| 1 + drivers/net/iavf/iavf_ethdev.c | 54 -- drivers/net/iavf/iavf_vchnl.c | 9 -- 3 files changed, 58 insertions(+), 6 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/ia

[PATCH 4/4] net/iavf: enable UDP fragmentation offload

2023-04-12 Thread Zhichao Zeng
This commit enables transmit segmentation offload for UDP, including both non-tunneled and tunneled packets. The command "tso set " or "tunnel_tso set " is used to enable UFO. Signed-off-by: Zhichao Zeng --- drivers/net/iavf/iavf_rxtx.c | 2 +- drivers/net/iavf/iavf_rx

[PATCH 3/4] net/ice: enable UDP fragmentation offload

2023-04-12 Thread Zhichao Zeng
This commit enables transmit segmentation offload for UDP, including both non-tunneled and tunneled packets. The command "tso set " or "tunnel_tso set " is used to enable UFO. Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_rxtx.c | 15 --- 1 file changed,

[PATCH 2/4] app/testpmd: support UFO in checksum engine

2023-04-12 Thread Zhichao Zeng
ckets since there's no checksum field to fill in. Signed-off-by: Zhichao Zeng --- app/test-pmd/csumonly.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index fc85c22a77..062eb09b36 100644 --- a/app/test

  1   2   >