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/core: Remove query_pkey from the mandatory ops

The query_pkey() isn't mandatory for the iwarp providers, so remove this
requirement from the RDMA core.

Link: https://lore.kernel.org/r/20200714183414.61069-4-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
ab75a6cb 6f38efca

+3 -1
+3 -1
drivers/infiniband/core/device.c
··· 272 272 } mandatory_table[] = { 273 273 IB_MANDATORY_FUNC(query_device), 274 274 IB_MANDATORY_FUNC(query_port), 275 - IB_MANDATORY_FUNC(query_pkey), 276 275 IB_MANDATORY_FUNC(alloc_pd), 277 276 IB_MANDATORY_FUNC(dealloc_pd), 278 277 IB_MANDATORY_FUNC(create_qp), ··· 2360 2361 { 2361 2362 if (!rdma_is_port_valid(device, port_num)) 2362 2363 return -EINVAL; 2364 + 2365 + if (!device->ops.query_pkey) 2366 + return -EOPNOTSUPP; 2363 2367 2364 2368 return device->ops.query_pkey(device, port_num, index, pkey); 2365 2369 }