[ewg] [PATCH 5/6] nes: fix napi enable for multiport boards

Glenn Grundstrom NetEffect glenn at lists.openfabrics.org
Thu Dec 13 16:52:50 PST 2007


napi_enable() was not being called for ports after
the first.

Signed-off-by: Glenn Grundstrom <ggrundstrom at neteffect.com>

---

diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index dcff1b8..0f50cd5 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -276,12 +276,11 @@ static int nes_netdev_open(struct net_device *netdev)
 		/* Enable network packets */
 		nesvnic->linkup = 1;
 		netif_start_queue(netdev);
+		netif_carrier_on(netdev);
+	}
 #ifdef NES_NAPI
-		napi_enable(&nesvnic->napi);
+	napi_enable(&nesvnic->napi);
 #endif
-	} else {
-		netif_carrier_off(netdev);
-	}
 	nesvnic->netdev_open = 1;
 
 	return 0;



More information about the ewg mailing list