From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3EAD042AC3; Wed, 10 May 2023 07:40:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0FEA406BA; Wed, 10 May 2023 07:40:25 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2051.outbound.protection.outlook.com [40.107.6.51]) by mails.dpdk.org (Postfix) with ESMTP id 4D60A40697 for ; Wed, 10 May 2023 07:40:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P5l+qqV2yHTJdmHmiLBKKeHZ/nALbCLIg7sX2eNOAx8ge6lmcieYWWoG3L2DkIyqqPREO7wZM1ypmuGOLeQK5Edc9doszTU1/elRDEIZYwv2SQAGFHjE7dQNk/xA9YJjwh7lcauJ44aUp0F8+SIcBdWgCETvpBlooOZmSFa9YI2HcS3nQcknr5QCYPPIdsXxMiNjkoel2JxNxhlMZv/1aTZyYh2cIaB/gshicAlwUL8wlQbMyWZOasQn1Xxqg00xC7GqfaL6cbCyarCF67EDv4/ARCduWQTGhgi6Rutk1AKreJBJw0hTNB1MBwIm7JbgUDg6PXPQCquv22gG2HsxvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kXTDaeCUP1J4iaYaAmFddQtbmqLOvJJwWkB4O2h6ld0=; b=QJA9h2eBfr5ulLs0HZImplrhx8Tw+U234kzWC0VHHE6FZ81V6obGAh8kFQCDcPTuQ76DtDMReVUO3s99QfGBjAsuZnl15LlhH99YxzXJ1dHclKbSETRCYug1R7og1JeaToFLfz00GVCh4SXO0DCkA9ATcTP6/SzEMea7wSAb/z5dMywp9bagRRF3GaPB1/K7kb6a1DxgeNrz8IAT8dOmpXxIIXGVlZZX0+XIUZGUogJdl9kWgzaCcCQGEenBykMt4lVJNrrL5eVm8ecijX3vIeHxtN0te1aNsvjTFVmcohHEt6/Xm60VrPEv4u+i2HyHc96O8rLKN0JBYUqJagb0kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kXTDaeCUP1J4iaYaAmFddQtbmqLOvJJwWkB4O2h6ld0=; b=DUFhZ3UBIiaBMO3EG/mT0zfAAe4wAbA8evo4hsp1UggrFRbzgsB8lxCbAvjPhX8srpwANRGFLDPKUuFFm/ibfJju+rn7CG+8gpW92uBUngTtXKSYkcNkJoviBZTP0o/qmkXqs2izyjyLPeFokSiJK1Rg31/1iXnDQ+SDuoh9VEo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS8PR04MB8562.eurprd04.prod.outlook.com (2603:10a6:20b:421::9) by PAXPR04MB9107.eurprd04.prod.outlook.com (2603:10a6:102:229::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.19; Wed, 10 May 2023 05:40:22 +0000 Received: from AS8PR04MB8562.eurprd04.prod.outlook.com ([fe80::5787:8cca:9d7e:956c]) by AS8PR04MB8562.eurprd04.prod.outlook.com ([fe80::5787:8cca:9d7e:956c%5]) with mapi id 15.20.6363.033; Wed, 10 May 2023 05:40:22 +0000 Message-ID: <298962cb-99bd-7765-6e3f-ee31ce3ac67d@oss.nxp.com> Date: Wed, 10 May 2023 11:09:49 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] net/dpaa2: set check sum good flags Content-Language: en-US To: Tianli Lai , dev@dpdk.org Cc: Hemant Agrawal , Sachin Saxena References: <20230508105725.4559-1-laitianli@tom.com> From: "Sachin Saxena (OSS)" Organization: NXP In-Reply-To: <20230508105725.4559-1-laitianli@tom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0043.apcprd02.prod.outlook.com (2603:1096:3:18::31) To AS8PR04MB8562.eurprd04.prod.outlook.com (2603:10a6:20b:421::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8562:EE_|PAXPR04MB9107:EE_ X-MS-Office365-Filtering-Correlation-Id: d52659ce-f83a-45d7-97e5-08db51190c0d X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vu9WGynmg4X/i8AWRuPup/Zdqk9X3FvjTq96MUweImfwCxg5Z9PX0wwI7YvCAFOlYyZ0oUiVNScp9j5ei4vqg1CGA7GhWonQmWAxOpNbr5jvj/qp3BlZRrOSmiUAdEcfd+1uDRhPy04QaMCTdbLCN7rKWUiyCJIki+YNeM4+J3wtkE/sLANv+5WAGYXymaCIvBiYmvypO6SAZM3wCSwhgBAhi83/wWYV7u6C5SWiNI2KPCXeqJh+m4WRvwAlk4I7de4q1WEnSOZDU7cDikHevYIw1xzFV0q524WM9Y9HZQhKztbw4s8Nuolca0mkB61kNMFxatUp00Pz6dc1B6wlNjDDq2S24YhXAa3VF76FDYCvwoKjvVN7OVLA2lfgvzFs5tasAq1PKGa6+zj+44kTupnhLD3zSVfLuLxxmXkfcwUZOJ51iWAdc8+lTDDOj4KVvhIVBAn65O9ANZEjcB+nqG3AJgsmbFVo6Twkia6cLiv55G/J5rwAvUBSA2Li7mhNQX4szUI7hp5pi3TuvWp6riVzY/Kxtp1ot+qdrF6TcscJGSS+jg7b96Ha6vo5/AEk13KS3s/Me+iXj0LvrT5zh6F88Hqg1WWkAMdfC4MqDfFNlbq0rS/BkKnnYmioUf1719KI08PyuPc5UzTZJ6Le3g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8562.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(346002)(39860400002)(136003)(396003)(366004)(451199021)(38100700002)(86362001)(31696002)(31686004)(36916002)(8936002)(8676002)(5660300002)(478600001)(6486002)(26005)(6506007)(186003)(53546011)(83380400001)(2616005)(2906002)(316002)(41300700001)(6666004)(66946007)(66476007)(66556008)(54906003)(4326008)(6512007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZFFCWjVScGVYY1dpdElPZjZkOWgyK1lzbnBYQW9NOEdhZWVneDI0SU4vRDB5?= =?utf-8?B?ZVgvRWNGcCtYaDZzbkd5dC9TYTRtQ1dIeXl2am9pQWlRdFRrbDY4NnVCZUdk?= =?utf-8?B?K0Vydjlja1lDdFl3MzNURlBKMjVWeDEzR0E1Q24waFpVaU9QZDRLS29nZ1hq?= =?utf-8?B?TkVuQW9vWFRaMnp6U2VHWjA0ay9mS2QrL282bXdSWjBwV0d4Zml0YkcrNjBu?= =?utf-8?B?bTVWNTlkOFFFeXNIQkxHcTZnSGMraGozMGI2Rkp3R2ZXZDBsK1JHTXJheVBp?= =?utf-8?B?YWFnRjhOTEdZSm1jMmp1Y0hSL2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Wm5YUExH?= =?utf-8?B?bExYem92ZjBHcEtHWWhjeUNYZDhiVmNybEtGd01pMEZYUEpjRU92RTBnK1lJ?= =?utf-8?B?OWc9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d52659ce-f83a-45d7-97e5-08db51190c0d X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2023 05:40:22.5102 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jJ97bYB7GxRJU6c33rpQt38YVEt2po1qEt3wZfi1dP5pKgkudtuLWYcXF4x9MHYLM2AexuGDpfW6psULNVagMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9107 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5/8/2023 4:27 PM, Tianli Lai wrote: > Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button > > > set check sum good flags when dpaa2 hardware set check result. > > Signed-off-by: Tianli Lai > --- > drivers/net/dpaa2/dpaa2_rxtx.c | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c > index f60e78e1fd..85910bbd8f 100644 > --- a/drivers/net/dpaa2/dpaa2_rxtx.c > +++ b/drivers/net/dpaa2/dpaa2_rxtx.c > @@ -198,8 +198,12 @@ dpaa2_dev_rx_parse_slow(struct rte_mbuf *mbuf, > > if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L3CE)) > mbuf->ol_flags |= RTE_MBUF_F_RX_IP_CKSUM_BAD; > - else if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L4CE)) > + else > + mbuf->ol_flags |= RTE_MBUF_F_RX_IP_CKSUM_GOOD; > + if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L4CE)) > mbuf->ol_flags |= RTE_MBUF_F_RX_L4_CKSUM_BAD; > + else > + mbuf->ol_flags |= RTE_MBUF_F_RX_L4_CKSUM_GOOD; > > if (BIT_ISSET_AT_POS(annotation->word4, L3_IP_1_FIRST_FRAGMENT | > L3_IP_1_MORE_FRAGMENT | > @@ -241,8 +245,12 @@ dpaa2_dev_rx_parse(struct rte_mbuf *mbuf, void *hw_annot_addr) > > if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L3CE)) > mbuf->ol_flags |= RTE_MBUF_F_RX_IP_CKSUM_BAD; > - else if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L4CE)) > + else > + mbuf->ol_flags |= RTE_MBUF_F_RX_IP_CKSUM_GOOD; > + if (BIT_ISSET_AT_POS(annotation->word8, DPAA2_ETH_FAS_L4CE)) > mbuf->ol_flags |= RTE_MBUF_F_RX_L4_CKSUM_BAD; > + else > + mbuf->ol_flags |= RTE_MBUF_F_RX_L4_CKSUM_GOOD; > > if (dpaa2_enable_ts[mbuf->port]) { > *dpaa2_timestamp_dynfield(mbuf) = annotation->word2; > -- > 2.27.0 > Acked-by: Sachin Saxena -- Thanks, Sachin Saxena (NXP)