lkml.org 
[lkml]   [2004]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6] 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.

Signed-off-by: Santiago Leon <santil@us.ibm.com>

--
Santiago A. Leon
Power Linux Development
IBM Linux Technology Center
===== drivers/net/ibmveth.c 1.15 vs edited =====
--- 1.15/drivers/net/ibmveth.c Tue Aug 10 11:59:07 2004
+++ edited/drivers/net/ibmveth.c Tue Aug 10 11:59:49 2004
@@ -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)
{
\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.028 / U:19.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site