[PATCH] net/iavf: fix core dump when the link is unstable

2024-08-05 Thread Kaiwen Deng
: 5e03e316c753 ("net/iavf: handle virtchnl event message without interrupt") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_vchnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index

[PATCH] examples/l3fwd: Fix core dump with multiple socket

2024-07-03 Thread Kaiwen Deng
Setting acl will clear the acl config of other sockets, which will result in core dump. This commit will no longer clear the acl config when setting acl. Fixes: 6de0ea50e9b9 ("examples/l3fwd: merge l3fwd-acl example") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- exam

[PATCH] net/iavf: fix fail to reset vf when using dcf

2024-03-13 Thread Kaiwen Deng
On the latest ice kernel driver, renegotiating VIRTCHNL_OP_GET_VF_RESOURCES will fail without hardware reset when using dcf. This commit will send VIRTCHNL_OP_RESET_VF to pf before dpdk resets vf. Fixes: 7a93cd3575eb ("net/iavf: add VF reset check") Cc: sta...@dpdk.org Signed-off-

[PATCH v2] app/testpmd: use Tx preparation in txonly engine

2024-01-10 Thread Kaiwen Deng
estpmd>start tx_first 1 This commit will use Tx preparation API in txonly forwarding engine. Fixes: 655131ccf727 ("app/testpmd: factorize fwd engines Tx") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- app/test-pmd/txonly.c | 17 - 1 file changed, 16 insertions(+),

[PATCH v1] app/testpmd: use Tx preparation in txonly engine

2024-01-02 Thread Kaiwen Deng
estpmd>start tx_first 1 This commit will use Tx preparation API in txonly forwarding engine. Fixes: 655131ccf727 ("app/testpmd: factorize fwd engines Tx") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- app/test-pmd/txonly.c | 13 - 1 file changed, 12 insertions(+),

[PATCH v5] lib/net: fix tcp/udp cksum with padding data

2023-12-14 Thread Kaiwen Deng
not zero it will end up producing wrong checksum. This patch will use IP header to get the payload size to calculate tcp/udp checksum. Fixes: d178f693bbfe ("net: add UDP/TCP checksum in mbuf segments") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- lib/net/rte_ip.h | 15 +---

[PATCH v4] lib/net: fix tcp/udp cksum with padding data

2023-12-12 Thread Kaiwen Deng
not zero it will end up producing wrong checksum. This patch will use IP header to get the payload size to calculate tcp/udp checksum. Fixes: d178f693bbfe ("net: add UDP/TCP checksum in mbuf segments") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- lib/net/rte_ip.h | 17

[PATCH v3] lib/net: fix tcp/udp cksum with padding data

2023-12-11 Thread Kaiwen Deng
not zero it will end up producing wrong checksum. This patch will use IP header to get the payload size to calculate tcp/udp checksum. Fixes: d178f693bbfe ("net: add UDP/TCP checksum in mbuf segments") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- lib/net/rte_ip.h | 9 +++-- 1

[PATCH v2] app/test-pmd: fix tcp/udp cksum with padding data

2023-12-07 Thread Kaiwen Deng
issue by triming IP packets to the true length of the frame in testpmd. Fixes: 03d17e4d0179 ("app/testpmd: do not change IP addrs in checksum engine") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- app/test-pmd/csumonly.c | 32 1 file changed, 32

[PATCH v2] net/ice: fix tso tunnel setting to not take effect

2023-12-06 Thread Kaiwen Deng
Fixes: d852fec1be63 ("net/ice: fix Tx offload path choice") Fixes: 295968d17407 ("ethdev: add namespace") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_ethdev.c | 6 +- drivers/net/ice/ice_rxtx_vec_common.h | 4 2 files changed, 9 insertions(+),

[PATCH] net/i40e: remove redundant judgment in fdir parse

2023-11-23 Thread Kaiwen Deng
his commit will remove the redundant judgment. Fixes: 7d83c152a207 ("net/i40e: parse flow director filter") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/i40e/i40e_flow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/i40e/i4

[PATCH] net/ice: fix tso tunnel setting to not take effect

2023-11-23 Thread Kaiwen Deng
The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect. This commit will add tso tunnel capabilities in ice_dev_info_get(). Fixes: 295968d17407 ("ethdev: add namespace") Cc: sta...@dpdk.org Signed-off-

[PATCH v4] net/iavf: fix mbuf release API selection

2023-11-08 Thread Kaiwen Deng
basic Tx path. Fixes: 22f1e7608ebc ("net/iavf: fix AVX2 Tx selection") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rx

[PATCH v3] net/iavf: fix mbuf release API selection

2023-11-01 Thread Kaiwen Deng
basic Tx path. Fixes: 22f1e7608ebc ("net/iavf: fix AVX2 Tx selection") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 610912f635..

[PATCH v2] net/iavf: fix coredump when exiting testpmd

2023-10-31 Thread Kaiwen Deng
Avf releasing mbuf using the vector path release API causes a coredump when the basic Tx path is selected. This commit changes to use the basic path release API when selecting the basic Tx path. Fixes: 22f1e7608ebc ("net/iavf: fix AVX2 Tx selection") Cc: sta...@dpdk.org Signed-off-

[PATCH] net/iavf: fix core dump when exiting testpmd

2023-10-26 Thread Kaiwen Deng
release null mbuf results coredump. This commit adding mbuf check before releasing. Fixes: 12016895fcf3 ("net/iavf: fix buffer leak on Tx queue stop") Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx_vec_common.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)

[PATCH v3] net/ice: fix tm configuration cannot be cleared

2023-09-06 Thread Kaiwen Deng
;) Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- Changes since v2: - Replace DPDK with the PMD in commit log. Changes since v1: - Prevent additional commit when device is running. --- --- drivers/net/ice/ice_dcf_ethdev.c | 2 -- drivers/net/ice/ice_dcf_sched.c | 14 -- 2 files

