qeth: Clear mac_bits field when switching between Layer 2 and Layer 3
authorCarsten Otte <cotte@de.ibm.com>
Thu, 22 Jul 2010 23:15:04 +0000 (23:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2010 19:36:22 +0000 (12:36 -0700)
This patch fixes a problem that occurs when switching from layer 3 to layer 2
mode. Resetting this mac_bits makes sure that we retrieve our mac address from
the card, otherwise the interface simply would'nt work.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_sys.c

index 2eb022ff2610f725bad556a6d67c47371dae13d8..6b7fd88e8e4dc03bac970e5fdee39651a720496e 100644 (file)
@@ -433,6 +433,7 @@ static ssize_t qeth_dev_layer2_store(struct device *dev,
        if (card->options.layer2 == newdis)
                goto out;
        else {
+               card->info.mac_bits  = 0;
                if (card->discipline.ccwgdriver) {
                        card->discipline.ccwgdriver->remove(card->gdev);
                        qeth_core_free_discipline(card);