From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50047.outbound.protection.outlook.com [40.107.5.47]) by dpdk.org (Postfix) with ESMTP id E13441B4D0 for ; Wed, 26 Sep 2018 20:06:21 +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=QbeqPqFVuW+F6rWh2aaVVyZf42oXCZHO2u6HnKi87fWr6G+9Zs6wOcjnON3h7x+xPb4XdLftN7ocjCzJBFuVZhY5YJA+jasrHwu6h+V002b5trkxfXreCaHfZKa+1zatX3amW3VaIRwT1bIkF1mi6LW2DWtuOMnAFhl4lRk6KEM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 18:06:18 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Hemant Agrawal Date: Wed, 26 Sep 2018 23:34:40 +0530 Message-Id: <20180926180440.31726-16-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926180440.31726-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> <20180926180440.31726-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0014.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::24) To AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 627593e6-b725-4840-ad2b-08d623dac37d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4679; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 3:21yh+nEu3KJSRz9h/q+pYRdcQSZtzPmmymhqrJ3qNxallg/haCKUyROl3MbX2S24l9o9zQLbJollwHnq6nv6J0RG0kLL/8htKPqEeystRgZP59bPZgU6GsXdLmqQhyInIUOYrtUKZdTE/q8fwI7GA8j77yytsfdmoQJLtFg62cj0sZ1JcLQ6gksq92jWw2Qnv6lDnvYUNyoGpv4mJYNsxyMSzoWfch1iA/BvxUT8WQcj+02EDCn86nSWdW9npnZZ; 25:gTjSWk+udb488HId8PiXxim9E3mTCvNGLYN2vSBXUHeMcBEfFfBIui24OJ9V3x+W4lPAy/b6JjX/HrlppwLJHl1TbhUdUeIdFfMn91BqWxQcvHPrGcP4GvLEhhs+M92w7jstLsRw9e1SZ5TaGGMU29Lo7YFpOm5PcUNXH+FQXs3xiKK9/rTMv/6st6Z6yGimbiieXfXQzRpbaxwKjq4BBoTz8EBPaMXX5g53hkVuJDTH5z/TOK7/ajCvCwhJc24P/zXNBcK3qivrYAihAArW55uJZj1Jv5S8m4iCt3j7d0rl7cujN5OQJ+myc7JDj2+Gpg5SLsMwR5oItYt99laA+A==; 31:jv+/3vukwZ+3Ycb1DacSuC1CgvtJfESLUG2JMkShMlDXYVjGg7ekdijdA75k9Y2D7FX5gqZSm7nT3bYeKwmnt8KyBR6FQmOxvkL475JS9Ni3ZrfxUYx7c4WLRI4/HZ50VdV2J3kPjfmgwJqg6THzKwS+XzOCAfwQ5a5GuF9ilgGiIj3lzhJpEBCDEumkMQzTLGjmM5og30mWVZLuBWkzuPMZOgbtAeuHyDBz1eajGYU= X-MS-TrafficTypeDiagnostic: AM6PR04MB4679: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 20:/gn6ZRjRIOLFd87tWGWXhbGPNCyExT9cxU8dS3PBP/6bTcspDUEf3JVRYqklWAS+HkKUKoN82qtS09kJJT6fMl+zj5ZQqIWTGNiINENfGT0cKIYfCXiK3t2TYWZzVt9fST1WoZH2Xv8WcFWrAo8erIsO1JCMYCjZzh9cl/8wDcvOs1avcZGhRqrxF5Y0HwRODwHzqSHBzsr/djNxmM/ZnUowsmlnyVHnUdqTqOCzst9lFA7LdZHllevPfEYvWzRsq8mvH9HiloVZO8Jmcj6YiLRnr2sNzNP25iV1MUL6v8kw+4SN08C6YcZLS//IrfRFuQB8mpnXmaZranaogXbCEhQQQmDAua0ILqdtIbiEx+SpJwh5JZxzXJKDG/FJtSahSUvtcn2189ABgM5qKFOBmr73x2q7Csn6XgYu8RPf4m4CE/JSWJbF/+xdeAPETX71J1UQkzs8V+gcSCMOUXHDK7VgzfBLaxwmdDcFIF7JSitsW3la5psAkgzXBNboNmvD; 4:nEHA0+mN6akiQkSNcJ2FL/yFFL1PaB/pvcTyqElK4NGiL3irjDKHNFGmhTkK32PfPFNR8W6ne/zToYnROq0A42iNDaZs/IiS2ICXd7YTHjHP9DVPnXOvW2BMlrCs3Q7/Rz6N5/eBCHSsyyjmEFnldoJfTmPu82s9FY2/MImeyDcu8n1Y+jgZw483U0NI7eGZ1L4Qa/muhvlcPTt6thhMZjJDDRR9cbwORB0UavUxFredmIBeyiTsaHbqfKLKeL9rBNe71zvj1u/lBrOgXCE0MmsjFEebsixNoz3LdaH9IaaQ04tMJp/U2YOccXZ/wcg7 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)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051); SRVR:AM6PR04MB4679; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4679; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(11346002)(50226002)(446003)(47776003)(44832011)(956004)(476003)(106356001)(486006)(2616005)(6512007)(66066001)(305945005)(7736002)(6486002)(105586002)(36756003)(86362001)(478600001)(8936002)(16526019)(81166006)(50466002)(186003)(26005)(25786009)(8676002)(55236004)(48376002)(81156014)(4326008)(3846002)(6116002)(1076002)(6666003)(52116002)(34290500001)(5009440100003)(2906002)(16586007)(51416003)(316002)(97736004)(6506007)(76176011)(5660300001)(386003)(68736007)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4679; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR04MB4679; 23:S6fuL2wKi05Gfh6g9MLc9uVfKZdQr8cSKZyZsQ8xg?= =?us-ascii?Q?D4eJr0oDWzP/iXuABE453LUkBOGODBMsoub+8OhfoDhXNWZFHpD2HU1yLMpa?= =?us-ascii?Q?+ccpEIn0fKSpm56b1G+6uF7KCVZOFKKCWaOWHlntbl+oI/UxbjhbeJObxk9W?= =?us-ascii?Q?/9usnL5JpsB4HC7b9LB2kS1Ga2xAJJa4cr+SiGa+yvEIcTUtBVSIqcxIC7Lo?= =?us-ascii?Q?2nlDucPE1fNZzJ6PStvjsv6siFKkiwM+rFRXOtesgPR1tSjRfsxAGX5glFDF?= =?us-asc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==; 5:8NeEasjxNQUgsyE5D39simqvrYsfvsind+BMo+9x6IMDROSyve/R26158aUFuIYyiXFOdSbn5FCFx8F4Aj3pIqopY0UbLb3lkKpYxANrx0zYszh0zgNbZUkit5G8UGs57zjVGDK9BR5muIf2LlyRhkciOCNKc+X2IM/DRyi0SdI=; 7:2tNciRH+VPqChRflK+UjnWoRuVkkitfhigixqwNEJBFEB4InzAX0xkvTGqIOtsF5iS3eVblS+UFc74ozG/kCDxvBaSLZJd7tOAIBgr712xzkOln/OfDq8Llafgs0e1Kkdri0totZDMfk/1IxpXnrLXVybbmb/JAJEh9pQ6750PBNfJdFWxONxY/XimwR6UECluXc76tmpDN8NJZl0xKPwqbqv8lrSRRMhvvjYkqmVVtipbDdPQOA4xxhC+cY02+0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 18:06:18.9764 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 627593e6-b725-4840-ad2b-08d623dac37d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4679 Subject: [dpdk-dev] [PATCH v2 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: Wed, 26 Sep 2018 18:06:22 -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