Commit 2053e0a9 authored by Cosmo Chou's avatar Cosmo Chou Committed by sanglipeng
Browse files

net/ncsi: clear Tx enable mode when handling a Config required AEN

stable inclusion
from stable-v5.10.180
commit cc8efc78c3f6a6fd0f6ff2523a98048c0610499d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cc8efc78c3f6a6fd0f6ff2523a98048c0610499d



--------------------------------

[ Upstream commit 6f75cd16 ]

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: 8d951a75 ("net/ncsi: Configure multi-package, multi-channel modes with failover")
Signed-off-by: default avatarCosmo Chou <chou.cosmo@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ebcd81b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment