Message ID | 1506932638-26268-5-git-send-email-Michal.Kalderon@cavium.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 2E2B86029B for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 2 Oct 2017 08:25:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2085F28952 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 2 Oct 2017 08:25:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 157F228955; Mon, 2 Oct 2017 08:25:05 +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 804BB28952 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 2 Oct 2017 08:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751145AbdJBIY6 (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 2 Oct 2017 04:24:58 -0400 Received: from mail-sn1nam01on0060.outbound.protection.outlook.com ([104.47.32.60]:57388 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751128AbdJBIY5 (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Mon, 2 Oct 2017 04:24:57 -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=lZlS/TcqLJt9xMd2i+yICIiVIdT80RjUQEoTOUgfCgU=; b=lMCeo6PVPeI/J+/n9Ie9xE69JXM6ZFUZGde5rrBCW/DUVxdnEldQ5f9Fren5yCf5T8oYZ9ETRAxdiXUuV47ZN6hITTtGVbE0SbmtqiB3FjG2CY+B9/Acr4y7XrGkCkrjAZNbHoTLGvD2FVUDoEoxD1O25kU4RCpgEh4cZjBikQE= Received: from BY2PR07CA0099.namprd07.prod.outlook.com (2a01:111:e400:7bff::52) by BY1PR0701MB1126.namprd07.prod.outlook.com (2a01:111:e400:4805::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 2 Oct 2017 08:24:54 +0000 Received: from BL2FFO11FD047.protection.gbl (2a01:111:f400:7c09::110) by BY2PR07CA0099.outlook.office365.com (2a01:111:e400:7bff::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Mon, 2 Oct 2017 08:24:53 +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 BL2FFO11FD047.mail.protection.outlook.com (10.173.161.209) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.56.11 via Frontend Transport; Mon, 2 Oct 2017 08:24:52 +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; Mon, 2 Oct 2017 01:24:47 -0700 From: Michal Kalderon <Michal.Kalderon@cavium.com> To: <davem@davemloft.net> CC: <netdev@vger.kernel.org>, <linux-rdma@vger.kernel.org>, <dledford@redhat.com>, Michal Kalderon <Michal.Kalderon@cavium.com>, "Ariel Elior" <Ariel.Elior@cavium.com> Subject: [PATCH net-next 04/12] qed: Fix initialization of ll2 offload feature Date: Mon, 2 Oct 2017 11:23:50 +0300 Message-ID: <1506932638-26268-5-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1506932638-26268-1-git-send-email-Michal.Kalderon@cavium.com> References: <1506932638-26268-1-git-send-email-Michal.Kalderon@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(2980300002)(428002)(199003)(189002)(69596002)(2351001)(50466002)(8936002)(8676002)(478600001)(72206003)(316002)(81156014)(189998001)(107886003)(54906003)(36756003)(356003)(2906002)(16586007)(305945005)(47776003)(104016004)(101416001)(86362001)(106466001)(50226002)(48376002)(81166006)(5003940100001)(50986999)(76176999)(6916009)(4326008)(6666003)(5660300001)(2950100002)(77096006)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1126; 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; BL2FFO11FD047; 1:rpLqFYcOqiB9aXPdhHo/5lMv9n6R4KN8zxghCCVrxRtunK7Ip9XGnx64jvJ2ooTd9WHLxoncFvVxVUq/Iova6l3u84diJ7Bq1SULAP7feZP1njiSkGQhnzTLCJN1bNTv X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c1d3b50-e26b-4849-32eb-08d5096f0e92 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BY1PR0701MB1126; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1126; 3:i8+muZnyiSh6jYBBtiYHvfXRiVBVYJC5uo9TA7U6JU4C7ORmurV0v4lh1Gg87OUYBTAkWSj6MBtU24CSg6ZNA+9pAo+OgEey4EO3dNz6FhUFIsC6MvlfDRr64O6zBGPsOub6M/CxH4Y8vmlJVo7YGgVDDnZfgEsRwKQyv9RSyEjI+MZQDNnNPCqowOJqyAAGWd/HQUNxZQ5YavSqSF3HlmzGs9pTeVg6j/U4SLyTjzgUr6cPp4XVx2ewltTe71ESzWZLbwjgzAA48nM2sYXy9hBGJhF6cON2hKfV1IY4ucfEkmOInlFjQXu2tZ13705anSLXeWenz3RlpSEmbi04Gg==; 25:pA57lN0aWyLaY+tukIQ5KXBK1x3BGMkp8dyWXOjgugQo1Z5nr7n0CRzLXrkKpv0fy0Xn9hiMOLtjKfXoWk8s9cpWvIBSj6kAnQg+aXLld71vGlUgkerSLmRcWzDto7jiGPU7fQG92D9gz5T6ggBA1WUwXKlpfMut0Kn5P6RImhsCnHCj3ULv6Y8nxcqh71aOJhFUyvAfroXsrZzd+3WRzVr/z6aKHIipNl2M1UfwMXJiqpG5qeJ8pIOjSz0tlP34Irbq6JfSN5l0mC9c8IT7WEf6Op/7i+AEr5hcwgthQ2S0ZnDD2Ps2TFn29f3zrertzyickcB1BzOw1+R7EBT2ow==; 31:Yx6+nb4LkEZdCuHazLj2Mzi51lOCAQhtSmOvpoN8chfqHmVV/ynFTC8vxa86ww9f3sR0ztNhn0fEFbQZ4Hj1jHC2iKzjM27VqTZY/0KsDvGkBtfIEb23MVIrE0hU2HD9x+8/uT++OfS7NcsMZyr7KCN8q70mDrSAMU2H1/Pms6khyyW9M8KNYc+BOQ9uBYBWxeLH1yqPQfNtKxjmUCTX2Qpbt+Z74sBBzl54KX9Hb3w= X-MS-TrafficTypeDiagnostic: BY1PR0701MB1126: X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1126; 20:S+EOXbb/8NK/zP0oMmtN2KDY1qJ7gj68xDheQM4zp2ROTV3cjTTUECuhP+zb0J0NQSm4PaAean1dwb7aJoOjY0LRHzdPOtQ4OrNmqxDLYYgTulSnw2+s8Jftw7sfhqKfcMnlwJ56ii1U3iAh/y9N0wtvuRcGyqQWDV+x5u6utWYV9M2/elLXwT2iiNZZctJQ9cpIaGyOf7zrMY7JFBKBp1HlG98NA3EMfdchAeagMV8X5gX6S125mtaDi1/eCrASLWjp69X7mFvU38sxjthMWoCHD4HXJafd7J/7TTqdXEeV3umXQElD+vzncOXOVU0BPdyHjxg//F3FnnPibWM/zGznLrJXwbTZmoxJ7mOns9KynYQQQnBZWyfUsHLnIfhUX5erarKsucgA6TaSz1D7lNafWgcU/QshxT5zJl1oTRzouxmx8In4mGOGJ21bNLSXJdt+3U/N//TOysij4JUiJjKMs5kdrh4iMe0lE/jAXCzdZXrYNeI+RZBXBJmlBm+o; 4:/gFkAMsN23nvjweM7o7hDdTEGu7dbpBrNrU+uhRcSJCfH7oo7kha5Mt3G5FqewoE/W3LLRZCnYf+5XwGnl413DbFC1Ts9yt9n9H2DAFIVGMTqD601szQRzIySwZiLQbVpBMDSGXqMQJ6pM3w7ND35WMaOwagu8l0Fk2npoMlcuRavrycoZKGp3o6vRB+Hx/v5Fge7T4DHSP4nTsI/7CJC0OQKW0aTJH+8BA3z0q+0ieC/HxFwJSjAJDWXl37Vt5P X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <BY1PR0701MB1126C76925B419DE40427C90887D0@BY1PR0701MB1126.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY1PR0701MB1126; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY1PR0701MB1126; X-Forefront-PRVS: 0448A97BF2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1126; 23:pCjQPHPuUS/QNYE5S1HgU/aoWqCU9V+xxI47lSG?= =?us-ascii?Q?xQoR0IgDJfRxTpvBTGUqNarki9T9MfzAJGdW4+iciTH/ePxR3KvDmRr8UF/u?= =?us-ascii?Q?3GN4s2tWJAjIgIqWeptBTLSTuoAOQfUtZ34Y1Hq+6+F9KjV9aXb0f59dixwL?= =?us-ascii?Q?MHBszzo7C3HGS3QJyWxPBXnrF0yd5QQIo0m5WuNdTzVCAa1NMeGJErKdOTUh?= =?us-ascii?Q?su+6PVwsiY2+Qbre1qL0Jx4FJk+rFkeTOW59ORqGLbz30+Xuz0J4WALNHSLC?= =?us-ascii?Q?Tqfj2EN8YS/x2fJkxMUzDEXI5L/HSYTt8UuUN+SuFJGzHxmyoqRRn705xr93?= =?us-ascii?Q?AkujifA4kBpQ03EtlsYlNPVHAAUMNlUSNufNZGrmTvhYFN79ruJf6oHwzPUN?= =?us-ascii?Q?Nfc5NO0RP0OPc6A9qtzQcRJFqMUT3ggoB8d6fkBxt7jMGVFDniU2kDyV+5QV?= =?us-ascii?Q?YNK+dU8D2rWHLkCc10h678ZDMIHonwHpU0Kg3WYx9Xn48eJvhNWKDHG2xIMc?= =?us-ascii?Q?ZZBt3nBIOzKv9js9gvdUw7uc4bg8vnK5ByfphcjJlvso7RyomaEOtZgnWTss?= =?us-ascii?Q?fqFDClVdX5dBR2aRz63taxM9tMjyzrWxGh3F4vILT1CNYB0i3qC2D/v3vOWw?= =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7JW7w2SX4T7oJti9p7g+EM/5nexdAqHUYLACwlelOuHeZUjpLCzyN1iA=; 7:k12B8lviS40j1B7z0WHEa+Y4ddH5rOBxu0DFFSjtqvsPUH+fG2Z3+xTa+Qak7R1/c7vO5cjuSZ3iGjwW9VydagV5XO+HEnty35wy6kygb4lyftwUV0XCDxUFCoofwbN1YOA7DNyYyDa21DS46xJbZKeho5TXwRyc0/h4e1D/pMN+ysqQYjfaqGpiSkDMdACT9g4Fl7phhVP8Qe3flV0PL4/zp5rE/RR2/+cZd67oM8U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2017 08:24:52.9843 (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: BY1PR0701MB1126 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c index 49fcfda..864132a 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);