Skip to contentSkip to conversation

ibmveth bug fixes 3/4

PATCH New Santiago Leon 1 participant 1 message Aug 10, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ibmveth bug fixes 3/4

Andrew,

This patch checks for the LongBusy return code from the hypervisor, and retries the operation (which is what the hypervisor expects the driver to do). Please apply.

Signature · 3 lines
Santiago A. Leon
Power Linux Development
IBM Linux Technology Center

===== drivers/net/ibmveth.c 1.15 vs edited =====

drivers/net/ibmveth.c +2 -2
@@ -530,7 +530,7 @@
 		ibmveth_error_printk("unable to request irq 0x%x, rc %d\n", netdev->irq, rc);
 		do {
 			rc = h_free_logical_lan(adapter->vdev->unit_address);
-		} while H_isLongBusy(rc);
+		} while (H_isLongBusy(rc) || (rc == H_Busy));
 
 		ibmveth_cleanup(adapter);
 		return rc;
@@ -562,7 +562,7 @@
 
 	do {
 		lpar_rc = h_free_logical_lan(adapter->vdev->unit_address);
-	} while H_isLongBusy(lpar_rc);
+	} while (H_isLongBusy(lpar_rc) || (lpar_rc == H_Busy));
 
 	if(lpar_rc != H_Success)
 	{