[dpdk-dev] [PATCH] net/bnxt: fix nested lock at bond mode

2021-07-03 Thread Weifeng Li
nk_update_op -> bond_ethdev_lsc_event_callback (lsc_lock dead lock) Fixes: c2faa1d1969e ("net/bnxt: add support for LSC interrupt event") Cc: sta...@dpdk.org Signed-off-by: Weifeng Li --- drivers/net/bnxt/bnxt_cpr.c| 2 ++ drivers/net/bnxt/bnxt_ethdev.c | 5 - 2 files changed, 2 insertions(+), 5

[dpdk-dev] [PATCH v2] net/bnxt: fix nested lock at bond mode

2021-07-03 Thread Weifeng Li
nk_update_op -> bond_ethdev_lsc_event_callback (lsc_lock dead lock) Fixes: c2faa1d1969e ("net/bnxt: add support for LSC interrupt event") Cc: sta...@dpdk.org Signed-off-by: Weifeng Li --- v2: fix coding style issues --- drivers/net/bnxt/bnxt_cpr.c| 2 ++ drivers/net/bnxt/bnxt_ethdev.c | 5

[dpdk-dev] Segfault when eal thread executing mlx5 nic's lsc event

2020-10-30 Thread Weifeng LI
hi     I am using the dpdk bond of mlx5. There is a segment error in the process of starting the bond port. This is because EAL interrupt thread is processing LSC interrupt when slave_configure is executing the rte_eth_dev_rss_reta_update. rte_eth_dev_rss_reta_update will also use mlx5 flow l

[dpdk-dev] [PATCH v2] net/bonding: change the state machine to defaulted

2020-07-06 Thread Weifeng Li
From: Weifeng Li A dpdk bonding 802.3ad network as follows: +--+ +---+ |dpdk lacp |slave1 <--> port1|switch lacp| | |slave2 <--> port2| | +--+ +---+ If a fiber optic go wrong about

[dpdk-dev] [PATCH] net/i40e: fix SFP I X722 with FW4.16

2021-01-10 Thread Weifeng Li
for SFP_I_X722 to not enable adminq operation. Fixes: 9efa8d28b4da ("net/i40e: fix SFP X722 with FW4.16") Cc: sta...@dpdk.org Signed-off-by: Weifeng Li --- drivers/net/i40e/i40e_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_

[dpdk-dev] [PATCH] net/mlx5: make flow opration thread safe

2020-11-07 Thread Weifeng Li
func and print "port 4 Rx queu 0 is still used by a flow and cannot be removed". I use dpdk-testpmd to simulate the test. Signed-off-by: Weifeng Li --- drivers/net/mlx5/linux/mlx5_os.c | 1 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.c | 13 +++-

[dpdk-dev] [PATCH v2] net/mlx5: make flow operation thread safe

2020-11-07 Thread Weifeng Li
func and print "port 4 Rx queue 0 is still used by a flow and cannot be removed". I use dpdk-testpmd to simulate the test. Signed-off-by: Weifeng Li --- v2: adjust coding style issue. --- drivers/net/mlx5/linux/mlx5_os.c | 1 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/m

[dpdk-dev] [PATCH v3] net/bonding: change the state machine to defaulted

2020-07-17 Thread Weifeng Li
now set to locally administered values there can be no disagreement as to the Link Aggregation Group, so the Matched variable is set TRUE. The relevant description is in the chapter 43.4.12 of the link below: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=850426 Signed-off-by: Weifeng Li

[dpdk-dev] [PATCH v4] net/bonding: change the state machine to defaulted

2020-07-17 Thread Weifeng Li
now set to locally administered values there can be no disagreement as to the Link Aggregation Group, so the Matched variable is set TRUE. The relevant description is in the chapter 43.4.12 of the link below: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=850426 Signed-off-by: Weifeng Li