diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-06-15 14:20:39 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2017-08-10 13:21:56 +0300 |
commit | 647c75ac59a48a54dafd4475d14a645a0025a4f4 (patch) | |
tree | 9d4d0ecdb59fba9abbd3022e64b99c348429339a /drivers/infiniband/core/addr.c | |
parent | c729943a77c108253c46b2d50c8a15a888facf4c (diff) | |
download | op-kernel-dev-647c75ac59a48a54dafd4475d14a645a0025a4f4.zip op-kernel-dev-647c75ac59a48a54dafd4475d14a645a0025a4f4.tar.gz |
RDMA/netlink: Convert LS to doit callback
RDMA_NL_LS protocol is actually does not dump anything,
but sets data and it should be handled by doit callback.
This patch actually converts RDMA_NL_LS to doit callback, while
preserving IWCM and RDMA_CM flows through netlink_dump_start().
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Diffstat (limited to 'drivers/infiniband/core/addr.c')
-rw-r--r-- | drivers/infiniband/core/addr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 7310ece9..16b3bdf 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c @@ -129,10 +129,9 @@ static void ib_nl_process_good_ip_rsep(const struct nlmsghdr *nlh) } int ib_nl_handle_ip_res_resp(struct sk_buff *skb, - struct netlink_callback *cb) + struct nlmsghdr *nlh, + struct netlink_ext_ack *extack) { - const struct nlmsghdr *nlh = (struct nlmsghdr *)cb->nlh; - if ((nlh->nlmsg_flags & NLM_F_REQUEST) || !(NETLINK_CB(skb).sk)) return -EPERM; |