]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
qeth: use firmware MAC-address for layer2 hsi-devices
authorUrsula Braun <ursula.braun@de.ibm.com>
Fri, 19 Sep 2008 10:56:02 +0000 (12:56 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 25 Sep 2008 00:47:54 +0000 (20:47 -0400)
Real HiperSocket devices in layer2 mode have a firmware-created
MAC-address. This change enables the qeth driver to use this
firmware MAC-address for layer2 HiperSocket devices.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/s390/net/qeth_l2_main.c

index 3ac3cc1e03ccfc1ee7db35a63be8b643711036b3..573b5e564edd450e3a44eb13b1967613c6ef6652 100644 (file)
@@ -559,7 +559,8 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
                        "device %s: x%x\n", CARD_BUS_ID(card), rc);
        }
 
-       if (card->info.guestlan) {
+       if ((card->info.type == QETH_CARD_TYPE_IQD) || 
+           (card->info.guestlan)) {
                rc = qeth_setadpparms_change_macaddr(card);
                if (rc) {
                        QETH_DBF_MESSAGE(2, "couldn't get MAC address on "