[PATCH v2] net/ice: fix tm configuration cannot be cleared

2023-09-05 Thread Kaiwen Deng
.@dpdk.org Signed-off-by: Kaiwen Deng --- Changes since v1: - Prevent additional commit when device is running. --- --- drivers/net/ice/ice_dcf_ethdev.c | 2 -- drivers/net/ice/ice_dcf_sched.c | 14 -- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drive

[PATCH] net/ice: fix tm configuration cannot be clear

2023-08-28 Thread Kaiwen Deng
hierarchy configuration is not cleared. This patch adds a new flag "need_clear" to determine if the hierarchy configuration needs to be cleared. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drive

[PATCH] app/test-pmd: fix L4 checksum with padding data

2023-08-04 Thread Kaiwen Deng
issue by triming IP packets to the true length of the frame in testpmd. Fixes: 03d17e4d0179 ("app/testpmd: do not change IP addrs in checksum engine") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- app/test-pmd/csumonly.c | 32 1 file changed, 32

[PATCH] doc: fix missing release note for link support

2023-06-27 Thread Kaiwen Deng
fix missing release note for link speed change support. Fixes: 36afbc269081 ("net/ice: support link speed change") Signed-off-by: Kaiwen Deng --- doc/guides/rel_notes/release_23_07.rst | 4 1 file changed, 4 insertions(+) diff --git a/doc/guides/rel_notes/release_23_07.rst b/

[PATCH] net/ice: fix the mac type of E822 and E823

2023-06-15 Thread Kaiwen Deng
E822 and E823 get the wrong mac type, which prevents the ddp package from loading correctly. This commit fixes the mac type of E822 and E823. Fixes: 084e64e6b600 ("net/ice/base: set MAC type for E823C device") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/ne

[PATCH] net/iavf: fix virtchnl cmd called in intr thread

2023-06-08 Thread Kaiwen Deng
is called by eal-intr-thread to fix this issue. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_ethdev.c | 5 ++- drivers/net/iavf/iavf_vchnl.c | 71 +++--- 2 files changed, 52

[PATCH] net/bonding: fix iavf bond device query stats

2023-06-08 Thread Kaiwen Deng
;) Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/bonding/rte_eth_bond_pmd.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index f0c4f7d26b..edce621496 100644 --- a/drivers/n

[PATCH v4] net/iavf: fix iavf query stats in intr thread

2023-06-06 Thread Kaiwen Deng
lock for VF commands") Fixes: 22b123a36d07 ("net/avf: initialize PMD") Fixes: 7c76a747e68c ("bond: add mode 5") Fixes: 435d523112cc ("net/iavf: fix multi-process shared data") Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") Cc: sta...

[PATCH v2] net/ice: fix dcf init rss blocked

2023-05-08 Thread Kaiwen Deng
The i variable type is uint8_t which causes a dead loop, changing it to size_t will solve this issue. Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_dcf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c index

[PATCH] net/ice: fix dcf init rss blocked

2023-05-06 Thread Kaiwen Deng
The i variable type is uint8_t which causes a dead loop, changing it to uint32_t will solve this issue. Fixes: 3220d865382c ("net/ice: init RSS during DCF start") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_dcf.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH] net/ice: support link speed change

2023-04-13 Thread Kaiwen Deng
ned-off-by: Kaiwen Deng --- drivers/net/ice/ice_ethdev.c | 145 +-- 1 file changed, 105 insertions(+), 40 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 9a88cf9796..281f3ccf6f 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/d

[PATCH v3] net/iavf: fix iavf query stats in intr thread

2023-03-22 Thread Kaiwen Deng
lock for VF commands") Fixes: 22b123a36d07 ("net/avf: initialize PMD") Fixes: 7c76a747e68c ("bond: add mode 5") Fixes: 435d523112cc ("net/iavf: fix multi-process shared data") Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") Cc: sta...

[PATCH] net/bonding: fix forward packets failed

2023-03-09 Thread Kaiwen Deng
;) Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c index 4a266bb2ca..b585752b00 100644 --- a/d

[PATCH v2] net/iavf: fix iavf query stats in intr thread

2023-03-06 Thread Kaiwen Deng
. Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks") Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- Changes since v1: - Add lock to avoid race condition. --- --- drivers/net/iavf/iavf.h| 10 ++- drivers/ne

[PATCH] net/ixgbe: fix IPv6 mask in fdir

2023-03-02 Thread Kaiwen Deng
ot;net/ixgbe: enable IPv6 for consistent API") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ixgbe/ixgbe_flow.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 79c84

[PATCH] net/iavf: fix iavf query stats in intr thread

2023-02-21 Thread Kaiwen Deng
: cb5c1b91f76f ("net/iavf: add thread for event callbacks") Fixes: 22b123a36d07 ("net/avf: initialize PMD") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf.h| 9 ++- drivers/net/iavf/iavf_ethdev.c | 24 ++-- drivers/net/iavf

[PATCH] net/ixgbe: enable IPv6 mask for generic flow API

2023-01-27 Thread Kaiwen Deng
ector filter") Cc: sta...@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ixgbe/ixgbe_flow.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 110ff34fcc..d2ba87df27 100644 --- a/drivers/net/ixgbe/ixgbe_flow.c +++ b/d

[PATCH v2] net/ixgbe: fix error of drop queue index

2022-11-10 Thread Kaiwen Deng
: 5007ac13189d ("ethdev: remove deprecated Flow Director configuration") Signed-off-by: Kaiwen Deng --- drivers/net/ixgbe/ixgbe_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c index 1250c2dc12..110ff34fcc 100644 --- a/drivers