From patchwork Sun Jul 2 07:29:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kalderon, Michal" X-Patchwork-Id: 9821079 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 95C6B6035F for ; Sun, 2 Jul 2017 07:35:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 820EE26419 for ; Sun, 2 Jul 2017 07:35:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7392328334; Sun, 2 Jul 2017 07:35:26 +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 E2EDD26419 for ; Sun, 2 Jul 2017 07:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbdGBHfY (ORCPT ); Sun, 2 Jul 2017 03:35:24 -0400 Received: from mail-by2nam01on0042.outbound.protection.outlook.com ([104.47.34.42]:49664 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751648AbdGBHfW (ORCPT ); Sun, 2 Jul 2017 03:35:22 -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=otaTPCtM/ixKM2XcU46LaR0vkt/NpZ94wAgiQMWtXFM=; b=Onx623959LgqqtbMsvmdorrA0csrZRxdFLZOPuetITj0j75cugptXcHjGE2eNqDCDVSce0U9vt+vhqUZl5Z7oK10Xd2WoPfcPDKuYiAx06r6tb8FR4c7iuorFPbYk5GABr7JM7Owe3Yxcul6PTDWEIRyzg87v5EDScRMhrUtjV8= Received: from SN1PR0701CA0028.namprd07.prod.outlook.com (10.162.96.38) by BY1PR0701MB1109.namprd07.prod.outlook.com (10.160.104.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Sun, 2 Jul 2017 07:35:20 +0000 Received: from BN1BFFO11FD010.protection.gbl (2a01:111:f400:7c10::1:165) by SN1PR0701CA0028.outlook.office365.com (2a01:111:e400:5173::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11 via Frontend Transport; Sun, 2 Jul 2017 07:35:19 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1BFFO11FD010.mail.protection.outlook.com (10.58.144.73) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Sun, 2 Jul 2017 07:35:19 +0000 Received: from lb-tlvb-michal.il.qlogic.com.com (10.185.6.89) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Sun, 2 Jul 2017 00:35:15 -0700 From: Michal Kalderon To: , , , , , , , CC: Michal Kalderon , Yuval Mintz , Ariel Elior Subject: [PATCH net-next 11/12] qed: Add iWARP protocol support in context allocation Date: Sun, 2 Jul 2017 10:29:31 +0300 Message-ID: <1498980572-29519-12-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1498980572-29519-1-git-send-email-Michal.Kalderon@cavium.com> References: <1498980572-29519-1-git-send-email-Michal.Kalderon@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)(979002)(6009001)(39450400003)(39400400002)(39410400002)(39830400002)(2980300002)(428002)(199003)(189002)(9170700003)(86362001)(305945005)(189998001)(54906002)(5003940100001)(101416001)(104016004)(2906002)(106466001)(48376002)(5660300001)(47776003)(626005)(4326008)(105586002)(8936002)(81156014)(356003)(50226002)(81166006)(8676002)(2201001)(36756003)(72206003)(50986999)(50466002)(6666003)(77096006)(107886003)(478600001)(2950100002)(38730400002)(76176999)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1109; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:ovrnspm; A:1; MX:1; PTR:50-232-66-26-static.hfc.comcastbusiness.net; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD010; 1:IpKBgCTTP2H/imy8PkufSlmccMhwCVhVekVMXwo5k6iWk6yv4OhPYlpwb80e9NLKumyK8jtR/QvPFArAcd8ylxyYWNsnF9qPiYzIAKwuQHAcQpjPhT82Qwl8sL/7A07M+kdMDiTgf2gRgozYTUpIxKZueUSsN5OQ/24zab5Cilf6joM0VNRKjVWnYO9ebFDe+XyUxn8hCk332V9kmiI5wdrIvfOJD5a+zZxewaS3ibLLgEzlsUAch3JxjQqw7feMGbWiVx5euzc9DDF+tEclGucGfsIxPLkACdd9kvt7x+2KdsItoonf8OMbLT+lsN8BUm2u81aOVe2Q7clSdc+NDWsGqzVfmKOV/QTADNlgIxFNlWfIaST3rMhj3HEo1z2Mc4x5qexarnOaRedcaziMN23cI15/E882R0Gx6jp+rQugroKwcRYMd7Sjh4Is3e2d+IQoQLr8llnXBgfcZSle6WJR22xyR/qe1oq1TGPX3wmLtM/7Dj8tEGObRwBX557DvlyiONccbM2PpvsTNDq48JSilMDWn71IKhjNwg64FfxR8yMvNMsPER7wjbJXTVkCH1WwBDg6FRNRzmz+NUn3x/K0JqJ5D1Apqx2hunEjUKRPyeWhWtVNtG6lRstMerJQYsRxkgrOUyyLnAdHs6dG1j9KOD3DejkoC1/Q/ZCq77HQYa9O+e1UjcoF5MbBourSrhuqp6S43Ca2s0e18jcm7dLQ7Gfay+xtpyhkU+7wAAkCYMbhQTz6WkXxRykQgtukUjVEJ8rbxPQhVBlF/fXXd779J6tg22cgAwX4Gw4YgHgbFbkE6y6b1NKpQIkvzyQtRI0HYz6myjeGl/qdhKzSCZcTtNA9UFoTwpEMyC9S/sw= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 016c8c07-8509-4dbe-ec0e-08d4c11ce43c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY1PR0701MB1109; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1109; 3:dh7+XDU8mD3yugvAUYhXiL6Vjxy1Hn/XIqwdBWfR6bYNouTJjWLc0LecaJgPlw0jxJ7/bbjUBAP6mnBPxvQ1yeeU4j9+KF+PTtE9iHn960CbB4M9PpvooLoud7IBoQHlghm89xvhYI47hgVN5jbxI/05LQlAV2g76W5KLnN95uASPI1a96SNPX7Guj+/3fvzVi4Ekca4AtwmmoxEP28Gfet4JNMDIM+s0Q3CBbUhAoL8LlACvoVdjV8Pc6yzozMFKxeaDbSpsZu85jmtPAGPT2wGMZfdV5D/xZ9D4g/jMDa+lhMy1l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sPK8pEAkBLB9cjGK1b8OW0q+xgqbPIdRSYoIfZnWh1mKER9EYyEB7RE/Pv50/DeMIVjtmAjfQYxOlO6MCyAWg30CQulbRrWtfM9ZQfY2zfYTExQkjXi83C5wkGQ3+hpScCqrkIBzkdkbgpVbaOqDrssVyjwCMuzXB8iXmpE9IxdOd/W3Uff+trMC6WYlJMJrH+KLoPxdDyCCRcIwR0bRB8/grZYi3JNcKsiJAm5+QI60LTuvFCMyLUMU49ULC0HBuZcV7DVDMJpMI X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1109; 20:kGcWz5GehyPUrXCaVPNYyfQfLtxwDBGS0nO8BVwherzccpvEpTuC80jOReLjW1FyMHRluLgLgCtZj6kqa1eaHsaQKMSBjInrn54HsOVpVZ4EAuUYYjKzls7flKlEwKQYlBjgKtg/i1x5bCWWX8vXFBw6vC/HBRYo4Mkm903XJLRz2ELhD7bqF/d81M9GK4k/znjBis6YB1dRJjCTW7sHf/3wZ0EzuvwgCKsUBK+dRHthQf0yP7cQQJ0oD2SWA4q06biA37nbMi+Yu9XxQrjnnOJK2qfZf40YQf8PC98pLzzZ9PWoN5iInlfdlPQzg+lanEFaPzb+nMCDDCbtttw+tTHtVeVWN2chNISFXdwTWc5sDUyOIRlyb+6ex2TApVU42+sxI5MvAwmLHSei1TDz6hYAA3BjzFk66R9362w311S2sJnN7bIgZVTlQfzQsNKbDQ23/n2O8IFXJ12XRCAW8iRUQAi2kSeIjqNfR0TgLtDn4zD3DlR331plv95F5e5X X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(13016025)(13018025)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY1PR0701MB1109; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY1PR0701MB1109; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1109; 4:7+Wt2cEEqbnaooHx2qZRSVR5/xfzrkoYVLj+MnfY?= =?us-ascii?Q?W7IKCv4oFISgyfrFo/iVKshObx/dFRrPP3l3U03BV3x8UYlhH8/3NZLuuVc0?= =?us-ascii?Q?oRvARSGPhkdZmuuDXVA/3asCVDujC2FUNsr0D3UtuGTufV/28ZProz7lsXmn?= =?us-ascii?Q?HjSo63AcTia/pWSKeYT1sIJMLxlduk6NIlQXg1pyHHOVZnpbhA0nrXdftcCB?= =?us-ascii?Q?2C0/tcKs2k5kZBkixRv708dzWBX0kvlMEeFs2/vo07R7ElOsQvlX0ohEsMy8?= =?us-ascii?Q?N4Zwj0ZPeX8jGL3DuVh46nXh+jKw3lUq6uSSbGTPVaLGBpEkKpMkohsXxM5d?= =?us-ascii?Q?gyVLXZXea3LqpwLFLzEHU8l0mbtZc5NyJ/EGd7fx+Ox/imBoYMZ6BjZjHkzN?= =?us-ascii?Q?dN6SlvgSMEgGzKE89ggKvtXtwESGWDimh/qq7hDJc6TB+PA+Uq3Pk8880WlO?= =?us-ascii?Q?DI0s6f4vMAddFkL78UtefTT2fwHOgXky4NliQrPvAHPDoD8Ox2lkTdRAXLL9?= =?us-ascii?Q?tNY4E3z/4WSmAV9smM7b2CSJcuzgUj+HKcZoNOMHMMcHc9dEUJ9c3Ct5Teq4?= =?us-ascii?Q?MXEWOOUEtSE8cmFpYsh6zAvCXP/iHWCDez0SY9uzEWMR5FREbfINZ88pLUjr?= =?us-ascii?Q?aQFuatkeJ0dtnT2KSmZD61YKoFwBI82njK5cdKBFH2TviXIHbOnBxIrwnxsG?= =?us-ascii?Q?am2CA3UeqQ16OUwahSwOnbc9ZnvFee91H5MJJs8Wnkyfe4UQG2cbfPPUJYQL?= =?us-ascii?Q?KqeJ9NqUL61ccEewtG5u1UQwISOU2z+1KMyQRZ9uyA/MurgCqU1e4m4kN2Rw?= =?us-ascii?Q?MYTR8uUPC48OHdzvXnfwBu1oUyxJi+3Cks6FeT+habNfLs09UQ7BTtJdYjvR?= =?us-ascii?Q?VSM+OY+/cyoavzOPPcCvJYyEQ8noicYd/+9SNSDtmbgYJwvJEi7PcqB8PYpZ?= =?us-ascii?Q?WitzrfrrHKKVSdjGRCWGI7jJPdseVMHEwk4PJX9tKFyCihsab3t3VLCzuAvI?= =?us-ascii?Q?QsCNnOUZfU3Rd6mVysKU8t5jQe3akfgT915gIGz9EVg6BxSy+qx01mGOt2DT?= =?us-ascii?Q?SOs7/ygSX/2VHRxl9NRR0g94mYNuXqAR/QJY+h5Ix2y0VdYuRpXJBptwt85g?= =?us-ascii?Q?zJDV7r9s7bLzwuvbwaFLMeuFcBIdIQ8fjAzH+IB2SWywVXHzmXtG0uk1qcr9?= =?us-ascii?Q?WJMCBGBEQHTjAI+Gh3HLGWgzQRkRDPQRs7QGFwWrxidoSJBygPo4JjSwnRfM?= =?us-ascii?Q?F167sNlNwZbIt7j+SvYzTBpK3be8GxaMEI1vMW15cnenz8XA0xSIbqKQrltg?= =?us-ascii?Q?Lw=3D=3D?= X-Forefront-PRVS: 03569407CC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1109; 23:RsvZJz6j7r7BBzYwcJ7QhucF/FIEcgNxsO0DFYV?= =?us-ascii?Q?tzLZN9BerykT0Z5wBe9yoilI+1m/1nsv1QxEz8XLn5fmeANCgCjDQSBvm8v/?= =?us-ascii?Q?wrHz9+hDUllNld/5UuezDgjVb9J5Iecozlb6qXBUbNFAUMfWWM7/akCAYa0X?= =?us-ascii?Q?gSWvrCCe4EJ8gYGfEOQdGU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ata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1109; 7:S+TUr5oSN1Z8L311jGAeB3kLT9KY0nv5jf1bE1k6lMuGQU6rhYVbaJmOK2LZuaSLhHcLdE3FrGtragXBaTh3UHfwxkFiEfcvLHV+wNiINuD+7QVVPovAg7urYqaV/gAoP+By0uaFAJqPGHbmpWlgkj3PR0LrPrruNFFnciRKb9WU/+YwDg3wqGIOynMOUMRp18A1mNfjBXtchVx3Gycpl1ESUTM9NDeXrhFfhMdLNTdXLM4bbUVU58BpxJ5+x1uuVrtwnjxZJUpacOsADkd6ZckNs/cKQxE6bKb8Cogq9UO64KlX3ai+0FhJJjUHm/fYWWGKtT6bO4ivLwSIACrQ0diL4CBdo3avPl3aSHgvw9O/lpHuc+9ZDgp4hUrEd1GVYQpqU6XSbV3IQYAipaMPCdKSPgWE6ug+32+uMguWn07ZWnninDURWNJSMnWqju2uGKEGx2VQU1nLLHZ1mQKTJkJk7uAntS+VZP4/FAdlBmhOCiZZVInDV1LJEEJT4kCFcPKUpUbdb8kEdKEQcbUMc2eJwIt7rr6DkYsWdISO4wKGjrX+QgELMYIdxRWJkUd1vOWKxFTYCYLXytXwr4nfFTrO2FZzUeS0Hz8CfptqouULLIBaUD77tdbJ6ypk6/zg0uG4rANAFCFlqoxFBRsOX4DMtvavcR/6sJt+27a77/TGAiGqgiZY5MSQBl54gosl3iorGemV3R0Ydqffi0IjZVnaPR0Y/jxLgGnC3AukaTlTqY1LI/7eiQHRPKmJ9rcya2QPEt8Gck6IgAos/Zl+Pu+ZDHEbZrCvDnTGuZFeLDM= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2017 07:35:19.5093 (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: BY1PR0701MB1109 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 When computing how much memory is required for the different hw clients iWARP protocol should be taken into account Signed-off-by: Michal Kalderon Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_cxt.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_cxt.c b/drivers/net/ethernet/qlogic/qed/qed_cxt.c index 38716f7..af106be 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_cxt.c +++ b/drivers/net/ethernet/qlogic/qed/qed_cxt.c @@ -246,14 +246,16 @@ struct qed_cxt_mngr { static bool src_proto(enum protocol_type type) { return type == PROTOCOLID_ISCSI || - type == PROTOCOLID_FCOE; + type == PROTOCOLID_FCOE || + type == PROTOCOLID_IWARP; } static bool tm_cid_proto(enum protocol_type type) { return type == PROTOCOLID_ISCSI || type == PROTOCOLID_FCOE || - type == PROTOCOLID_ROCE; + type == PROTOCOLID_ROCE || + type == PROTOCOLID_IWARP; } static bool tm_tid_proto(enum protocol_type type) @@ -2068,6 +2070,11 @@ static void qed_rdma_set_pf_params(struct qed_hwfn *p_hwfn, num_srqs = min_t(u32, 32 * 1024, p_params->num_srqs); switch (p_hwfn->hw_info.personality) { + case QED_PCI_ETH_IWARP: + /* Each QP requires one connection */ + num_cons = min_t(u32, IWARP_MAX_QPS, p_params->num_qps); + proto = PROTOCOLID_IWARP; + break; case QED_PCI_ETH_ROCE: num_qps = min_t(u32, ROCE_MAX_QPS, p_params->num_qps); num_cons = num_qps * 2; /* each QP requires two connections */ @@ -2103,6 +2110,8 @@ int qed_cxt_set_pf_params(struct qed_hwfn *p_hwfn, u32 rdma_tasks) qed_cxt_set_proto_cid_count(p_hwfn, PROTOCOLID_CORE, core_cids, 0); switch (p_hwfn->hw_info.personality) { + case QED_PCI_ETH_RDMA: + case QED_PCI_ETH_IWARP: case QED_PCI_ETH_ROCE: { qed_rdma_set_pf_params(p_hwfn,