[ofa-general] [PATCH - 1] ipoib - add high dma support

Eli Cohen eli at mellanox.co.il
Wed Aug 15 11:03:44 PDT 2007


Add high dma support to ipoib

This patch assumes all IB devices support 64 bit DMA.

Signed-off-by: Eli Cohen <eli at mellnaox.co.il>

---

Index: linux-2.6.23-rc1/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- linux-2.6.23-rc1.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c	2007-08-15 09:08:14.000000000 +0300
+++ linux-2.6.23-rc1/drivers/infiniband/ulp/ipoib/ipoib_main.c	2007-08-15 09:11:13.000000000 +0300
@@ -1079,6 +1079,8 @@ static struct net_device *ipoib_add_port
 
 	SET_NETDEV_DEV(priv->dev, hca->dma_device);
 
+	priv->dev->features |= NETIF_F_HIGHDMA;
+
 	result = ib_query_pkey(hca, port, 0, &priv->pkey);
 	if (result) {
 		printk(KERN_WARNING "%s: ib_query_pkey port %d failed (ret = %d)\n",




More information about the general mailing list