From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00082.outbound.protection.outlook.com [40.107.0.82]) by dpdk.org (Postfix) with ESMTP id 2B6A21B4A3 for ; Fri, 12 Oct 2018 12:06:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vXZCySwQ9DK6AlstYfLeEq6bfkEBCmpQPt4ORCCClNE=; b=K53dEJAyvEHDju/KgH711wajlwi6LkJuzTvoNAKqZAYKdQEWk8JW3mCrGp1j6glXha19O9D3I0XN/oK0exVmiTxrBtxtMyreL7Nch6EOZrQWP5abntNU1Oe2cVN96Vb9BQElUmkwXRHmzAImULFAc3v6A5l4jGD0sxi90uEdjBg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 12 Oct 2018 10:06:01 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Hemant Agrawal Date: Fri, 12 Oct 2018 15:34:26 +0530 Message-Id: <20181012100426.29349-16-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com> References: <20180926180440.31726-1-shreyansh.jain@nxp.com> <20181012100426.29349-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::14) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac851fae-d147-4d45-06f7-08d6302a50dd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:A3waOLZ43weLa+6PPeKYYpbt+LtNhJVtC4EOsgVtvBpw8klnbMubtVPNDEx5WI13iWzjgDoOQ2euaF7PmOhGaSBLMRf3w+yKcZRguE36uPJPyIjTnCoA4CTV9+w+VW3Ug88ZECf2g44kHmkojIosjV8iGvKUxHgUQvLRQyDa4DHVp9qaksW0agbm9OCgSOMLcroUnrUBDekHciXIQq07h2aimT5uvsFJ5HgPMJt+WnGT2fU7Y00U9EQyXtLM880P; 25:3tofZlEB2q8Au3pbGtL64rH7ZBf3F1iyTHtAO1ITYYFcmOl8bOhW+fEw/VrW1NkAjrt1SIMGSgpJOqkpFLdJRs85dNeyjwsworIhdfnk18BBkw+rZURLZU3r4WWNSmtx9RAQ2fufYzO3AIEJhwybQELiiZGQkHI/luRmbPUI0CkCPbWk/vs2R2KT57GR0R6s+ThhLnG4YA3Ml0D+TfenLUz9YcaT0rlg/ATOZHQ6Hvbj3kXeAWHWCJRMK1XAqxQM3frpfY3BS0SX8/2MCaFRMHryzDWmQyyot2HpVzFhrGzogC4tjZCxHkQFCFey4JG8dH5zETxui6UBGaAs/ys4WQ==; 31:feJSaPrCWydBddYgM2Rd2xHtvmw3DvFl+bD2jqNADL3OR9DB1CZlM9S/uj8u6knv5ny1eIgbHUZaRQDPkWkWSxPT1l3+KJpuST7ahOiV6nW+C/fUmwmDRHP+w2xsxEJRc00NCywXtiqJGHk/9F5QivQpVd4b5aVFQ7D5FmVYFrEK/LlPrcyeOQpiM2AE60CJodOjfDWTbOThnNg0rKHIwUMizrFAaG0k+7P4SjsndR8= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:SPMVwWeqYe8aMjr7gfo4mIP3RkzW9Iv1xeglgXVp/PVaH/ob87nlAk9G2ca+oBeHK0L2AFbnEcQYBOjssLpjNGFf8p+4gT++h6YD2qyB/CFnniOF4lzUGiCiJ5rglXXLh6DHxhvWns4JXtcsLwrZVxyZUp5xeaHd6RRirGm35VqHwkD+/KsKAHpCjdv1ZzsI5lM8yQsPAM7xX/oc5hXdINlOcA4en2ai3PepXUKt5aIEWW/XETg3KnH4n/+RxqUKxSaYkUUJssPU1YL4zM1BKMCu8/cEt1mykPI98RKuzOEK+BGUjjbA26MSC7M3ukMKt2uejvwPxNb22VKZ3UjjHIw0FktOXNxTDRO27zfotQqpmKuuhpGueUjBdvQjj3LkgXG/Jl244S4H3seRoU7KwdFSUjWU+POYTWpAzWcYwmCLWVLv4fldFb/DgYsKM36964D4afTWYYSiCslB/lqMd8kZ6VuiTS8Yj54+t4zkCHk18E4/VuSQHeWHaKqBLp4l; 4:sMIB8lqwLo8w2Q0b2vuOk+jqo4sE6QC7M61jZJOHvS1TltoP8QTRF+ayyX5gTBlGghTQRifRqNDslFCjydJQqVlbLC07VVMHPCHOT+tGp4Z03H4WSimqI32kWLF5UEuc0I0ChoK9G7+RcgjeQrJ4wdA8tQQIfgYQm8+KpyixUd3s2Gc/3zS2vxkXms7q8x2hdctLh4B09flj6WG5LJhg7TjWdlt2qcHO6Zo/a9Li9bBjdp441qd3lM4pLMhzA+ZTvnTmg7KEr6aax2sKojm5VLe07TY2rOuGS33bTvqd556Ghy1+6ku4z1ANr4VIqKL3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(199004)(189003)(2906002)(52116002)(16526019)(53936002)(8676002)(478600001)(186003)(386003)(446003)(105586002)(7736002)(106356001)(6512007)(6116002)(86362001)(3846002)(81156014)(50226002)(68736007)(1076002)(47776003)(5660300001)(6506007)(8936002)(78486009)(36756003)(316002)(26005)(66066001)(6666004)(25786009)(55236004)(81166006)(11346002)(48376002)(76176011)(44832011)(2361001)(956004)(51416003)(2616005)(97736004)(1006002)(50466002)(486006)(476003)(305945005)(16586007)(6916009)(4326008)(6486002)(2351001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:1oqrX49OHx76fqT+fmj7uxQ0I7bVrNOJ/P1IYCX7n?= =?us-ascii?Q?zUtAQA7KLkCOfY7JCHjKGTl7oyAp3rgWfYai7JBZm5Ox0fLCyOJqJQuGIZW2?= =?us-ascii?Q?Q+MWi58e3jOlCZ5b74fKtCbMJ+6Rja/DvKTc5QcKuFqHN4wiTopkj1DMzCWB?= =?us-ascii?Q?28t1deZ+QMzW73G5ibg8IlzcR3UaGn0rp1DAGS6DU7qQaH6pOPuFoSYSwU4F?= =?us-ascii?Q?YCdakyu6BYqdo2ofGagwuiRlmg0L5v8pVUKNTVcWmMCLx2t/qVcMaI8qf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oMKk9lBVof0aad24oWx0Y+sGUGr00ixFh0ka6NlKk/g==; 5:bBU3vdolugiM/fU2EuvcSG8P5d4r8QPGVjI3Srn360ro0FcDrqhO1meUSSYO6Bn9vVqcmLyOQlxgfg+5E4z/CB6tuzUiuwOgPinEo5Cy2GbvBhF9atzlgi4lE3+/TGUXGnAHz0nI+LtJ7WpZke5ry/BvtI8f/xWluLaL49I5t7k=; 7:F8NxxI+kD+mwvnVcXtnFrnZpay6aCAr8HLQStl3o1DwC/+NeLibwOMvH9XZ+bea9Ois6jk7RvvI0Sal0IKRqmwC7qB8GVlYU4LaawShf4fptwN79lbawQ4PrIcqy8OAMQrOlmIObXV/NpJFFLSWqy5tEn0ZkwuO8gooK4/95UdezortXjGBIRZcLOn5EpVYKBOhq//r/JrPcrdgTjLo8xcZBu83dEb9nUvJTZTfDWhb4TnTY+2AR7pfGAA9BgZoM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 10:06:01.3099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac851fae-d147-4d45-06f7-08d6302a50dd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH v3 15/15] net/dpaa2: support Rx checksum offload in slow parsing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 10:06:03 -0000 From: Hemant Agrawal This is required for new mode for LX2 platform specifically Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index bc8b9ff89..eab943dcf 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -157,6 +157,11 @@ dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf, goto parse_done; } + if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L3CE)) + mbuf->ol_flags |= PKT_RX_IP_CKSUM_BAD; + else if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L4CE)) + mbuf->ol_flags |= PKT_RX_L4_CKSUM_BAD; + if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_FIRST_FRAGMENT | L3_IP_1_MORE_FRAGMENT | L3_IP_N_FIRST_FRAGMENT | -- 2.17.1