Skip to content

Commit 6f75cd1

Browse files
cchouxdavem330
authored andcommitted
net/ncsi: clear Tx enable mode when handling a Config required AEN
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 075caff commit 6f75cd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)