Message ID | 1507541874-18344-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 2493260223 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 9 Oct 2017 09:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13235285E2 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 9 Oct 2017 09:38:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07CBE28755; Mon, 9 Oct 2017 09:38:43 +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 90009285E2 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 9 Oct 2017 09:38:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715AbdJIJik (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 9 Oct 2017 05:38:40 -0400 Received: from mail-sn1nam01on0047.outbound.protection.outlook.com ([104.47.32.47]:25976 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751184AbdJIJii (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Mon, 9 Oct 2017 05:38:38 -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=oBusP/f/a5VKbV2Wpd1UGhq/L/0FoF2+F/qEL3fgqKbP9KSCyKuXc+3yPYvWwtIYR3efw2sDCFZn+8uK7rxbJAEEqLDBwzwC//kkb1nPDrpm891M/CaYsvhJMqU8/xdk2ie/8uUFfpQ/BiB8eRfX2q/NMk5xHw5JgnD2Yjq7p9s= Received: from BY2PR07CA0032.namprd07.prod.outlook.com (10.166.107.27) by BY2PR0701MB1944.namprd07.prod.outlook.com (10.163.155.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 9 Oct 2017 09:38:36 +0000 Received: from BL2FFO11FD044.protection.gbl (2a01:111:f400:7c09::192) by BY2PR07CA0032.outlook.office365.com (2a01:111:e400:7bff::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.7 via Frontend Transport; Mon, 9 Oct 2017 09:38:36 +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 BL2FFO11FD044.mail.protection.outlook.com (10.173.161.140) 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; Mon, 9 Oct 2017 09:38:35 +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, 9 Oct 2017 02:38:33 -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 v3 net-next 04/12] qed: Fix initialization of ll2 offload feature Date: Mon, 9 Oct 2017 12:37:46 +0300 Message-ID: <1507541874-18344-5-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1507541874-18344-1-git-send-email-Michal.Kalderon@cavium.com> References: <1507541874-18344-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)(478600001)(2906002)(106466001)(6666003)(2950100002)(8936002)(4326008)(6916009)(356003)(305945005)(77096006)(16586007)(107886003)(54906003)(104016004)(81156014)(8676002)(81166006)(50226002)(72206003)(5003940100001)(189998001)(50466002)(316002)(48376002)(86362001)(2351001)(69596002)(76176999)(50986999)(105586002)(47776003)(101416001)(5660300001)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1944; 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; BL2FFO11FD044; 1:bGN6NeR/1PG325cAlsHB8l/U1Z8FbwGGmlYhgKmcG2kETt7VuQkyEjILxlCGduv45u6jI78vNlojskfnJveqA/Y0eaq5MCzRQt7/AQYScCEObn+Q//IwWcuKML4gFAUV X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ca0ec80-4fa1-4157-8e3c-08d50ef983b8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR0701MB1944; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 3:MMlfRRjT7pjco8bU4YdlqX6xQprt7ajtlEOPD85t62txkH7SZjBh+tzU91rrEBMoNf0vrgEunmTyKxoQCpcxwiUNdn1uyJZbSfzF+9P3IGi3BADfdowdfsklJhR4H1qlyMP5MhgT5lr3Ql4bWSHI1D4eazWI0khXZ0LwrTOb+Wt8g7tLZhMcwGy1RpJ/GSBp9dZ4a027RJRaKBVB8wzYfx7dViae5AZSxeAiPHEAsCGhPJJ1QjovmbBi2gOJcUjwAWGofRKRe9VxJhp+DzOmd/cb+SRxjiEAux5+qcqLKDeO/szn2uLeZVqx7c/7r7n7uk2bNzJQwNBiLOUlW3sRMfsWpWZpKT1Av9BN+d4/m5o=; 25:PUedIDSb+5387WQwWUrjEmo6qBhnj1YcZIOSHjjJ4Koak+SmOCJWv4sprtz4Iug49PXj7KROQJyKmrP3VwcjzaCurHK20mzPbnzSZZNA0G9A2P0dJGYNA+P9NLDmsKKJjdJZakomJB534JFCp+8C2tmtIOjPvwv7697HQ3t/acmZRAFhHvBnySXxpwSxQp3WTrHTZqd6lQqhONBpiB/vNCPOCLCKVvDxjjOW+jBV3o4vd/F+XIauqMCLwN/TKdGgqhmxHD6TmhVMk5C2KwVQGYAwvEdhY/UKqd+IPYgRuwqOmDQ3CyzI1/l/uToanczEVsyDY1er1j4ZaEeIJPtu2w== X-MS-TrafficTypeDiagnostic: BY2PR0701MB1944: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 31:aQNFDKVX6ArU4Bd/MZyqVCMEkggET9LnFdCtnqNuXJuMTtBkgOT4Rmplqg9LQUlcaBqf53WBgCMbDL7dqvQ/lAzFOM9pfIau0wqScs9gZoDqxdnfTmoSD1E/cw9HeXM/RgGDf5RVuqSgQn7UTRo+CtvdMsjOowRyzLVqmKFDOC9+wi2JkeTGAQJJKcLE/teZuo3kK1QydGvfSVYmI2QmpAu5lFyoiDXgAFxVq+r7g4I=; 20:YzlH0GAb5fTCL/08pqh2hJ9j6xcRiF5JGxlO6nTpKIiKo8MyJZZyNKOrtP0uwDWwVtlvf4qKTVyLZDXDcQCaNLaybecsE1JAmfCC9zZUgxwqEo2PE9lHZAV8FYBD01ngrex0IzzJaW7L0uulTGBoE4Nh3aaiFMExTOwoJELBVVIC7+IZphsR5CFWxO4zBdaZN/vJ8mphy4oKsxqbmced/QXmsNMz5KBZaN1UR9vzdK+se5kZq7k0O87Dkx0UQNAO5U9CVxwmf6SnnT5U7Uhwbbn7UJcnGA/NE5Vbcc4RjCkbeHk0MyRMkMIjnsHVmzcS/MjYH0cRazZEn4GcQEF3MZpOWKvBSVFLkKHSsJmN+tZ1pRVXb78v339JyYKBvvlkVtBZ4IhdNlA5f9LIjtrGiP1Mx2UdubDnf7038XhZkVC1wEltsmuUtjUBFEAQr3oIgjxRCuAwkQ8b3SnnDhe0bEqnONhNGmSsP6MIiDWHTA8eyYWahPv8aMys+z1Tok+T X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <BY2PR0701MB1944CE7C7077550AE874085888740@BY2PR0701MB1944.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)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0701MB1944; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0701MB1944; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 4:uVwNUW8SWAEjwAb2n5jrYSKk02pTPSmCcTBuFISKLnDd5Pt/ZFQJQDXkbGI8BzqfBFrVyEwtbCt389KU0U7+9Ih/vEAvRFoyMa9eKsPzQPiVQsPkbrQ3C8JxR02ZmJBRlUr96H4DA79hLlBD755mf5bsSw9wQsKItw0py5eFAzpEJPf+BPX0JLRvhrcZ/TLQvGLweuvNEaRB4OPDCHnMkSgiASQzXzh/oSSSKuyW0lZovBfkAmu0Ym4jOqSLiIs1 X-Forefront-PRVS: 045584D28C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1944; 23:H8VmQLVZ/es6XlTod6piYowdOwiMdCFl98aVLCa?= =?us-ascii?Q?mbhV+VZWUmCakoBkiZuCLLIA6V7384rRfaGZVcqifm94j+uMsd52RJFOlUAV?= =?us-ascii?Q?RumImUlE8g1IqwpBWzTF82nG8qkFuUcemBgw6zs4WAPDEa9yu85wWex2g0my?= =?us-ascii?Q?7IuNBVtekBCO6cUu6haPJROR99RUfIG+VaoDPCOPti7xlDelQVzQRHtvTJ1Q?= =?us-ascii?Q?HJdNCJISNil1DBaHpfH3zVzM3IpKLK8gl1wLbTR14UpdAQEP0LM4ey/ehGRp?= =?us-ascii?Q?pk801wtv1fKaYwTkSU92U2NZ59700z33PlgvRl5WHbBqSx3UxiWlBGkqKEbG?= =?us-ascii?Q?yZcREVfhJV7mSzkA1Y9dkacfDypfy85095E/gIUMJ9HxUgbcncTLEcrcsUxQ?= =?us-ascii?Q?SG0DxdaLMxbXxh5wiqW/lpF5eYhbGUutY+1BJ6XbD1+d1eYVlTOYEwDK+DgT?= =?us-ascii?Q?ZvafRXqU+CtQQCXseSWZcUueGXQ5PE9aGuEumuW49LcBbIk6Z7VSqcOhaKO5?= =?us-ascii?Q?qXyVsBajon/Xv1fq3+ht7Hv6992Wh/mCx0puyUjHO6fwkMR/pH5efWmYFFvL?= =?us-ascii?Q?CC8BF8KRtbkJ+dJj3+Y9/QCUmVfVafXl+ZBjLAQuXos5N6Hw3qEF28UZaGKi?= =?us-ascii?Q?kRGvFRXYCModPnVGd9fzKuoAPmNl64jjixRIOxVIvRoV4GHqx7R2V4Rb5cAx?= =?us-ascii?Q?Kf9yAXGE7dVpNICKyIkdiAMsdy1ChpZ7zq5TZhJiIu/0sTM2kgZ9BYU9BuDP?= =?us-ascii?Q?It9ffv8to1MPM91Wtucf9un0jSAPFweJUo7q4cK3vGoW07zv6w163FtG/YF5?= =?us-ascii?Q?78oXxThTViCpkHGkozvKMMeneWJNXNBPSORzYe96O79uvuTeeDr+kJQM0uA3?= =?us-ascii?Q?Ks5i8L5CetI8/K1kBLLwzudz6x9YBI4Ch27iYaPiEt0vropNmjH/0FXNMPCE?= =?us-ascii?Q?baRqs7g0YCjwUQAzEjm4mzm/A5nlT+oOdUERD461H6Uulb4nfv12CEht29vQ?= =?us-ascii?Q?nt2ZTCi5YbjMKaULbcLkdjlrC?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1944; 6:i/l9gIvNLnKGxBqat0LjpAUGmCRR4nA1jntaaJ5pO49CWy5qvlN0QAV0gHuYH7fGdrw5vvm+MvTQbp3Z8vsSte+ixF16hvKeTH/SZxRiEWoiWzDdFjj/c45f6ZQNLoe6nB8+n94NmO/bdkaXz+mT+UWm6ZelntEAu1atoih6bKSutqrTQViqqAHGoxDwKOTXdyuupkpApP75EaWJEObV2yB+mQGjqRPIa31w0jzNgabbvQjhvP4csi2bZYjcSXwWknWNdtdnbz/jgUfirfUgaNncoVktVUaQ+O/bK87e4oMNkn2mk605M0L/lYEYbn3rnTWoQDxh+9YUBJL12TrEVg==; 5:55Fjs7DRIpcOLBwtinrbfnf4+uW2dc//1oomHzR52RTBriAJcNmic06EJxN/pWQ+qtdFTeNYYfZ2jPYIV20a0VDkAhEkCdM5i+qdevBRQJBY2d4TEfHYc67VjJzQ+322lGjUovtab5nABHDTFoh9Xw==; 24:96F/tp3ot3hJUlI0k43bwkuaCuGL6rqIHaiTB/gU7bcfVypIONidCXKIWxyn/qz2muTeawaL05g3/vGUm44OqyQg+wiJFQDbufXZDlMiL3A=; 7:g5QwPwGsLePSyFpJbdZ6ozfaOzY4OljFRRZt5rN2KUvRu+I9juwbmdASPSnr4TAWyfXh8trYrPOnDUEYHeEOrXJDEZYq+tAabNQV+VRHNtrkOyHU5GCDXNENT4biHyCRFPOa7/voE1L5c4k3yeeoHPfW203kgv+QJrbWzvxEJ1+bjpSk9RROyDJh2txe6fxklpPFQ37bkHiRzQm+e1r0EjZM2ovbKtRe6S8eqVzh0Bs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2017 09:38:35.8761 (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: BY2PR0701MB1944 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 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);