Commit cea05ead authored by Mustafa Ismail's avatar Mustafa Ismail Committed by Doug Ledford

IB/core: Add flow control to the portmapper netlink calls

During connection establishment with a large number of
connections, it is possible that the connection requests
might fail. Adding flow control prevents this failure.
Change ibnl_unicast to use blocking to enable flow control.
Signed-off-by: default avatarMustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: default avatarFaisal Latif <faisal.latif@intel.com>
Signed-off-by: default avatarShiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 3b8fb4b8
...@@ -229,7 +229,10 @@ static void ibnl_rcv(struct sk_buff *skb) ...@@ -229,7 +229,10 @@ static void ibnl_rcv(struct sk_buff *skb)
int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh, int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh,
__u32 pid) __u32 pid)
{ {
return nlmsg_unicast(nls, skb, pid); int err;
err = netlink_unicast(nls, skb, pid, 0);
return (err < 0) ? err : 0;
} }
EXPORT_SYMBOL(ibnl_unicast); EXPORT_SYMBOL(ibnl_unicast);
...@@ -252,6 +255,7 @@ int __init ibnl_init(void) ...@@ -252,6 +255,7 @@ int __init ibnl_init(void)
return -ENOMEM; return -ENOMEM;
} }
nls->sk_sndtimeo = 10 * HZ;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment