From patchwork Thu Apr 5 08:54:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132852 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp6032297ljb; Thu, 5 Apr 2018 01:57:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx49KhgNPhOGpx6Md8xCpZZ+S3Meyj0f58meh5H2vkDN8pjEnFbSH1GO7wfN41nINhQZvwAFT X-Received: by 10.28.202.6 with SMTP id a6mr7847766wmg.112.1522918641692; Thu, 05 Apr 2018 01:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522918641; cv=none; d=google.com; s=arc-20160816; b=GEVCiaeyJo04K8WQlwJ045EUoRAZsjnP3trQnBt1e9TY6rc9dFG8NrvSvaXEPkHKL/ ErClcxZEeb0SDlGg6gP3xzmDk/iU3be3LnHmNS7C4flK/5Olh3lNHU0nFnPAqaslu9nO RSaaxDz/VHSWNaHyk/PZr28Wljq03ftYx5CRl3hEHTbm+PSyL1wTzgYLSqmgdVhkuUlY M5uY9wnDkiUk5AqM1KXmrZ6sGg8Aa27cIntKVTl4fan9QTNgZDERjbZ/xYLXGnKJQ2ku kX3Qf0I7QsK6HYz9JcxnOAyFdFQ6goXyEDUV6sEkmZYMloStSWnA0I8cs6S7lROfUF0/ ZBwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=bkJ+KJd22RWH4lVf5ooxgB+tYlT9k/JSgbRUm7ZwMJA=; b=g8RWGPHOQcFla6IpHnYSuFfxFJukSCZvJ6AIqpnWsR+I06s/yLJ5n5oNRz/5MTsT2F RaHKQ73jZfhCyXqP+LNHpssAvjrJDU1ek5ymSLbio3wN9/fLDky/tJACfKGhbxvBo0ml 1ifeLDi/bvAeCrsk8OQk0d2is1QyWf8Knj6cv2/HpYRmLDMWK7Hxl7b05XVm/tnaZZLu zaohzsqsJfudpylHFIh1fpJlSAmtL7p+UjFQz1CTqMpvgulQrEa3QhU2urfS6KRvWPiH /81YDuQs9WmeIXo9C0c4a8WPVNs/+z+7ZYUuzlGVVYxOOI08ujomhYuxEyA15rrHyQ6d p2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=WyObpCci; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id y20si5402656wrc.416.2018.04.05.01.57.21; Thu, 05 Apr 2018 01:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=WyObpCci; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 92B211CA22; Thu, 5 Apr 2018 10:56:33 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0043.outbound.protection.outlook.com [104.47.0.43]) by dpdk.org (Postfix) with ESMTP id C431A1CA07 for ; Thu, 5 Apr 2018 10:56:26 +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; bh=bkJ+KJd22RWH4lVf5ooxgB+tYlT9k/JSgbRUm7ZwMJA=; b=WyObpCciwfzqaXMKkuCyJ6b1wq8jEZIge41ziktXJVxWs96dt8B49L3ZJh+6As9ubAV0mripwuIdT3QoxTiMKJMwCDY2ZpAVQLwQoIySQyk4VaBuxWu8972QcdN67Vpp8IMEBGJ1lqky0xuhu9oz0tCoLlDkY48rh5ga83Ckvb0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB3PR04MB0762.eurprd04.prod.outlook.com (2a01:111:e400:9440::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Thu, 5 Apr 2018 08:56:24 +0000 From: Hemant Agrawal To: ferruh.yigit@intel.com Cc: dev@dpdk.org, shreyansh.jain@nxp.com Date: Thu, 5 Apr 2018 14:24:22 +0530 Message-Id: <1522918464-4586-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> References: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0043.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::29) To DB3PR04MB0762.eurprd04.prod.outlook.com (2a01:111:e400:9440::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7f8a67ea-7c2e-4b34-dbd0-08d59ad31ce4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB3PR04MB0762; X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0762; 3:IWm5T3tN0/7BmFpJI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Izwskgy9kBVeQ6iXyJUNGw7OyoDe6IlbFldAexyzkLMyt9ZwTolfpXA9M+hvj5ViXit81Nr35IpQqt+rKdf6X4XGi4NUToWunBgBfMSRw24V4mMu9PdX1eY8AYliCTCBgYh9yiEhAVc3Jbb50rfplmbkhAbL+BgsvnnPxGNe6TzwXCC3vyRmTQB5Dj1RT9YwJVAocH0cDxjmTo0tGNKJnsZXMxsfWXmMQCntsopHXvTunQTfgCiRMotGYEnwnw1cqWqXbZ7IDxoKtMsQlF+6zCEFsq5CI6PJVajwOftBGNfSZFbpI4xjqFrlTKPzcc+oTDh; 4:zoiiOOzLaWUvNrOhJ0K1YSQwxTK3AlGw4qx66TxpM5f4HVITGFUdekJNBlzp7aX4F3MIIptxiwlFE4YJdsQzzmGLAn5wvlClhFNpNxJJE29h6tKUyRJTQ5exHH/pLSpQwrhBU20nepCzclTdfnviYXkUoE1Es1lVZ3iaUerFgrdQLtXRm/RKYjbWOwBET3NO3YEjrdUz5C1ARYUaWQ5ZMcjpnca/Mk1MKRHTZVU55yQzl7yQPsJMvEdCgVvsNv7u2ggL+dDcPwYqi5bfCYlpFPzAw/YHQLRFrUrSKQE2QZi/fJr1G6OFoOpn831e5GXG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB3PR04MB0762; BCL:0; PCL:0; RULEID:; SRVR:DB3PR04MB0762; X-Forefront-PRVS: 06339BAE63 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(346002)(39860400002)(39380400002)(189003)(199004)(76176011)(81166006)(53936002)(2361001)(2351001)(6916009)(25786009)(7736002)(476003)(50226002)(86362001)(81156014)(486006)(97736004)(105586002)(26005)(6512007)(52116002)(3846002)(11346002)(8936002)(446003)(16526019)(106356001)(51416003)(8676002)(386003)(48376002)(6486002)(47776003)(66066001)(68736007)(5660300001)(956004)(55236004)(478600001)(36756003)(6506007)(2906002)(2616005)(5009440100003)(305945005)(4326008)(6116002)(50466002)(186003)(316002)(16586007)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR04MB0762; H:bf-netperf1.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; DB3PR04MB0762; 23:0JOuvsmqwwq3za/1uzN6H1A100952igxAOvrl0t50?= Mj7w/eW47miDq15ukJSngUeNK9UHz0wrcTXqazEgQop8xmJDmbn+jb6BK0xqW+aXiJNCXug2UCZ/j18a0Ap1zpBGlJ8o1eI4ZQvloiMTmsYmT4QsmybkaWvZ7PlK/yVnxLMy+f9TbuEGBId5aX5dc66THYy9SlbBkuRfBu+Z9Arf67dk+jvmRZwJU7f2AFVsre6wqT0I8G275FWECZZCgr//Zsl5WuhP5XgF9DdGxsQytFd8OWFtNd++ChQdjlnn+2RUVipf6K2YY9P8HrwxFows2AsmkwvPTrl6ALzfFTX0rQZ2DndN+1TVp+4iaJC4BRBNrEVPsJYj6YNxJmamiPdUV2JYQ3Zvfpfw09O4Vjm25YH4A3v6WhiKtKKOOa82HK1OLA0976GDfSaFtVt4TEHP20BGTPunWsiso2BShHB69ASBCHu/Ti7uHFehEif20dxMtZj0IjppolhLxwkQxnjSi1M84p0HDSMj3jl0ckLXWbN/ieFGtE4bscXLDtY2LWKkxoKWQ4CcF3Q/DZCgKyz6vA9ZP8EzeMMmGxM1qeyRP3zchuZGNWzcCVQQfYlvcdA48PZv7Qx50yOn/FzA8bxvAMfmhXA3JhYkzQS6SwCZWIKxIBT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bR02Sm28BKi1trE2YcIwVJWiekQbSqw3VVfuT1E5f/sYVzc+/Obz72qq7Prhltu6KUHn57vVFthV21gAiw3UZYn5FrwwDHc/BFpEoIb8lXctEOuD9NgGBZ1yrIpJOKLMWjVrSlwv+CLem/jpw/vqlTCyy/RirPF6fExv2BUGO4JAtPMZpeO5qYhesf5aBbYzO+B+Wzjus+c2o+7aexjLcV+kBmUAdM0eT716OQfyX4WSe0wRWRe7A==; 5:Ej7CBuN9AAg0b50DYYSOwv7qZgqfx9hAxKGKLefyoPW6vEDhAx7k8o1plBmScU9xZaEne3dMEpDQA7AIX2oVyS2E0UF5FTP7u78jmawP75qbXmqoTeQlccj/45nUBHULXv0t4nCTQ2MFaUyZ3R5kSbItYSxPuRK9FU+jHhxWACk=; 24:JGnZZ/wTQt2ZTK+P6uid+KXLCmXnRsEJXFt9O7w8BARLsPm+fm5jO01rJ1142QHgE/zZCn0QDR8Mq5EFlzO1b4FivvFU1dT807F4PD9R+QQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0762; 7:JXO8UVGIP4CKwrsf2rFk8HCLQyxJCZ1usnd3IzKCwwS3aTVkAr/iUr/Mw7UFonir67V5UzKo2kUMK3WIlMtdVzSPnF1WByG4UY48d4bhdcjuCJN5vFeTOQkD21tQBr5omQfJBzcflug6kDmq0/RSYb7ENsijKEqxGU5XDcJy5V81PW3VZPz3ZZDSm4zAeGrDEcdfDWhJyZ6yVx3NHu1ODrBR0yvZ8MS2DZKVyO7J+Rfzc/AnYi9v16lGTimyJhDq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2018 08:56:24.6799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f8a67ea-7c2e-4b34-dbd0-08d59ad31ce4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR04MB0762 Subject: [dpdk-dev] [PATCH 6/8] net/dpaa: update checksum for external pool obj 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Akhil Goyal Signed-off-by: Akhil Goyal --- drivers/net/dpaa/dpaa_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index bdb7f66..1316d2a 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -825,6 +825,8 @@ tx_on_external_pool(struct qman_fq *txq, struct rte_mbuf *mbuf, } DPAA_MBUF_TO_CONTIG_FD(dmable_mbuf, fd_arr, dpaa_intf->bp_info->bpid); + if (mbuf->ol_flags & DPAA_TX_CKSUM_OFFLOAD_MASK) + dpaa_unsegmented_checksum(mbuf, fd_arr); return 0; }