netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/ncsi: clear Tx enable mode when handling a Config required AEN
@ 2023-04-25 13:30 cchoux
  2023-04-25 15:38 ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: cchoux @ 2023-04-25 13:30 UTC (permalink / raw)
  To: sam, davem, edumazet, kuba, pabeni
  Cc: netdev, linux-kernel, cosmo.chou, cchoux

Clear the channel Tx enable flag before reconfiguring the channel
when handling a Configuration Required AEN. To avoid misjudging that
the channel Tx has been enabled, which results in the Enable Channel
Network Tx command not being sent during channel reconfiguration.

Signed-off-by: cchoux <chou.cosmo@gmail.com>
---
 net/ncsi/ncsi-aen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/ncsi/ncsi-aen.c b/net/ncsi/ncsi-aen.c
index b635c194f0a8..62fb1031763d 100644
--- a/net/ncsi/ncsi-aen.c
+++ b/net/ncsi/ncsi-aen.c
@@ -165,6 +165,7 @@ static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp,
 	nc->state = NCSI_CHANNEL_INACTIVE;
 	list_add_tail_rcu(&nc->link, &ndp->channel_queue);
 	spin_unlock_irqrestore(&ndp->lock, flags);
+	nc->modes[NCSI_MODE_TX_ENABLE].enable = 0;
 
 	return ncsi_process_next_channel(ndp);
 }
-- 
2.34.1


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

end of thread, other threads:[~2023-04-28  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-25 13:30 [PATCH] net/ncsi: clear Tx enable mode when handling a Config required AEN cchoux
2023-04-25 15:38 ` Jakub Kicinski
2023-04-26  8:13   ` [PATCH v2] " Cosmo Chou
2023-04-28  8:40     ` 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).