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/siw: 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-5-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

authored by

Kamal Heib and committed by
Jason Gunthorpe
c4995bd3 ab75a6cb

-11
-1
drivers/infiniband/sw/siw/siw_main.c
··· 288 288 .post_srq_recv = siw_post_srq_recv, 289 289 .query_device = siw_query_device, 290 290 .query_gid = siw_query_gid, 291 - .query_pkey = siw_query_pkey, 292 291 .query_port = siw_query_port, 293 292 .query_qp = siw_query_qp, 294 293 .query_srq = siw_query_srq,
-9
drivers/infiniband/sw/siw/siw_verbs.c
··· 176 176 attr->active_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); 177 177 attr->phys_state = sdev->state == IB_PORT_ACTIVE ? 178 178 IB_PORT_PHYS_STATE_LINK_UP : IB_PORT_PHYS_STATE_DISABLED; 179 - attr->pkey_tbl_len = 1; 180 179 attr->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_DEVICE_MGMT_SUP; 181 180 attr->state = sdev->state; 182 181 /* ··· 203 204 if (rv) 204 205 return rv; 205 206 206 - port_immutable->pkey_tbl_len = attr.pkey_tbl_len; 207 207 port_immutable->gid_tbl_len = attr.gid_tbl_len; 208 208 port_immutable->core_cap_flags = RDMA_CORE_PORT_IWARP; 209 209 210 - return 0; 211 - } 212 - 213 - int siw_query_pkey(struct ib_device *base_dev, u8 port, u16 idx, u16 *pkey) 214 - { 215 - /* Report the default pkey */ 216 - *pkey = 0xffff; 217 210 return 0; 218 211 } 219 212
-1
drivers/infiniband/sw/siw/siw_verbs.h
··· 46 46 struct ib_udata *udata); 47 47 int siw_query_port(struct ib_device *base_dev, u8 port, 48 48 struct ib_port_attr *attr); 49 - int siw_query_pkey(struct ib_device *base_dev, u8 port, u16 idx, u16 *pkey); 50 49 int siw_query_gid(struct ib_device *base_dev, u8 port, int idx, 51 50 union ib_gid *gid); 52 51 int siw_alloc_pd(struct ib_pd *base_pd, struct ib_udata *udata);