[ofa-general] [PATCH 1/11] IB/ipoib: high dma support
Eli Cohen
eli at mellanox.co.il
Mon Sep 24 05:35:55 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 20:50:16.000000000 +0300
+++ linux-2.6.23-rc1/drivers/infiniband/ulp/ipoib/ipoib_main.c 2007-08-15 20:50:27.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