iw_cxgb4: use tos when importing the endpoint
authorSteve Wise <swise@opengridcomputing.com>
Fri, 1 Feb 2019 20:44:41 +0000 (12:44 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:18:06 +0000 (16:18 -0700)
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>
drivers/infiniband/hw/cxgb4/cm.c

index c4e4085..0259198 100644 (file)
@@ -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);