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 87289A0542 for ; Sun, 25 Sep 2022 07:51:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FA5E410D0; Sun, 25 Sep 2022 07:51:59 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A42944003F; Sun, 25 Sep 2022 07:51:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664085117; x=1695621117; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=nYZJV1Z1DPFT8zwE+VfHhmgqTIQA67f7rALFawhFtoc=; b=kYIc0/BciSzQdSsd+77uKE8ZmjjsRqCFedDjyHUlzDqjnQfVCn6GtPBq ngrb5tMfin9K/Ml/n9rw5vbwupyjzQkW4nHJK0f5wSkZszqPlr3j8SSon IMCA4AoMsX34kclTkm6ng2MUjo7qcQ6hMiMIT5fY/JFwbsxW/ts6TeKR3 h297SqBhRSKyCMZXo/1VTXkAhdbVDPfRY708AFkyzUzXGFi81rWL4RSYx wsVuy9tYysM/k9eFk3wcxaYXfFhvf3WPDGSfKVto/k4deYceuVkC7dvmO YhuI2gXOf+i//j7qsmgBJyN5uSejQyPsP6qFrER+2HNqLmkhHACUgDuPP A==; X-IronPort-AV: E=McAfee;i="6500,9779,10480"; a="299556521" X-IronPort-AV: E=Sophos;i="5.93,343,1654585200"; d="scan'208";a="299556521" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2022 22:51:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,343,1654585200"; d="scan'208";a="651426328" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga008.jf.intel.com with ESMTP; 24 Sep 2022 22:51:55 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 22:51:55 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 22:51:54 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Sat, 24 Sep 2022 22:51:54 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Sat, 24 Sep 2022 22:51:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KZs1Bb97Z+a8TOgQxhJrqwZZ3CGl3Yc/TAcnPJoYnbkKUVDVdZvyOzg+IYjW8hX7oYw2KxnT4Qx52kANyg3H+K8FLr24ACknj1rCbHUwYFGrGSmaTZS9WU/ci20JYdUmQnAbWXVY56HVDAAiUkZhsSTgEVPVkotDi1I3h+Le4V7GkmxmA5s87I26maiUX1vwIrvAeHfPxO3ESFwJx000fk781cHiPXX/K6rAUx4eDSBZRW/MNRIOP1kImWQ752yqlu+SIYgA4yokHtiWn8YO5Dh6mhEqMNeVOReyrEWE3GEWkCS2lwzSpWI1fXbi1uAJzeKtyr7Ab9MGSLp+2lSZkQ== 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=W9Z1BCnR0I10x/Ng0FJ5wnQccsU2VC26Df0t5qrVFMM=; b=SZtyKlqVwYB+/2+kaSi7zSVul4W0AFjb9mSF5PzMEy2P7zbWJaz0e3Mu77FA/rAgw8MckxL2J6ZK+RnQ1MohEZQp6rBYmHkCw2BvhrV6Q3+5p2ySGB6islwVqEHHtH6YpJR6bd38Y6q30SvDd0KlKeYo7aFuPQl4sQzPp+x5f08D6G1/GRPtG9dg7TdKjwAJGgoIxjcexssscRFtosJizpLMFAqxIEYNvdjgYEWGhMcExUkBtbnPXqJFALkSOS/r/BY7xjm0ZMIkW5W7wPfav0/zrWetNJGncP826Gti5HoHGtlpjE+Ap43QGPo0vPnR0esveUI9dPnJg8CDFHva+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) by PH7PR11MB6697.namprd11.prod.outlook.com (2603:10b6:510:1ab::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24; Sun, 25 Sep 2022 05:51:51 +0000 Received: from DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::16d:109c:ee90:fc9d]) by DM4PR11MB5994.namprd11.prod.outlook.com ([fe80::16d:109c:ee90:fc9d%2]) with mapi id 15.20.5654.022; Sun, 25 Sep 2022 05:51:51 +0000 From: "Zhang, Qi Z" To: "Xu, Ke1" , "Zeng, ZhichaoX" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Yang, Qiming" , "Zhou, YidingX" , "Zeng, ZhichaoX" , "Wu, Jingjing" , "Xing, Beilei" , "Richardson, Bruce" , Konstantin Ananyev , "Rong, Leyi" , "Lu, Wenzhuo" Subject: RE: [PATCH] net/iavf: fix outer checksum flags Thread-Topic: [PATCH] net/iavf: fix outer checksum flags Thread-Index: AQHYzMwF2kTSEe/aAUOW5Mv/3MQzf63qsy4AgAT48BA= Date: Sun, 25 Sep 2022 05:51:50 +0000 Message-ID: References: <20220920083710.185953-1-zhichaox.zeng@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5994:EE_|PH7PR11MB6697:EE_ x-ms-office365-filtering-correlation-id: 5da5faec-b6e4-429f-5d68-08da9eba0ad9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VvKp7QRsRj+4IdBDK50mN+FErFY8pylymsKr0NEppuk0wyMUK3i7zd491JLjTrUZCspt09bwFAUhDzQwZjZbqSf5tJ6V0qWskE2uhmh/u0tFg9YLEqHSDNaCiAscwh52qLQx/4vjg6LyyrEdgv91HfbmwCVjw68O9+igWkXjVPwKsWQfSBehOsA4ee+3oCq3tDN4/CiawlxC29ZQVYCbCzd1CrCIkarEUDMnizLauIvxmt8g6AG0neFvEiRg0QVhQ96jC4buNLoWCkzFaElvZ3+ZgBeAOMyG/I4rm2rX+rqo7ypgd9tbWte3EN8kyu2N+h1olR0UyerbGXrpYfnW1PUzyhmyXF9hP5yrOu6LpM7nLAUm9XDjGzAlwHVXkmoaoOAg/VLDPZ7PdYSy/ST6dlImAFodR0i75zMF3ppboBmsfOq9bsuB4E8oLutvtsvXAu9Ltf2RjsuxkIYILnvwLXnYwe3M3+hZnaQuMmuaiKg9tQiXxTBFIDksKOrbdUvhYAAf9JY2mr+h6d4w/1uZPC6JS7GBTdyNHXNRZJCPQakHHCnzNth1QykDIcjG+yOELDSuIenTaYwctU2iBdL6+JovVwgmm4UK4fQ8nVvOlEf+01oQLY/i5dQzFv7i3GP7crhjmnEF8omGpKcGnVvDvaD4aeoj1KibvGvH/xC/3GkL3gAQBjZ+NFpNm8wLl79BmzZJ4UNdmn4tOKjyEv1kpYF8pD78YfaBOcEP3QwCIzBJl3E/W9wT+RYdiNZEB7oQ4efkStcgqL2CECYCH7RQuA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5994.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(346002)(136003)(366004)(376002)(396003)(451199015)(110136005)(54906003)(4326008)(316002)(478600001)(8676002)(55016003)(86362001)(76116006)(71200400001)(66946007)(66476007)(66446008)(64756008)(66556008)(52536014)(53546011)(26005)(5660300002)(38070700005)(9686003)(8936002)(6506007)(7696005)(41300700001)(107886003)(33656002)(186003)(38100700002)(122000001)(83380400001)(82960400001)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nKC/1l3aZlUdX/KXbqeiiN+2K91HpBFxO2nP21yBicUtwsA8htgnfN6PrT8G?= =?us-ascii?Q?ghfbw/5oEyVPczvBdQkXuxpzL0XWVCOtj/iYqMLl67ThaTSyAKBobQNqhSSk?= =?us-ascii?Q?HyhEe2jPkn4J8lZ+1ax/JC06M9Ey0ZRgD3oVrog7b20XLqTaYJ+BOLGQhGu7?= =?us-ascii?Q?E6HRPnEuC4aCILOKH99xwtLsbQnmKESKLxtMM6Ndc4sH4uAEBJcgG43Y1GDa?= =?us-ascii?Q?Rd8epL2dPfe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QQ82qz5L++?= =?us-ascii?Q?g3ETKICB+AZrj+XEpqeMGtVIlzUZ9Vcs4bd5zEQ2HUdb+QPTRweOLX/fpx20?= =?us-ascii?Q?F9wHuvzV20MGD4LcDCP1GnX2drPCSkcUnbps5qttGaLnhBPm0HV1jErFv0RC?= =?us-ascii?Q?DGquZo2xnwC3Qz3POYf7EYpguHzjW6qqOqrPpSblWeROR0a3z0yTonMg2Kxw?= =?us-ascii?Q?qaHtiqss2aLRBqy7c7EzFjEn/l5Wr5Ec65epkFO1HLUyWDO/suCPNSOuuX57?= =?us-ascii?Q?mJ4NzWLIP4Go58kpiA4zAiVX0iEs7o82tu2e+ZZeFlzjBNwbFrtfzpv+J44f?= =?us-ascii?Q?9zX59px9cZgqLuKyIAdhYd+zMsWYzj2mhHPWaYUuhmlhBiKELUawZ0GM/cDI?= =?us-ascii?Q?byLOO35PNgTWqkvW5jWII2RYydDaJTqneNm1iCMxSZ4uD8n2/PgQRcm7h6xO?= =?us-ascii?Q?qa8C3xn3rehzXg0e/oZPcjr6B84lJ4HfoyX/uUlk?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5994.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5da5faec-b6e4-429f-5d68-08da9eba0ad9 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2022 05:51:50.8845 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SxqhD+L8TSqSDj7R2mkS7e5b4649+XyyNDUDiz6hDbFm46a6w/o9SDwb30hckqlfYDEPOl4AcprGu1ZJ0mPXIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6697 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > -----Original Message----- > From: Xu, Ke1 > Sent: Thursday, September 22, 2022 9:55 AM > To: Zeng, ZhichaoX ; dev@dpdk.org > Cc: stable@dpdk.org; Yang, Qiming ; Zhou, YidingX > ; Zeng, ZhichaoX ; Wu, > Jingjing ; Xing, Beilei ; > Richardson, Bruce ; Konstantin Ananyev > ; Zhang, Qi Z ; > Rong, Leyi ; Lu, Wenzhuo > Subject: RE: [PATCH] net/iavf: fix outer checksum flags >=20 >=20 > > -----Original Message----- > > From: Zhichao Zeng > > Sent: Tuesday, September 20, 2022 4:37 PM > > To: dev@dpdk.org > > Cc: stable@dpdk.org; Yang, Qiming ; Zhou, > > YidingX ; Zeng, ZhichaoX > > ; Wu, Jingjing ; Xing, > > Beilei ; Richardson, Bruce > > ; Konstantin Ananyev > > ; Zhang, Qi Z ; > > Rong, Leyi ; Lu, Wenzhuo > > Subject: [PATCH] net/iavf: fix outer checksum flags > > > > When receiving tunneled packets, the testpmd output log shows 'ol_flags= ' > > value always as 'RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN', but > expected > > value should be 'RX_OUTER_L4_CKSUM_GOOD' or > 'RX_OUTER_L4_CKSUM_BAD'. > > > > Adding 'RX_OUTER_L4_CKSUM_GOOD' and 'RX_OUTER_L4_CKSUM_BAD' to > 'flags' > > for normal path, 'l3_l4_flags_shuf' for AVX2 and AVX512 vector path > > and 'cksum_flags' for SSE vector path to ensure that the 'ol_flags' > > can match correct flags. > > > > Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in > > normal > > path") > > Fixes: 1162f5a0ef31 ("net/iavf: support flexible Rx descriptor in SSE > > path") > > Fixes: 5b6e8859081d ("net/iavf: support flexible Rx descriptor in AVX > > path") > > Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex > > descriptor") > > Cc: stable@dpdk.org > > > > Signed-off-by: Zhichao Zeng >=20 > Tested and passed. > Tested-by: Ke Xu Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi >=20 > > --- > > drivers/net/iavf/iavf_rxtx.c | 9 +- > > drivers/net/iavf/iavf_rxtx_vec_avx2.c | 118 +++++++++++++++------ > > drivers/net/iavf/iavf_rxtx_vec_avx512.c | 133 ++++++++++++++++++------ > > drivers/net/iavf/iavf_rxtx_vec_sse.c | 77 ++++++++++---- > > 4 files changed, 252 insertions(+), 85 deletions(-) > >