[1/2] qeth: use firmware MAC-address for layer2 hsi-devices

Submitted by frank.blaschka@de.ibm.com on Sept. 19, 2008, 10:56 a.m.

Details

Message ID 20080919105702.427694000@de.ibm.com
State Accepted
Delegated to: Jeff Garzik
Headers show

Commit Message

frank.blaschka@de.ibm.com Sept. 19, 2008, 10:56 a.m.
From: Ursula Braun <ursula.braun@de.ibm.com>

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>

Patch hide | download patch | download mbox

diff -urpN linux-2.6/drivers/s390/net/qeth_l2_main.c linux-2.6-patched/drivers/s390/net/qeth_l2_main.c
--- linux-2.6/drivers/s390/net/qeth_l2_main.c	2008-09-19 00:08:20.000000000 +0200
+++ linux-2.6-patched/drivers/s390/net/qeth_l2_main.c	2008-09-19 00:08:39.000000000 +0200
@@ -559,7 +559,8 @@  static int qeth_l2_request_initial_mac(s
 			"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 "