Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp459417ybl; Tue, 28 Jan 2020 06:18:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyykUJ5GrGbvWgANryWqGYrCVMKlQ2fJPfL0Cv4tIa1gtGA1howlwhH+Kd0UldCFK3zy/zm X-Received: by 2002:a9d:222f:: with SMTP id o44mr16304044ota.51.1580221116656; Tue, 28 Jan 2020 06:18:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221116; cv=none; d=google.com; s=arc-20160816; b=lqLz8kBLlSZMn79FC3ktGcTcPvVGORLUxr6iM2ktXVdMjLuIE5YBGOSLRpcbkRCe1h 0iyk/Mlu+UBsMmzMgV4g9QBncrdGEunbJIZ6qqSPZPWUr6PVucAA8Z03nCNpz/z4dZfY tMPzM/8NLic0KaPKXuqJCxNMKOgSk+1FDjMJ7yFk5Wl66UPCHZ/Dec9ZPOYS7IkqVyoL 0AO+09tNwLuJKe3zpcSmKcOFqnhIMVolsV8j4NYtbivka4n9350tMWuBg0KqjZ+kcsHI 7f6djNzDLWARKCWTUYV/orupjdYix9TWhwKE319JP5B4ixJ6XpLtacWOhvmrTLy7v8gC 39EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=s1SswUeAJJxNMJjsQ8luocYO2aB7UUYkJSBjYGb/Gss=; b=EpYNKVzBUcykGkLqcLEEDN51aZah9cq6p5dEY5sCf9GDGaQ51nvPDqD6fwbaUiQrvr wcCdguhDp7UoXK5GTaZxsNGTxQoT8mKg1UMhhyWi05ZcPYJxj/PBtPx4/XvTACLCJ3nU ZQMEDZA2rDf4WpagJn6Z1JE68AAdw04RnSG+3CScCe6B6BU1sZL6fvIUZZhP8Ds21e4g 28Srzkcn8Zxodij0acVjdVHQWFhH9GW6JfEXaf6n6gIDF1Hs3gPyLruo7buSGfcizEWk m5rtCpLEefJkearTVrqTEMKRJ4RIKKdAeivyF0zCeGymTiL5axafa+TO1kRSzrn2DXap 6sqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cg03wl8G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68si5186325oia.227.2020.01.28.06.18.22; Tue, 28 Jan 2020 06:18:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cg03wl8G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730537AbgA1ORb (ORCPT + 99 others); Tue, 28 Jan 2020 09:17:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:41222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730511AbgA1OR1 (ORCPT ); Tue, 28 Jan 2020 09:17:27 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C05AA2071E; Tue, 28 Jan 2020 14:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221047; bh=fJFTj+/jb5gP5TA6pEl/juQ2cNZ8ASCeMfuC2X/Tyww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cg03wl8GbrNW1/zPellsRdpXkL6fuenT1QdGuYfmkBKd2NS8PleLaTMJ55ovM/Uym CIWXWczEtTq9EjciV/0Ll923RJsfJLv++TOSXg86weXUqfNQzNa5+rJBRr7uuwZTuI f7L+ypKUM8ggi+CtdXNT482UNi0N2aMdhDfUtdFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve Wise , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.9 066/271] iw_cxgb4: use tos when importing the endpoint Date: Tue, 28 Jan 2020 15:03:35 +0100 Message-Id: <20200128135857.522311682@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steve Wise [ 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 Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 605d50ad123cc..a29fe11d688a5 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -2044,7 +2044,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); -- 2.20.1