]> 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:53:32 +0000 (11:53 +0200)
commitcbda153eea1034b1f51ee95d7eefc966ca6bbfcb
treedb0295fb281f00689b4111f43dcdd29d228889cf
parent933eafb32d97b3532560aeb477f158f1156a3641
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