[ofa-general] [PATCH 1 of 17] ib_ipoib: add high dma support
Eli Cohen
eli at mellanox.co.il
Tue Sep 11 08:53:40 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: ofa_1_3_dev_kernel/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- ofa_1_3_dev_kernel.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c 2007-09-11 21:15:17.000000000 +0300
+++ ofa_1_3_dev_kernel/drivers/infiniband/ulp/ipoib/ipoib_main.c 2007-09-11 21:15:24.000000000 +0300
@@ -1121,6 +1121,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