From patchwork Tue Oct 3 11:47:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9982305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C00416029B for ; Tue, 3 Oct 2017 11:49:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3522288C4 for ; Tue, 3 Oct 2017 11:49:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8267288D7; Tue, 3 Oct 2017 11:49:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 381A6288C4 for ; Tue, 3 Oct 2017 11:49:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbdJCLs4 (ORCPT ); Tue, 3 Oct 2017 07:48:56 -0400 Received: from mail-sn1nam02on0046.outbound.protection.outlook.com ([104.47.36.46]:29248 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751823AbdJCLsy (ORCPT ); Tue, 3 Oct 2017 07:48:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xZCAzCoeB+E2GVNGNyEpFnHgzbuemkJSCOOJNKGvPlo=; b=dvcE2WtxcjgdXFmJHgrafD9NQCAAR5BUVIilw6vlWWVVks8sHxSdYOduLSk/Zms5e6UuDsTBjrbodotc7Mt7FphqyhDrXuK7rGRrTQ5A2ksyYchbkhjdU9fts2U8GA6l8HMtkk7ICuAGgdRgOskZwE6/O0zVh5ZL3j4DBrMXiB4= Received: from SN1PR0701CA0032.namprd07.prod.outlook.com (10.162.96.42) by BY2PR07MB890.namprd07.prod.outlook.com (10.242.44.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 3 Oct 2017 11:48:52 +0000 Received: from BN1AFFO11FD017.protection.gbl (2a01:111:f400:7c10::108) by SN1PR0701CA0032.outlook.office365.com (2a01:111:e400:5173::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Tue, 3 Oct 2017 11:48:52 +0000 Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD017.mail.protection.outlook.com (10.58.52.77) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Tue, 3 Oct 2017 11:48:51 +0000 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 3 Oct 2017 04:48:48 -0700 From: Ram Amrani To: CC: , , Ram Amrani , Michal Kalderon Subject: [PATCH for-rc 2/2] RDMA/qedr: Parse vlan priority as sl Date: Tue, 3 Oct 2017 14:47:27 +0300 Message-ID: <1507031247-7972-3-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1507031247-7972-1-git-send-email-Ram.Amrani@cavium.com> References: <1507031247-7972-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(2980300002)(428002)(189002)(199003)(16586007)(76176999)(47776003)(6916009)(104016004)(8936002)(81156014)(81166006)(2950100002)(77096006)(54906003)(101416001)(5003940100001)(107886003)(4326008)(6666003)(50466002)(105586002)(48376002)(106466001)(50226002)(36756003)(2351001)(50986999)(189998001)(2906002)(72206003)(305945005)(69596002)(316002)(356003)(8676002)(86362001)(5660300001)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB890; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD017; 1:nXcszt0xx581dIt75FAt/eitFXWmwgjvouy44udXTVtDGSbfOZZ/tRAqjYsx5UJoz7kZ0920duFNT2YJwFIqRsrtFP2SSvHscPKdlwSauadeumjtHfqxm809GfgMUdpz X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 674d46e6-fc3f-45a6-cc7d-08d50a54b7c7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR07MB890; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB890; 3:YVTCgPn+bLqX/2y2Var/vXQ6ucoPlst5O0a89yKhPAc8mMQTb1sLxn5abfRK+NkFMsjNJ1Ho2/rAjTKZsbiIELtmAvD6GuZd5ZUSCWAgeFfrNLUy8BWRvjDamkhXYOWUDGC4wnSmCx1FPHxpDR8TExUPy1xBtwiwYQP7z/8f618KghKyr+BtAP1TMbu8M5BiUoJymiV2UGRpjc2GO+ZJMWB+fBl8L1kApDHV4wa+qm1hLr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/qLMY4tABvdWz9CaTaiBLPYU1MCTnyw/llCxR5kax52Jamd/NQ88dpognKD4YOIOo9xF14FUjPlZMigWgwJTG0/Puh0HmRf/w9A6po+phwqrbOQIBDdUo9mw4tj14sIRCxwdn1TRFcBFZbYfYao4sqjVuakQcEn2JZgCTt1oFT+DYJrGInZAJhPP10avhg0kgR9XM0Ape6uNedX92iVUpN X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6041248)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR07MB890; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR07MB890; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB890; 4:fIvWPlSd2GSx8dHtiFx/aPGrNQk7U/HMh0eqa+LcT+TGZxA1GJgJYP1vWa5uWIIrq8ICERH0JzTSbQihA7GsvgledENDivvpjQlGuFiGPW1+rkIP4A4iPG1E/fyHWklKjKAyZ4sUaH24VXMjSu9Z631i12SOT3wV1C3X8uvOfAMvyk2mZMZqQvPA8TDPAPitwm3b61+qAZ1KdWZ+gH8qhvKZiYNjX0cR7MqdG3Q3cUsxAErxLqgB53d1R9999FON X-Forefront-PRVS: 044968D9E1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB890; 23:WElkebni40pE89jmyqIa+YffmNgbo8c1CczOpp09SO?= =?us-ascii?Q?KAH2DcVqJVIEs+9epLCDc3bMOYmegh52a8yJ0rGTlai+b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1R8sZ5nzKvggkhof3WZeS4aQnafddzlspl/TZJmX2sLWTaRV?= =?us-ascii?Q?7kOWDP1zXu4NzHtG0SKU5b?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB890; 6:IYYVArQuJdzVbhuKy4uD/WIdua6/rVvFEe4Wc1jmxbQd1Vw5uR0sVrM8eYqkREs0UXkrDheuwAz+DsilA+TGK/AEZrHmVxtznBLBhMjDT+NSXprRx8iBufMTutYW6Qz7xAGsDM9gn8m++095sH1cxXvkf2zIfdZFGzkY2ZI7xjyNK8RSWWz1QM5bGgCLEZRXrIXwJdyk1QBB38SpVoxhpz/8MOM9tTIJSoZOKthJuK2S20XmnOxiCg6B1Ghxin8RF4E3fTQiV7rJw8dfy/m4I+h2/5o5ZDnjTuqlBWBmsKfVRbv9amffMJSD9j42gGrfClzFVMZWTw9g/Ox0yrWA8A==; 5:2LWEbdc0X1y/NcFqH8kyIfl3XZqgHfR6O3UV5DmWPVI1jrKeRGe+P9d4xZhrk4E0/e4r1bdyMenU5C4V1pECYvNcRfar/skA3vWgezIiEZ0KXio/uwjfJwKtnoPV62p+WcsQ6jINTtizF+JMx0QgRw==; 24:lkrjCDP2Z4xyh3EqN9uOZKVPaFfgHvLXT+Pwvqv3x40nUhAh05aeX+EN15yrEL576IlyHWgU5GT4Mh97Qv22/n3Ca1tsVS6a7FfmKLhLJ8M=; 7:xJyeOFumBK5sgy6Z4nJnqOzVOo5e/w47q2ADhU0nj/IPH2QBfo9Wp4p3ASdCltCFItjIgsrKorst3xrWXCMd2PB5fsFtR+PbH1xtrDlWZC8kCDI1OWiPfzMMSV4IF9Y+qkU6vfQJ100PWZbEjmR8/o28323zf3nojWkZW+kJZBARSVoSuj8YXfAIuffUP+P5DY3GMKf/IwsqNy+3fTocn/FpIDD2L2Gxpm4InJPbzCo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 11:48:51.6216 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB890 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Parse the vlan priority from the vlan tag and configure it to the WC's sl field. Fixes: abd49676c707 ("qed: Add RoCE ll2 & GSI support") Signed-off-by: Ram Amrani Signed-off-by: Michal Kalderon --- drivers/infiniband/hw/qedr/qedr_cm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/qedr/qedr_cm.c b/drivers/infiniband/hw/qedr/qedr_cm.c index 5ebbe49..ad89653 100644 --- a/drivers/infiniband/hw/qedr/qedr_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_cm.c @@ -719,6 +719,8 @@ int qedr_gsi_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) if (vlan_id) { wc[i].wc_flags |= IB_WC_WITH_VLAN; wc[i].vlan_id = vlan_id; + wc[i].sl = (qp->rqe_wr_id[qp->rq.cons].vlan & + VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; } qedr_inc_sw_cons(&qp->rq);