]> git.baikalelectronics.ru Git - kernel.git/commit
net/ncsi: clear Tx enable mode when handling a Config required AEN
authorCosmo Chou <chou.cosmo@gmail.com>
Wed, 26 Apr 2023 08:13:50 +0000 (16:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:58 +0000 (11:35 +0200)
commit71d2a474f7a97df5893c61cb5013a087a7c0d616
tree36e54751856821a49c379817bb5f0218c70f7db5
parentf7d8818e6b6d4e966456541cf86b70dbebdf8b03
net/ncsi: clear Tx enable mode when handling a Config required AEN

[ Upstream commit 6f75cd166a5a3c0bc50441faa8b8304f60522fdd ]

ncsi_channel_is_tx() determines whether a given channel should be
used for Tx or not. However, when reconfiguring the channel by
handling a Configuration Required AEN, there is a misjudgment that
the channel Tx has already been enabled, which results in the Enable
Channel Network Tx command not being sent.

Clear the channel Tx enable flag before reconfiguring the channel to
avoid the misjudgment.

Fixes: 8161e92546f7 ("net/ncsi: Configure multi-package, multi-channel modes with failover")
Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ncsi/ncsi-aen.c