]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
RDMA/cxgb4: Remove the query_pkey callback
authorKamal Heib <kamalheib1@gmail.com>
Tue, 14 Jul 2020 18:34:12 +0000 (21:34 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Jul 2020 19:18:16 +0000 (16:18 -0300)
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>
drivers/infiniband/hw/cxgb4/provider.c

index 1d3ff59e4060b88683d6ee351b9ed212faa477f3..6c579d2d399749e5c9fbaf2bc532903ebd4c2da8 100644 (file)
@@ -236,14 +236,6 @@ static int c4iw_allocate_pd(struct ib_pd *pd, struct ib_udata *udata)
        return 0;
 }
 
-static int c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index,
-                          u16 *pkey)
-{
-       pr_debug("ibdev %p\n", ibdev);
-       *pkey = 0;
-       return 0;
-}
-
 static int c4iw_query_gid(struct ib_device *ibdev, u8 port, int index,
                          union ib_gid *gid)
 {
@@ -317,7 +309,6 @@ static int c4iw_query_port(struct ib_device *ibdev, u8 port,
            IB_PORT_DEVICE_MGMT_SUP |
            IB_PORT_VENDOR_CLASS_SUP | IB_PORT_BOOT_MGMT_SUP;
        props->gid_tbl_len = 1;
-       props->pkey_tbl_len = 1;
        props->max_msg_sz = -1;
 
        return ret;
@@ -439,7 +430,6 @@ static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num,
        if (err)
                return err;
 
-       immutable->pkey_tbl_len = attr.pkey_tbl_len;
        immutable->gid_tbl_len = attr.gid_tbl_len;
 
        return 0;
@@ -503,7 +493,6 @@ static const struct ib_device_ops c4iw_dev_ops = {
        .post_srq_recv = c4iw_post_srq_recv,
        .query_device = c4iw_query_device,
        .query_gid = c4iw_query_gid,
-       .query_pkey = c4iw_query_pkey,
        .query_port = c4iw_query_port,
        .query_qp = c4iw_ib_query_qp,
        .reg_user_mr = c4iw_reg_user_mr,