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/cxgb4: 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.

Link: https://lore.kernel.org/r/20200714183414.61069-6-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Kamal Heib and committed by
Jason Gunthorpe
ce07f1c6 c4995bd3

-11
-11
drivers/infiniband/hw/cxgb4/provider.c
··· 236 236 return 0; 237 237 } 238 238 239 - static int c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, 240 - u16 *pkey) 241 - { 242 - pr_debug("ibdev %p\n", ibdev); 243 - *pkey = 0; 244 - return 0; 245 - } 246 - 247 239 static int c4iw_query_gid(struct ib_device *ibdev, u8 port, int index, 248 240 union ib_gid *gid) 249 241 { ··· 309 317 IB_PORT_DEVICE_MGMT_SUP | 310 318 IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP; 311 319 props->gid_tbl_len = 1; 312 - props->pkey_tbl_len = 1; 313 320 props->max_msg_sz = -1; 314 321 315 322 return ret; ··· 430 439 if (err) 431 440 return err; 432 441 433 - immutable->pkey_tbl_len = attr.pkey_tbl_len; 434 442 immutable->gid_tbl_len = attr.gid_tbl_len; 435 443 436 444 return 0; ··· 493 503 .post_srq_recv = c4iw_post_srq_recv, 494 504 .query_device = c4iw_query_device, 495 505 .query_gid = c4iw_query_gid, 496 - .query_pkey = c4iw_query_pkey, 497 506 .query_port = c4iw_query_port, 498 507 .query_qp = c4iw_ib_query_qp, 499 508 .reg_user_mr = c4iw_reg_user_mr,