aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2012-07-18 18:33:51 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-19 11:34:37 -0400
commitd9236c3f10490cd0b3fd4516af12ba62dcbae0b0 (patch)
tree9fbfa70657455d1e22eecc2ef71f5e1dfa58c5be /drivers/infiniband/hw
parent122733a189d687087364d6dc3ecc7c682554f6a0 (diff)
{NET,IB}/mlx4: Add rmap support to mlx4_assign_eq
Enable callers of mlx4_assign_eq to supply a pointer to cpu_rmap. If supplied, the assigned IRQ is tracked using rmap infrastructure. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx4/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 8a3a2037b005..a07b774e7864 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -1159,7 +1159,8 @@ static void mlx4_ib_alloc_eqs(struct mlx4_dev *dev, struct mlx4_ib_dev *ibdev)
1159 sprintf(name, "mlx4-ib-%d-%d@%s", 1159 sprintf(name, "mlx4-ib-%d-%d@%s",
1160 i, j, dev->pdev->bus->name); 1160 i, j, dev->pdev->bus->name);
1161 /* Set IRQ for specific name (per ring) */ 1161 /* Set IRQ for specific name (per ring) */
1162 if (mlx4_assign_eq(dev, name, &ibdev->eq_table[eq])) { 1162 if (mlx4_assign_eq(dev, name, NULL,
1163 &ibdev->eq_table[eq])) {
1163 /* Use legacy (same as mlx4_en driver) */ 1164 /* Use legacy (same as mlx4_en driver) */
1164 pr_warn("Can't allocate EQ %d; reverting to legacy\n", eq); 1165 pr_warn("Can't allocate EQ %d; reverting to legacy\n", eq);
1165 ibdev->eq_table[eq] = 1166 ibdev->eq_table[eq] =