From patchwork Tue Oct 3 08:54:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kalderon, Michal" X-Patchwork-Id: 9981947 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 29DCB6029B for ; Tue, 3 Oct 2017 08:56:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C5F31FFCA for ; Tue, 3 Oct 2017 08:56:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11145286FD; Tue, 3 Oct 2017 08:56:02 +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 77C1F1FFCA for ; Tue, 3 Oct 2017 08:56:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751059AbdJCIzw (ORCPT ); Tue, 3 Oct 2017 04:55:52 -0400 Received: from mail-sn1nam01on0087.outbound.protection.outlook.com ([104.47.32.87]:5216 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751277AbdJCIzu (ORCPT ); Tue, 3 Oct 2017 04:55:50 -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=STbZrrW/Z1mYgk4VMG4ZlpuaJ8AkKsZPR46nMk1GsCg=; b=bTGl0s9Rshr62oKVACsKuhCC5CsM9w+3HRygeazp6TE4W9Xju8KHkYHriT6GzUDTfGIroNuk72X3wB03wCC/WJ/oeMya2d0K3ZZg9MeQUdHcWquEuYU/Mp2KILcwpU2yNqTPQ7FtUtAYiE/qtjNdT/SQDDRom0vBJ39ehlvKJtk= Received: from SN4PR0701CA0010.namprd07.prod.outlook.com (10.161.192.148) by BY2PR07MB892.namprd07.prod.outlook.com (10.242.44.145) 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 08:55:48 +0000 Received: from BY2FFO11FD027.protection.gbl (2a01:111:f400:7c0c::127) by SN4PR0701CA0010.outlook.office365.com (2603:10b6:803:28::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.9 via Frontend Transport; Tue, 3 Oct 2017 08:55:48 +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 BY2FFO11FD027.mail.protection.outlook.com (10.1.15.216) 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 08:55:47 +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; Tue, 3 Oct 2017 01:55:45 -0700 From: Michal Kalderon To: CC: , , , Michal Kalderon , "Ariel Elior" Subject: [PATCH v2 net-next 04/12] qed: Fix initialization of ll2 offload feature Date: Tue, 3 Oct 2017 11:54:54 +0300 Message-ID: <1507020902-4952-5-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1507020902-4952-1-git-send-email-Michal.Kalderon@cavium.com> References: <1507020902-4952-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)(6009001)(376002)(346002)(2980300002)(428002)(199003)(189002)(2906002)(16586007)(8936002)(356003)(54906003)(50226002)(189998001)(86362001)(72206003)(316002)(69596002)(8676002)(81156014)(81166006)(478600001)(77096006)(48376002)(2351001)(101416001)(104016004)(106466001)(4326008)(50466002)(36756003)(6666003)(305945005)(105586002)(5003940100001)(5660300001)(6916009)(2950100002)(47776003)(107886003)(50986999)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB892; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD027; 1:kYEVQgYlZXDuNtbC+mUGcLwFlYA5eDdgpx9IV4c6Vohf8RhXu6hpvnMdU9OCDm3TVajo/Qyhy7PADpCLR+pCf0ILC3tPIbqzBuaLJ8rIKSk46Uzwt1x87UfoGnXAUG4m X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e0caa43-e400-4fb9-b300-08d50a3c8a3d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR07MB892; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB892; 3:TrnNVNAZNve783HMwCkksD5WUNPDycUKcw0cDgEkc1Qie5j3I2NwTKaAMTs1ITL2UdqjVYoJwrmAk09MqcyD+q1jUiAHKfdlVNYxpWAq2Y8PnIK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qSITd0k8P3jaTtlMzVyM2Xw6fAjxsI0z3Cm8AqdujrZqubnvqcA+lGP5rMb/1dKzzJDMR1Op9rowgxiQD7FJTs0MfJAycCJVEkZgVRmuerZUdub9BgnfF7uVYp85nmBKpukTNwfr77Ms/b8me4N9whZy/MFUcDUiw7i6ZLqxD1MkCYgAxwMFOoOnsFFYBuDgbPsbaqI1qqFQJCsraeAnRxqdjovnAqAsNBTdmh8EHT//kXl4GW68MieDL/tJqyvEehJ6U3Zm4oiC86JOTo4/NXeUeYnjhsCpJ6OkB8w2qK2t/OaPCkuwYqnf4V8ZHhMJ6Z; 4:eGbis0F6nu4eLLcJ+VJZgSsBHN7S/CtDhkF5iWQH3FtkLzW1ziQCX5w1J5bMUB5UNKeekX7xWme/Yut2Mje2OOuLtvEF5SdTfKCoeUUjxcizYFDxa6Sbo9phlROin01+PTJxPXuEmrterBNbj2usz6kkI+sSJ2cTxuf4HgwC6PWagnUQCgMAuOERfVEZXWnEY0a/+Q4+nP2PTAB++fYo+7g0CRPW6d9mEdAxSrpPuhBa6CoTyFbfKuTqW73m4wXG 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)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(20161123558100)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR07MB892; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR07MB892; X-Forefront-PRVS: 044968D9E1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB892; 23:E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amDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 08:55:47.4224 (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: BY2PR07MB892 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 enable_ip_cksum, enable_l4_cksum, calc_ip_len were added in commit stated below but not passed through to FW. This was OK until now as it wasn't used, but is required for the iWARP unaligned flow Fixes:7c7973b2ae27 ("qed: LL2 to use packed information for tx") Signed-off-by: Michal Kalderon Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c index ad67d36..6d14474 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c @@ -1621,6 +1621,9 @@ static void qed_ll2_prepare_tx_packet_set(struct qed_hwfn *p_hwfn, SET_FIELD(bd_data, CORE_TX_BD_DATA_START_BD, 0x1); SET_FIELD(bd_data, CORE_TX_BD_DATA_NBDS, pkt->num_of_bds); SET_FIELD(bd_data, CORE_TX_BD_DATA_ROCE_FLAV, roce_flavor); + SET_FIELD(bd_data, CORE_TX_BD_DATA_IP_CSUM, !!(pkt->enable_ip_cksum)); + SET_FIELD(bd_data, CORE_TX_BD_DATA_L4_CSUM, !!(pkt->enable_l4_cksum)); + SET_FIELD(bd_data, CORE_TX_BD_DATA_IP_LEN, !!(pkt->calc_ip_len)); start_bd->bd_data.as_bitfield = cpu_to_le16(bd_data); DMA_REGPAIR_LE(start_bd->addr, pkt->first_frag); start_bd->nbytes = cpu_to_le16(pkt->first_frag_len);