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/i40iw: 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-7-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
c1c5e9fd ce07f1c6

-19
-19
drivers/infiniband/hw/i40iw/i40iw_verbs.c
··· 101 101 props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | 102 102 IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP; 103 103 props->gid_tbl_len = 1; 104 - props->pkey_tbl_len = 1; 105 104 props->active_width = IB_WIDTH_4X; 106 105 props->active_speed = 1; 107 106 props->max_msg_sz = I40IW_MAX_OUTBOUND_MESSAGE_SIZE; ··· 2458 2459 if (err) 2459 2460 return err; 2460 2461 2461 - immutable->pkey_tbl_len = attr.pkey_tbl_len; 2462 2462 immutable->gid_tbl_len = attr.gid_tbl_len; 2463 2463 2464 2464 return 0; ··· 2613 2615 return 0; 2614 2616 } 2615 2617 2616 - /** 2617 - * i40iw_query_pkey - Query partition key 2618 - * @ibdev: device pointer from stack 2619 - * @port: port number 2620 - * @index: index of pkey 2621 - * @pkey: pointer to store the pkey 2622 - */ 2623 - static int i40iw_query_pkey(struct ib_device *ibdev, 2624 - u8 port, 2625 - u16 index, 2626 - u16 *pkey) 2627 - { 2628 - *pkey = 0; 2629 - return 0; 2630 - } 2631 - 2632 2618 static const struct ib_device_ops i40iw_dev_ops = { 2633 2619 .owner = THIS_MODULE, 2634 2620 .driver_id = RDMA_DRIVER_I40IW, ··· 2652 2670 .post_send = i40iw_post_send, 2653 2671 .query_device = i40iw_query_device, 2654 2672 .query_gid = i40iw_query_gid, 2655 - .query_pkey = i40iw_query_pkey, 2656 2673 .query_port = i40iw_query_port, 2657 2674 .query_qp = i40iw_query_qp, 2658 2675 .reg_user_mr = i40iw_reg_user_mr,