Skip to content

Commit

Permalink
IB/core: Add flow control to the portmapper netlink calls
Browse files Browse the repository at this point in the history
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: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Mustafa Ismail authored and Doug Ledford committed Aug 2, 2016
1 parent 3b8fb4b commit cea05ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/infiniband/core/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,10 @@ static void ibnl_rcv(struct sk_buff *skb)
int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh,
__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);

Expand All @@ -252,6 +255,7 @@ int __init ibnl_init(void)
return -ENOMEM;
}

nls->sk_sndtimeo = 10 * HZ;
return 0;
}

Expand Down

0 comments on commit cea05ea

Please sign in to comment.