Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/qedr: Remove the query_pkey callback

Now that the query_pkey() isn't mandatory by the RDMA core for iwarp
providers, this callback can be removed from the common ops and moved to
the RoCE only ops within the qedr driver.

Link: https://lore.kernel.org/r/20200714183414.61069-8-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Kamal Heib and committed by
Jason Gunthorpe
ca4beeee c1c5e9fd

+1 -3
+1 -2
drivers/infiniband/hw/qedr/main.c
··· 110 110 if (err) 111 111 return err; 112 112 113 - immutable->pkey_tbl_len = 1; 114 113 immutable->gid_tbl_len = 1; 115 114 immutable->core_cap_flags = RDMA_CORE_PORT_IWARP; 116 115 immutable->max_mad_size = 0; ··· 178 179 179 180 static const struct ib_device_ops qedr_roce_dev_ops = { 180 181 .get_port_immutable = qedr_roce_port_immutable, 182 + .query_pkey = qedr_query_pkey, 181 183 }; 182 184 183 185 static void qedr_roce_register_device(struct qedr_dev *dev) ··· 221 221 .post_srq_recv = qedr_post_srq_recv, 222 222 .process_mad = qedr_process_mad, 223 223 .query_device = qedr_query_device, 224 - .query_pkey = qedr_query_pkey, 225 224 .query_port = qedr_query_port, 226 225 .query_qp = qedr_query_qp, 227 226 .query_srq = qedr_query_srq,
-1
drivers/infiniband/hw/qedr/verbs.c
··· 239 239 attr->ip_gids = true; 240 240 if (rdma_protocol_iwarp(&dev->ibdev, 1)) { 241 241 attr->gid_tbl_len = 1; 242 - attr->pkey_tbl_len = 1; 243 242 } else { 244 243 attr->gid_tbl_len = QEDR_MAX_SGID; 245 244 attr->pkey_tbl_len = QEDR_ROCE_PKEY_TABLE_LEN;