[PATCH] net/ice: fix EIPT check is always true

2024-04-08 Thread Shiyang He
When enabling hardware outer UDP TX offload checksum, the EIPT judgment is always true because ICE_TX_CTX_EIPT_NONE = 0x0. This patch fixes it by checking the non-zero EIPT flag. Fixes: 2ed011776334 ("net/ice: fix outer UDP Tx checksum offload") Cc: sta...@dpdk.org Signed-off-by:

[PATCH v3] net/iavf: fix VF startup coredump

2024-01-02 Thread Shiyang He
resetting. v2: fix windows compilation errors v3: add fix tag Fixes: 3e6a5d2d310a ("net/iavf: add devargs to enable VF auto-reset") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- drivers/net/iavf/iavf.h| 3 ++- drivers/net/iavf/iavf_ethdev.c | 48 +++

[PATCH v2] net/iavf: fix vf startup coredump

2024-01-01 Thread Shiyang He
resetting. v2: fix windows compilation errors Signed-off-by: Shiyang He --- drivers/net/iavf/iavf.h| 3 ++- drivers/net/iavf/iavf_ethdev.c | 48 +++--- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf

[PATCH] net/iavf: fix vf startup coredump

2023-12-03 Thread Shiyang He
resetting and creating a separate thread to handle reset event. Signed-off-by: Shiyang He --- drivers/net/iavf/iavf.h| 4 +- drivers/net/iavf/iavf_ethdev.c | 172 + drivers/net/iavf/iavf_vchnl.c | 13 +-- 3 files changed, 139 insertions(+), 50 deletions

[PATCH v5] net/iavf: add devargs to enable vf auto-reset

2023-09-25 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: handling reset by event handler v3: change reset process v4: rebase v5: change enable_auto_reset to auto_reset Acked-by: Qi Zhang Signed-off-by: Shiyang He Signed-off-by: Liang-Min Larry Wang --- doc/guides/nics/intel_vf.rst | 3 +

[PATCH v5] net/iavf: add devargs to enable vf auto-reset

2023-09-25 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: handling reset by event handler v3: change reset process v4: rebase v5: change enable_auto_reset to enable_reset Acked-by: Qi Zhang Signed-off-by: Shiyang He Signed-off-by: Liang-Min Larry Wang --- doc/guides/nics/intel_vf.rst |

[PATCH v5] net/iavf: add devargs to enable vf auto-reset

2023-09-25 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: handling reset by event handler v3: change reset process v3: rebase Signed-off-by: Shiyang He Signed-off-by: Liang-Min Larry Wang --- doc/guides/nics/intel_vf.rst | 3 + doc/guides/rel_notes/release_23_11.rst | 3 + drivers/net/i

[PATCH v4] net/iavf: add devargs to enable vf auto-reset

2023-09-25 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: handling reset by event handler v3: change reset process v3: rebase Signed-off-by: Shiyang He Signed-off-by: Liang-Min Larry Wang --- doc/guides/nics/intel_vf.rst | 3 + doc/guides/rel_notes/release_23_11.rst | 3 + drivers/net/i

[PATCH v3] net/iavf: add devargs to enable vf auto-reset

2023-09-14 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: handling reset by event handler v3: change reset process Signed-off-by: Shiyang He Signed-off-by: Liang-Min Larry Wang --- doc/guides/nics/intel_vf.rst | 3 + doc/guides/rel_notes/release_23_11.rst | 3 + drivers/net/i

[PATCH v2] net/iavf: add devargs to enable vf auto-reset

2023-08-10 Thread Shiyang He
ack online when it receives a PF-to-VF event. v2: using event handler to handle reset Signed-off-by: Shiyang He --- doc/guides/nics/intel_vf.rst | 3 + doc/guides/rel_notes/release_23_11.rst | 3 + drivers/net/iavf/iavf.h| 31 + drivers/net/iavf/iav

[PATCH] net/iavf: add devargs to enable vf auto-reset

2023-07-31 Thread Shiyang He
ack online when it receives a PF-to-VF event. Signed-off-by: Shiyang He --- doc/guides/nics/intel_vf.rst | 3 + drivers/net/iavf/iavf.h| 28 ++ drivers/net/iavf/iavf_ethdev.c | 166 + drivers/net/iavf/iavf_rxtx.c | 25 + drivers/net/iavf/i

[PATCH] app/dma-perf: parse the cmdline with getopt_long

2023-07-17 Thread Shiyang He
Use getopt_long to parse the command line for ease of extension and improved code readability. Fixes: 623dc9364dc6 ("app/dma-perf: introduce DMA performance test") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- app/test-dma-perf/main.c | 60 ++--

[PATCH] app/testpmd: fix 32-bit system forwarding failure

