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 03D8EA0542 for ; Thu, 22 Sep 2022 03:55:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8A8F40F17; Thu, 22 Sep 2022 03:55:38 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 68CD74067C; Thu, 22 Sep 2022 03:55:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663811735; x=1695347735; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=1oTrqgSPiFm4IjbY6wra0tmVV6S5C5ghVTfxzmZsUPY=; b=n0cY2GjD3M8qbgJG6j9F96EuS34j2oLNqYgnaqDVnHzXERCXVu5Vodv7 CtNB0AmOKXXSIkOBNo7yRd/W7D6w9k5vJqfy86O47gxKb/R0O/P2SbtCR ju2mRxZQwcAyBZLci5+j1flJf/Wi68bHmJs3x4I0zre+KJj3gNHELb7iw U4nlosVA2Bb+Q43XbtkzgLAvna6Yi2G36cFZRqYQV8PI4vUv0p7ss1UZl LdaR2b33VerYTxInJsuhXTVie+/nQ+rjC0v+NyqLQ7Yg7rQHjZ7x4dKfo 0ikPT9a1KOrJ8Ps49FTMLlYKVm0JjmBQtK8inwEuBuqzVEZVjiOP4p5MD g==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="301577135" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="301577135" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 18:55:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="621914320" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga007.fm.intel.com with ESMTP; 21 Sep 2022 18:55:33 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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; Wed, 21 Sep 2022 18:55:34 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 18:55:34 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 18:55:32 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JsmIkhrok9s3yEHL1Jz6NrAfOZ88C/CNFE3AzTX3zfQjClHCGaQor7kNeM9Xv0fNQ5jpU3tPV7Ez/5WoWN0c6ceR15soUwSnMEWn85cbXpEezBQOLOfqVRErw3eXGOik5OZfKSZFQBLbg6GqDHnx2JtD3a7L3+3r3vhLelUnDZAzbExx2j4+hWUJInjIvjp4DAWR5aqnDMNkN6uADukSl2HPs57vpnxrxSUtURSzxbgxN1jd9ayaFPclx48MUA8i2Iqce3V5TIh2Xn8GdKG9T9YyFmxC2rAWPColCrMM20kV6jP+NxZ5LXn6k0BjhHkQMER9SFWFcV/IV5JkseqSQQ== 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=psb90zDpS6F7WrDXZRjWzgW5bc5XcoVnGQxFjTjp8z4=; b=ioN4MKP/v4z5lBPw6HHcdrUD2I70BhaKuubsU31AkJxeqyYqxCw3btG7gC6+VGzuCMVcuC1QNT+30nFIwqaWqj8y4TVmEjHXbKRS6xqXW4BjZk0sN78jwmoLDbkJdTsK/fCRHAHJYBOsqKSO51kGMC9S1RD6D4bLayVnPiUtt1I51iT0aBr8+BL1sXae7BwU1VXOizf7YuRWw65b5qK+xN5FwkgaZymJtDF8lYy5xFaxyOuNOA+G45O0Q2bSIG5yek6K+tes9zuOZSPAPVf+g/V5GjKzYxnlI4WEO9VnhNtHTGOSNvJZTefl8W0rxJ9HI3SAluMzBV6w/9W7v+pSWg== 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 PH7PR11MB6056.namprd11.prod.outlook.com (2603:10b6:510:1d4::20) by MN0PR11MB6208.namprd11.prod.outlook.com (2603:10b6:208:3c4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.18; Thu, 22 Sep 2022 01:55:28 +0000 Received: from PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::7508:c5b7:79df:bd21]) by PH7PR11MB6056.namprd11.prod.outlook.com ([fe80::7508:c5b7:79df:bd21%5]) with mapi id 15.20.5632.021; Thu, 22 Sep 2022 01:55:28 +0000 From: "Xu, Ke1" 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 Thread-Topic: [PATCH] net/iavf: fix outer checksum flags Thread-Index: AQHYzMwYooPI7PSM0UyVJ3k8th8Pf63qsr3A Date: Thu, 22 Sep 2022 01:55:28 +0000 Message-ID: References: <20220920083710.185953-1-zhichaox.zeng@intel.com> In-Reply-To: <20220920083710.185953-1-zhichaox.zeng@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action 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: PH7PR11MB6056:EE_|MN0PR11MB6208:EE_ x-ms-office365-filtering-correlation-id: 4a764a2f-ebd0-4f0e-07ec-08da9c3d8651 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gE7fewJjcfxZMKJPcqRIBYBpdVqM+q1PP+wjk+RxUrkOBv6CxlAeq9Cgs0cAAnWkh8m9qusP1vC4odHQ6675t+zqtNTm+X406sLHpBQm7kOAbnb7qHNoLvIH++1kkstfa8t0PbufU9uIaSIhcxsob8sD3urSuBKvgB/SdP3LudA/Gopfd9KEwyomDST6T1Qj/TpZeqKohKhCARmYVtmZGlBHGpmmnhN5N+BNj0VFf3YVVRfKIGmNl4SIutOJM+o/aUaJ5Jpc8g/oySFHSX5EXpwyYj9HwipqYqyAj1Ug4AY0gLbNI4UWqiAIOs9eAhHaFBREDGhRWv3gsoHW6hD9CIN9HGNgxIxdocfNt3X7v0WlnfaeRp4Nb/IWv+rQGwZTAE8Es+l7J99IAKm1xz2VaEbPsVUjEJSnHp5CkkxCcJXPG0LzWO6s1H9iiZo41SYZXu+LzCZWRqd8Ff6H+1GxDrH87C8AI0PBVia8fi21DstuNlMfeXtv9KIFpeQPSgB2j1Y341hNNbQ3n/pzkc06Ju+Z0bEQnONt290D0HxUihMpDg+yuE+AVBGyScIjEUnL6Eo/CCvFCwp9hxVrX8S580VFx2oawcNi59BIauD1br77i+1V0zbTP4vWBS9GfdsHIwFx4ZGluty+uKlnCbs5YtoN2vbXPRdwhq6M8+UJUCEi4NBuSWBfaByKptUM6KraLCw4rWss9+BKzbAbJh+VT8Lhf+/Jjvi+7R6hFOVJiTYlTCNRd+QylvgkpeWeF+XrN4AbY7c2z+slrJMsZeggjA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH7PR11MB6056.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(39860400002)(346002)(136003)(396003)(376002)(451199015)(33656002)(53546011)(107886003)(122000001)(82960400001)(86362001)(38100700002)(5660300002)(52536014)(38070700005)(83380400001)(186003)(2906002)(71200400001)(6506007)(9686003)(26005)(7696005)(76116006)(66946007)(66556008)(64756008)(66446008)(55016003)(66476007)(478600001)(8936002)(41300700001)(54906003)(316002)(8676002)(4326008)(110136005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Kxb05A+kcqHEHaHg8WUoAyUFHiivXYaKMQaP6fwPdCLk2ASM3vNUSlAN3RIH?= =?us-ascii?Q?ZdgXYjugCjEZpRMDN6FR0AXSqUbaEWupdX2xmjhsnAhUhKQqKvUyH82guGzM?= =?us-ascii?Q?/BP++sBujKBaB9euAZ+xx0l7tUw/BIOefTBOsq1UC0MPSFJ7avOv3gwgqxuV?= =?us-ascii?Q?R0Qq/z//w+WnPO+fSnAG3KQMwUmtInUUTgdcDedUok2rw4o22B96blC3lIgd?= =?us-ascii?Q?2yNpDk/oIt7Ib2FKkia5rVeg3xj3g33I8t0WsLDV72mUqcfj7G/9R3Tyxv/z?= =?us-ascii?Q?2r9/1qjCd/yBhUUMo0981Eu63JQza7Nvw5XcHqUgazcNg4LlddJ6rNY3cJdG?=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PAfq7kNmdIhVUn1Ugqt000cQaE8zQ?= =?us-ascii?Q?CZS2ChxWq/NwNQt/dRRrXCH9oBvGsdtnLDy4897FelfajMSCCfX3ClpZgiPy?= =?us-ascii?Q?gQxjgvqRslEsVQHp/mNgHtoH1HEM3SRD8uEcLKpQLV97fqPRkygqeclZBp/7?= =?us-ascii?Q?cmFjVsrgzQ27enVTKWcpc5yDWZUCCP+RxIq4ofwPyrrX2rWlBKWf1O6dvX4l?= =?us-ascii?Q?uUld6l3j4cN9Xj3VFkuXoZauUz8HuMW5+mGVDejCDXHSNZ4fcbdvOZlpiN69?= =?us-ascii?Q?wTb/zozZkfcwy7UPL8cRhXH31ks5cyzajlHCGLcL+EDuQ+5JWT36gTpSgnrh?= =?us-ascii?Q?fwHUi5prG5nCGph7OZ0=3D?= 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: PH7PR11MB6056.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a764a2f-ebd0-4f0e-07ec-08da9c3d8651 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2022 01:55:28.6273 (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: 0c9fMWHGsuT87I4iZ9FWU5SLCE1ySW4wYvRgwArRWxzdfU7Z2bxws4Hc0qhOuASST2HoiMgLnEKj0DZd92sEuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6208 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: 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 >=20 > 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'. >=20 > 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 pa= th > and 'cksum_flags' for SSE vector path to ensure that the 'ol_flags' > can match correct flags. >=20 > Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal > path") > Fixes: 1162f5a0ef31 ("net/iavf: support flexible Rx descriptor in SSE pat= h") > Fixes: 5b6e8859081d ("net/iavf: support flexible Rx descriptor in AVX pat= h") > Fixes: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex > descriptor") > Cc: stable@dpdk.org >=20 > Signed-off-by: Zhichao Zeng Tested and passed. Tested-by: Ke Xu > --- > 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(-) >=20