]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iw_cxgb4: use tos when importing the endpoint
authorSteve Wise <swise@opengridcomputing.com>
Fri, 1 Feb 2019 20:44:41 +0000 (12:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:21 +0000 (14:50 +0100)
[ Upstream commit cb3ba0bde881f0cb7e3945d2a266901e2bd18c92 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/cxgb4/cm.c

index 1b3d014fa1d6ee5aeacc3650871c4a05a2c0bd78..3c8b7eae918c564a0f768bb24a70da381383a50f 100644 (file)
@@ -2076,7 +2076,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);