2023-06-28 Thread Shiyang He
l2_len is not calculated correctly on 32-bit systems, resulting in packet forwarding failure. This patch fixes this issue by changing the l2_len calculation. Fixes: dd827fa42a30 ("app/testpmd: fix GTP L2 length in checksum engine") Cc: sta...@dpdk.org Signed-off-by: Shiyang He ---

[PATCH] net/i40e: fix tunnel packet TX descriptor error

2023-06-13 Thread Shiyang He
The TX descriptor of tunnel packet filled incorrectly due to the MACLEN is not set. This patch fixes this issue by setting MACLEN to correctly fill the TX descriptor. Fixes: c59faf3fe8fe ("net/i40e: support TSO on tunneling packet") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --

[PATCH v2] net/ice:fix tunnel packet TX descriptor error

2023-06-07 Thread Shiyang He
The TX descriptor of tunnel packet filled incorrectly due to the MACLEN is not set. This patch fixes this issue by setting MACLEN to correctly fill the TX descriptor. Fixes: bd70c451532c ("net/ice: support Tx checksum offload for tunnel") Cc: sta...@dpdk.org Signed-off-by:

[PATCH] app/testpmd: fix IPv6 tunnel packet checksum error

2023-05-30 Thread Shiyang He
In checksum forwarding mode, the checksum of tunnel packet calculated incorrectly when outer header is IPv6. This patch fixes the issue by setting L4 checksum flag. Fixes: daa02b5cddbb ("mbuf: add namespace to offload flags") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- ap

[PATCH] app/testpmd: fix IPv6 tunnel packet checksum error

2023-05-30 Thread Shiyang He
In checksum forwarding mode, the checksum of tunnel packet calculated incorrectly when outer header is IPv6. This pathch fixes the issue by setting L4 checksum flag. Fixes: daa02b5cddbb ("mbuf: add namespace to offload flags") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- ap

[RFC] net/iavf: handle iavf reset gracefully

2023-05-23 Thread Shiyang He
Originally, when vf received PF-to-VF reset event, the iavf PMD did not perform special actions, resulting in vf being offline and unavailable. This commit handle the PF-to-VF reset event by performing all necessary actions to bring the vf back online and available. Signed-off-by: Shiyang He

[PATCH] net/iavf: fix large vf queues cannot re-use.

2023-05-08 Thread Shiyang He
closing the dev (refer to the kernel driver) . Fixes: e436cd43835b ("net/iavf: negotiate large VF and request more queues") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- drivers/net/iavf/iavf_ethdev.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/iavf/iav

[PATCH v4] app/testpmd: fix secondary process not forwarding

2023-03-08 Thread Shiyang He
o_get' to get queue state from shared memory. Fixes: 3c4426db54fc ("app/testpmd: do not poll stopped queues") Cc: sta...@dpdk.org Signed-off-by: Shiyang He v2: Add function return value processing v3: Add return value description v4: Update queue state in 's

[PATCH v3] app/testpmd: fix secondary process not forwarding

2023-02-22 Thread Shiyang He
o_get' to get queue state from shared memory. Fixes: 3c4426db54fc ("app/testpmd: do not poll stopped queues") Cc: sta...@dpdk.org Signed-off-by: Shiyang He Acked-by: Yuying Zhang v3: Add return value description --- app/test-pmd/testpmd.c | 45 +

[PATCH v2] app/testpmd: fix secondary process not forwarding

2023-02-21 Thread Shiyang He
o_get' to get queue state from shared memory. Fixes: 3c4426db54fc ("app/testpmd: do not poll stopped queues") Cc: sta...@dpdk.org Signed-off-by: Shiyang He Acked-by: Yuying Zhang v2: Add function return value processing --- app/test-pmd/testpmd.c | 35 ++

[PATCH v2] net/ixgbe: fix ixgbe firmware version inconsistency

2023-01-08 Thread Shiyang He
This patch follows the code of ixgbe kernel driver so that it keeps the firmware version obtained by dpdk-ethtool consistent with that obtained by linux-ethtool. Fixes: 8b0b56574269 ("net/ixgbe: add firmware version get") Cc: sta...@dpdk.org Signed-off-by: Shiyang He v2: follow t

[PATCH] net/ixgbe: fix ixgbe firmware version get

2023-01-04 Thread Shiyang He
The firmware version obtained by dpdk-ethtool is inconsistent with that obtained by linux-ethtool. This commit fixes the issue. Fixes: 8b0b56574269 ("net/ixgbe: add firmware version get") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 fi

[PATCH] app/testpmd: fix secondary process not forwarding

2022-12-30 Thread Shiyang He
o_get' to get queue state from shared memory. Fixes: a78040c990cb ("app/testpmd: update forward engine beginning") Cc: sta...@dpdk.org Signed-off-by: Shiyang He --- app/test-pmd/testpmd.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff -