RE: [PATCH] net/mlx5: fix the unlock mismatch issue

2023-11-12 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Weiguo Li > Sent: Saturday, November 4, 2023 6:08 AM > To: Alexander Kozyrev > Cc: Slava Ovsiienko ; dev@dpdk.org; > sta...@dpdk.org; Weiguo Li > Subject: [PATCH] net/mlx5: fix the unlock mismatch issue > > The 'need_

RE: [PATCH] net/mlx5: fix the unlock mismatch issue

2023-11-06 Thread Slava Ovsiienko
Hi, Weiguo Good catch, thank you. With best regards, Slava > -Original Message- > From: Weiguo Li > Sent: Saturday, November 4, 2023 6:08 AM > To: Alexander Kozyrev > Cc: Slava Ovsiienko ; dev@dpdk.org; > sta...@dpdk.org; Weiguo Li > Subject: [PATCH] net/mlx5: fi

[PATCH] net/mlx5: fix the unlock mismatch issue

2023-11-03 Thread Weiguo Li
The 'need_lock' parameter controls whether the function acquires and releases the spinlock, but the first unlock operation occurs regardless of the 'need_lock' parameter. To fix this issue, the spin unlock operation should be invoked within an 'if (need_lock)' block, ensuring that the function onl