Skip to content

Commit e686673

Browse files
cchouxsmb49
authored andcommitted
net/ncsi: clear Tx enable mode when handling a Config required AEN
BugLink: https://bugs.launchpad.net/bugs/2028580 [ Upstream commit 6f75cd1 ] 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: 8d951a7 ("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> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent f342db1 commit e686673

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/ncsi/ncsi-aen.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ static int ncsi_aen_handler_cr(struct ncsi_dev_priv *ndp,
165165
nc->state = NCSI_CHANNEL_INACTIVE;
166166
list_add_tail_rcu(&nc->link, &ndp->channel_queue);
167167
spin_unlock_irqrestore(&ndp->lock, flags);
168+
nc->modes[NCSI_MODE_TX_ENABLE].enable = 0;
168169

169170
return ncsi_process_next_channel(ndp);
170171
}

0 commit comments

Comments
 (0)