[ofa-general] [PATCH 1/16 v4] IB/ipoib: Add high dma support
Eli Cohen
eli at mellanox.co.il
Wed Jan 30 08:30:46 PST 2008
IB/ipoib: Add high dma support
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 a082466..8dda67e 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1111,6 +1111,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