Skip to content

Commit 01949d0

Browse files
Haggai Abramonvskydavem330
authored andcommitted
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>
1 parent 7db22ff commit 01949d0

7 files changed

Lines changed: 564 additions & 73 deletions

File tree

‎drivers/infiniband/hw/mlx5/srq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd,
302302

303303
in->ctx.pd = cpu_to_be32(to_mpd(pd)->pdn);
304304
in->ctx.db_record = cpu_to_be64(srq->db.dma);
305-
err = mlx5_core_create_srq(dev->mdev, &srq->msrq, in, inlen);
305+
err = mlx5_core_create_srq(dev->mdev, &srq->msrq, in, inlen, is_xrc);
306306
kvfree(in);
307307
if (err) {
308308
mlx5_ib_dbg(dev, "create SRQ failed, err %d\n", err);

‎drivers/net/ethernet/mellanox/mlx5/core/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ obj-$(CONFIG_MLX5_CORE) += mlx5_core.o
22

33
mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \
44
health.o mcg.o cq.o srq.o alloc.o qp.o port.o mr.o pd.o \
5-
mad.o
6-
mlx5_core-$(CONFIG_MLX5_CORE_EN) += wq.o flow_table.o vport.o transobj.o \
5+
mad.o transobj.o
6+
mlx5_core-$(CONFIG_MLX5_CORE_EN) += wq.o flow_table.o vport.o \
77
en_main.o en_flow_table.o en_ethtool.o en_tx.o en_rx.o \
88
en_txrx.o

0 commit comments

Comments
 (0)