Skip to content

Commit

Permalink
RDMA/core: Don't call fill_res_entry for PD
Browse files Browse the repository at this point in the history
None of the drivers implement it, remove it.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Maor Gottlieb <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
Maor Gottlieb authored and jgunthorpe committed Jun 23, 2020
1 parent 608ca55 commit 24fd6d6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/infiniband/core/nldev.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ static int fill_res_pd_entry(struct sk_buff *msg, bool has_cap_net_admin,
struct rdma_restrack_entry *res, uint32_t port)
{
struct ib_pd *pd = container_of(res, struct ib_pd, res);
struct ib_device *dev = pd->device;

if (has_cap_net_admin) {
if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LOCAL_DMA_LKEY,
Expand All @@ -676,13 +675,7 @@ static int fill_res_pd_entry(struct sk_buff *msg, bool has_cap_net_admin,
pd->uobject->context->res.id))
goto err;

if (fill_res_name_pid(msg, res))
goto err;

if (fill_res_entry(dev, msg, res))
goto err;

return 0;
return fill_res_name_pid(msg, res);

err: return -EMSGSIZE;
}
Expand Down

0 comments on commit 24fd6d6

Please sign in to comment.