Skip to content

Commit 3780bb2

Browse files
Johnathan Manteydavem330
authored andcommitted
ncsi: Propagate carrier gain/loss events to the NCSI controller
Report the carrier/no-carrier state for the network interface shared between the BMC and the passthrough channel. Without this functionality the BMC is unable to reconfigure the NIC in the event of a re-cabling to a different subnet. Signed-off-by: Johnathan Mantey <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 802496c commit 3780bb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

net/ncsi/ncsi-aen.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ static int ncsi_aen_handler_lsc(struct ncsi_dev_priv *ndp,
8989
if ((had_link == has_link) || chained)
9090
return 0;
9191

92+
if (had_link)
93+
netif_carrier_off(ndp->ndev.dev);
94+
else
95+
netif_carrier_on(ndp->ndev.dev);
96+
9297
if (!ndp->multi_package && !nc->package->multi_channel) {
9398
if (had_link) {
9499
ndp->flags |= NCSI_DEV_RESHUFFLE;

0 commit comments

Comments
 (0)