diff options
author | Haggai Abramonvsky <hagaya@mellanox.com> | 2015-06-04 19:30:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-04 16:41:01 -0700 |
commit | 01949d0109ee5fae33752f0db99a36f1619e1873 (patch) | |
tree | 46cafa0aa30e02afeee05ee7025fce98cc1b9cac /drivers/infiniband | |
parent | 7db22ffb5b09d9b77baf057ca034d966e58df1e1 (diff) | |
download | op-kernel-dev-01949d0109ee5fae33752f0db99a36f1619e1873.zip op-kernel-dev-01949d0109ee5fae33752f0db99a36f1619e1873.tar.gz |
net/mlx5_core: Enable XRCs and SRQs when using ISSI > 0
When working in ISSI > 0 mode, the model exposed by the device for
XRCs and SRQs is different. XRCs use XRC SRQs and plain SRQs are based
on RPM (Receive Memory Pool).
Add helper functions to create, modify, query, and arm XRC SRQs and RMPs.
Signed-off-by: Haggai Abramovsky <hagaya@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mlx5/srq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/srq.c b/drivers/infiniband/hw/mlx5/srq.c index e8e8e94..e008505 100644 --- a/drivers/infiniband/hw/mlx5/srq.c +++ b/drivers/infiniband/hw/mlx5/srq.c @@ -302,7 +302,7 @@ struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd, in->ctx.pd = cpu_to_be32(to_mpd(pd)->pdn); in->ctx.db_record = cpu_to_be64(srq->db.dma); - err = mlx5_core_create_srq(dev->mdev, &srq->msrq, in, inlen); + err = mlx5_core_create_srq(dev->mdev, &srq->msrq, in, inlen, is_xrc); kvfree(in); if (err) { mlx5_ib_dbg(dev, "create SRQ failed, err %d\n", err); |