summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2019-02-01 21:44:41 +0100
committerJason Gunthorpe <jgg@mellanox.com>2019-02-09 00:18:06 +0100
commitcb3ba0bde881f0cb7e3945d2a266901e2bd18c92 (patch)
tree3638d57cde492e64340223261a24015d2b80f00d /drivers/infiniband/hw/cxgb4
parentiw_cxgb4: use listening ep tos when accepting new connections (diff)
downloadlinux-cb3ba0bde881f0cb7e3945d2a266901e2bd18c92.tar.xz
linux-cb3ba0bde881f0cb7e3945d2a266901e2bd18c92.zip
iw_cxgb4: use tos when importing the endpoint
import_ep() is passed the correct tos, but doesn't use it correctly. Fixes: ac8e4c69a021 ("cxgb4/iw_cxgb4: TOS support") Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index c4e4085430bf..0259198d594d 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -2072,7 +2072,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
} else {
pdev = get_real_dev(n->dev);
ep->l2t = cxgb4_l2t_get(cdev->rdev.lldi.l2t,
- n, pdev, 0);
+ n, pdev, rt_tos2priority(tos));
if (!ep->l2t)
goto out;
ep->mtu = dst_mtu(dst);