diff options
author | Ursula Braun <braunu@de.ibm.com> | 2008-04-01 04:26:55 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-16 20:41:39 -0400 |
commit | 922dc0624ea02905e33a7fe1440f8cd157f9a4e5 (patch) | |
tree | ddbccbfe6065a25e96f11bc38d3d76d6acda6c92 /drivers/s390/net | |
parent | 508b3c4f71dc348f8b68f1b4ea3aa0d115f0199d (diff) |
qeth: set lan_online flag after a received STARTLAN
Problem: A STARTLAN command from the adapter may arrive while a
qeth recovery is currently running with a failed qeth
STARTLAN. Usually qeth schedules a recovery when
receiving a STARTLAN command from the adapter. But
another recovery scheduled while a recovery is already
running never starts. Thus the qeth-administered
lan_online flag remains zero in this scenario, even
though the adapter-STARTLAN has happened.
Solution: Set lan_online flag for a received STARTLAN from the
adapter in case scheduled recovery does not start.
Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 86bcaf0e9957..ce27c0f3c4d3 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c | |||
@@ -417,6 +417,7 @@ static struct qeth_ipa_cmd *qeth_check_ipa_data(struct qeth_card *card, | |||
417 | QETH_CARD_IFNAME(card), | 417 | QETH_CARD_IFNAME(card), |
418 | card->info.chpid); | 418 | card->info.chpid); |
419 | netif_carrier_on(card->dev); | 419 | netif_carrier_on(card->dev); |
420 | card->lan_online = 1; | ||
420 | qeth_schedule_recovery(card); | 421 | qeth_schedule_recovery(card); |
421 | return NULL; | 422 | return NULL; |
422 | case IPA_CMD_MODCCID: | 423 | case IPA_CMD_MODCCID: |