diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-22 15:46:31 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-03-22 15:46:31 +0000 |
commit | 82d01407070e65269e21e4f7f73d06bcbfd01f3f (patch) | |
tree | 0eb86c196a2bc5b502fe20171c4bf228a3a571e6 /sys/ofed | |
parent | 303bd80ad54d615a95001f55843776b421e6972e (diff) | |
download | src-82d01407070e65269e21e4f7f73d06bcbfd01f3f.tar.gz src-82d01407070e65269e21e4f7f73d06bcbfd01f3f.zip |
Add full VNET support to the inet_get_local_port_range() function in
the LinuxKPI.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Notes
Notes:
svn path=/head/; revision=315714
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/drivers/infiniband/core/cma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/drivers/infiniband/core/cma.c b/sys/ofed/drivers/infiniband/core/cma.c index 3395f6780e3b..2427be8811d5 100644 --- a/sys/ofed/drivers/infiniband/core/cma.c +++ b/sys/ofed/drivers/infiniband/core/cma.c @@ -2503,7 +2503,7 @@ static int cma_alloc_any_port(struct idr *ps, struct rdma_id_private *id_priv) int low, high, remaining; unsigned int rover; - inet_get_local_port_range(&low, &high); + inet_get_local_port_range(&init_net, &low, &high); remaining = (high - low) + 1; rover = random() % remaining + low; retry: |