[ofa-general] [PATCH 1/16]: ib/ipoib: Add high dma support to ipoib
Eli Cohen
eli at mellanox.co.il
Wed Jan 16 08:37:28 PST 2008
Add high dma support to ipoib
This patch assumes all IB devices support dma-ing from high memory.
Signed-off-by: Eli Cohen <eli at mellnaox.co.il>
---
drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index c9f6077..b40e0f7 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1118,6 +1118,8 @@ static struct net_device *ipoib_add_port(const char *format,
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",
--
1.5.3.8
More information about the general
mailing list