netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2] net: cxgb3_main: disable napi when bind qsets failed in cxgb_up()
@ 2022-11-09  2:14 Zhengchao Shao
  2022-11-10  2:50 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Zhengchao Shao @ 2022-11-09  2:14 UTC (permalink / raw)
  To: netdev, rajur, davem, edumazet, kuba, pabeni
  Cc: jeffrey.t.kirsher, weiyongjun1, yuehaibing, shaozhengchao

When failed to bind qsets in cxgb_up() for opening device, napi isn't
disabled. When open cxgb3 device next time, it will trigger a BUG_ON()
in napi_enable(). Compile tested only.

Fixes: 48c4b6dbb7e2 ("cxgb3 - fix port up/down error path")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
---
v2: modify the description and fixes tag
---
 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
index a52e6b6e2876..9b84c8d8d309 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
@@ -1301,6 +1301,7 @@ static int cxgb_up(struct adapter *adap)
 		if (ret < 0) {
 			CH_ERR(adap, "failed to bind qsets, err %d\n", ret);
 			t3_intr_disable(adap);
+			quiesce_rx(adap);
 			free_irq_resources(adap);
 			err = ret;
 			goto out;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net v2] net: cxgb3_main: disable napi when bind qsets failed in cxgb_up()
  2022-11-09  2:14 [PATCH net v2] net: cxgb3_main: disable napi when bind qsets failed in cxgb_up() Zhengchao Shao
@ 2022-11-10  2:50 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-10  2:50 UTC (permalink / raw)
  To: Zhengchao Shao
  Cc: netdev, rajur, davem, edumazet, kuba, pabeni, jeffrey.t.kirsher,
	weiyongjun1, yuehaibing

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 9 Nov 2022 10:14:51 +0800 you wrote:
> When failed to bind qsets in cxgb_up() for opening device, napi isn't
> disabled. When open cxgb3 device next time, it will trigger a BUG_ON()
> in napi_enable(). Compile tested only.
> 
> Fixes: 48c4b6dbb7e2 ("cxgb3 - fix port up/down error path")
> Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
> 
> [...]

Here is the summary with links:
  - [net,v2] net: cxgb3_main: disable napi when bind qsets failed in cxgb_up()
    https://git.kernel.org/netdev/net/c/d75aed1428da

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-10  2:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09  2:14 [PATCH net v2] net: cxgb3_main: disable napi when bind qsets failed in cxgb_up() Zhengchao Shao
2022-11-10  2:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).