diff options
author | Ismail, Mustafa <mustafa.ismail@intel.com> | 2017-06-28 09:02:45 -0500 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2017-08-09 16:08:27 +0300 |
commit | 9047811b776ce09ba06623dd2a846cc501f0065b (patch) | |
tree | ba825bb42162e4ef38a3db80fb1216b70d392290 /include/rdma | |
parent | 913cc67159bc85a96d94df301ca39c1b2c540dca (diff) | |
download | op-kernel-dev-9047811b776ce09ba06623dd2a846cc501f0065b.zip op-kernel-dev-9047811b776ce09ba06623dd2a846cc501f0065b.tar.gz |
RDMA/core: Add wait/retry version of ibnl_unicast
Add a wait/retry version of ibnl_unicast, ibnl_unicast_wait,
and modify ibnl_unicast to not wait/retry. This eliminates
the undesirable wait for future users of ibnl_unicast.
Change Portmapper calls originating from kernel to user-space
to use ibnl_unicast_wait and take advantage of the wait/retry
logic in netlink_unicast.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Chien Tin Tung <chien.tin.tung@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/rdma_netlink.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rdma/rdma_netlink.h b/include/rdma/rdma_netlink.h index 348c102..5b14667 100644 --- a/include/rdma/rdma_netlink.h +++ b/include/rdma/rdma_netlink.h @@ -64,6 +64,16 @@ int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh, __u32 pid); /** + * Send, with wait/1 retry, the supplied skb to a specific userspace PID. + * @skb: The netlink skb + * @nlh: Header of the netlink message to send + * @pid: Userspace netlink process ID + * Returns 0 on success or a negative error code. + */ +int ibnl_unicast_wait(struct sk_buff *skb, struct nlmsghdr *nlh, + __u32 pid); + +/** * Send the supplied skb to a netlink group. * @skb: The netlink skb * @nlh: Header of the netlink message to send |