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 48006A0547; Thu, 28 Oct 2021 17:02:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C5E6841140; Thu, 28 Oct 2021 17:02:49 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2060.outbound.protection.outlook.com [40.107.220.60]) by mails.dpdk.org (Postfix) with ESMTP id 95F564111A for ; Thu, 28 Oct 2021 17:02:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fOxdzBCFoQ+jHSbFf16BiscAZ4vE0Av1tbOFAqntZsU+DlSKhUlicKf3Lv1hNwS6Dk82R2nnZ9wqj9A/l5YHhIQsO2aJstv9kNlFk5Dlh1yXuv/31cN+dncyuWCgBnGI/O2W0qxkgKu/2cOeEGaurMvOxtnbm8pGJkJLrOec8gp67PWlxXy10Y6zXBoxQyoLoJg3AGXCOdcU8eC5OMIBg4aQm1tT7bdb4jWJ/yPjOH712yG8xnOyAEnY8mJqhD6yayJeW/bnZP6gH0SqlW9XOpl2ZXAbh7xB44StYX2c7/6X1Dop+SdXRIANHiys1M8kVHJhSqwUoiG5+xKnPpAD+Q== 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=BtKG3/aLigqgKesNZvu6ZGQJLwZsBg3K5lTGtL+wGAc=; b=hLSZwavfTqj8HfkalSWPyTtlSW9qtvz59gdvmFZPISqZG/TbB5fwmLV/Llqr22+YgQPtSHIRx4K7FRpZIgknZBbJd/gDk06RYt7X3B0rTXtj4orprJs2i3B2UlN5W+UPv2wH565kwQdQAroZhJprkQD8E5hkY+S6jat7Le20SyP2SWRQ95eRLmLSvQnXorygYZyqGiKsmDCQhZIQ11UlktN3nkGcVG/dPwmcdUHCFfk0v+rF6H9gaGCIQtQN7aN6pcbpMjWUgOn26KnjDtr9i0105AWpMnEOQIjjB3sU5JxeUtkF2gak2c8ABQoLNr17+Nmdr/4RZ8MA9bxfb2aMEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BtKG3/aLigqgKesNZvu6ZGQJLwZsBg3K5lTGtL+wGAc=; b=UU8AEC43xsbV7nsxFpTmCjqE6+uChr+uvLr4U2W1D7th4K03H7lw7u5+0B5LNyGIKi1TbUPS5Ll3Z8YqyYvUpGLrjyJ76yJdLz2N3Hltmqb/laxvRrkPlmqp0MeInXRxMmtc5PW/4QaQt9iWfuXpMnlHZnfkrHku4wPgSTIaP7DPP1thZ0Rd6b1kBQRTdoTlP14NHhqPUhLzalYri47hgv41iAJ/CH/S2tnba0UHfnb7nCvR53m6ZWCzS6ld/ROh6+2gKNV59TVEW6aHMyqY7dAql0H9jcqI5Lkd/N1dJuaaCgUh4jrhjPNB1mOt/MPiXLRjZxogkiQglbnNgwRpNw== Received: from DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) by DM4PR12MB5376.namprd12.prod.outlook.com (2603:10b6:5:39a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Thu, 28 Oct 2021 15:02:46 +0000 Received: from DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665]) by DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665%9]) with mapi id 15.20.4649.015; Thu, 28 Oct 2021 15:02:46 +0000 From: Raslan Darawsheh To: Haifei Luo , Matan Azrad , Ori Kam , Slava Ovsiienko , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon Thread-Topic: [PATCH] net/mlx5: enhancement for flow dump value Thread-Index: AQHXyh2XiRZjsTd3T0KR/CsYbuOvXqvohUeA Date: Thu, 28 Oct 2021 15:02:46 +0000 Message-ID: References: <20211026035632.11840-1-haifeil@nvidia.com> In-Reply-To: <20211026035632.11840-1-haifeil@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dea301e4-fdd7-4822-5a4f-08d99a240093 x-ms-traffictypediagnostic: DM4PR12MB5376: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lpDvo6aj5kBok6cQNVmJOo+iMfGpRCRlkjuYANkkkqyImR0yfOQhyMf0eUI74HW/ce9M7vuNVBUHHpf/DWHiNfwoO+pPTHZ4NnQO/lDrRUdP4wmV25H/2VTkt7cvvrstdYXOjEDkEZfA5VSBNrCMP1V0+4irSZh04VFgJ6ybPhp0o21EG6XfaX1uSyQRG4t9CgxhMwagH6d/LEP8z/FcPELU1v4QqSnr9pw4KomiuJ4M5+dpOcf0Bwso+5qMmRiocvXw7MIMQ0OnlE+0Vg1zzF6/9RKdV5fIeOn6PkqPOsIQ+dFlLTv/B3QhcfYfZ1Kt3HfuU1GdaFXKURy++l3ze/DzBbMZYk7RX25FK4WAl7N1n1diarthEKSJKtiCYtz0TyABUDchsQ4ScBQmDvuIirfnL7PuqFm8Ri7oTA6ZFokbja8Q34ji85vtzWd+IiSV2apsied97y3LVEZ/dm1lEbtuFSR/wlYCwFg3wwrPgYPrRsqXjNDIYW55IcamVCywpJi0rjIN47Fk81ws6V4zgBtUQ7EBLikCiGgmSd1rHf5WZGq5RpV1FkBMUb7Sp1V53qEfYsC5V0hm475YKvCX1XtgO2U1O+bY9cBPCusHQRP8MVwzm74ulHw6vTz5ZXfVaj/+nJCV2lKIu9AA8SezJSFCTC9da+rDQi3cLf3K39zLDh5iQEyhFp4bF4+0fvGbvqG+kw9VaGAEvD/V5Vof5A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5312.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(508600001)(26005)(71200400001)(53546011)(6506007)(55016002)(2906002)(316002)(110136005)(54906003)(4326008)(9686003)(5660300002)(186003)(33656002)(7696005)(66476007)(66556008)(122000001)(38070700005)(66446008)(52536014)(76116006)(64756008)(38100700002)(66946007)(83380400001)(8676002)(86362001)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ANrkaGGDnOkn7nlSF7V0ktkjWK3v7YY5rWBbxMqW177a9rMCFVGFvNhoXoXK?= =?us-ascii?Q?8cDYOcu5TIhhXXrdeq9UsYM6HD19/9L4j9gBT5PTA75ICPLlduMxZPQvXxRS?= =?us-ascii?Q?iWByPgGKAYf9ceNNZef4BLWj/CLAfVBxcJf3Zb0TIlM04LOifZI+8TiVpe3W?= =?us-ascii?Q?weRs+zQvInyCbDtdpPUvbHAak/4H09Fm7T0j7Jn3iQB4zqm2nST8/vyuKZbM?= =?us-ascii?Q?gRxOB+7anmdIvtVW/4HGNcPsd9uoilWHFCUx2foZz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olDCCNyYbJizJkL7bsBS0HgTgOUOnMkBbfX8hszfGFp+RR37r?= =?us-ascii?Q?En3+ysoCKgmKDA9c+ZDpoxoh8VQNE2/CgcVtZbLz9iKB0US6LIHBT5zauHzw?= =?us-ascii?Q?pFJ8oGlpP0kvwtfrkhHygF53C/zTUiLNqQ7Yi3M5rBF4bfEUNXmc3TzMqFBf?= =?us-ascii?Q?M1Psx1XVU6GB9WmIjcROr12ZMtjWzPVWb12lf8f8Ps2o5A1kPHwHAkwk4SGj?= =?us-ascii?Q?KHo1YEEHFsdwJ6vWm5DwZfOtZKYiHA4GqXuyytFPTwQ0L4QFvJC21yIkfJUf?= =?us-ascii?Q?GS7YwR5HOzoweJsfDZsEzvCjx4bmtuifSS/bUe7cB5mk+unsgiO5Mo5i2ovA?= =?us-ascii?Q?JAmh61jl1II4s84kTsfIj6sbWf5ksgCyKpf/HoCNJE2lyQwGRzTvHbEWZ0WK?= =?us-ascii?Q?tDfslyq2fd0FVGXzgeWx5EY7GPOQqJi3cMvbAm0CYTez3KGNW3+VfcUMsvW6?= =?us-ascii?Q?C3a15OcthchBkY43WtPboik=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5312.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dea301e4-fdd7-4822-5a4f-08d99a240093 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2021 15:02:46.7000 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CDNMj+B72/Dh3gMjUxtw2hw/P8NDHcehO3M0BKWQIrCXjG6wR+0wAXk7m+j4X7bBeJjmtZBVAFdc/Jb6QQ9/Ow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5376 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: enhancement for flow dump value 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 Sender: "dev" Hi, > -----Original Message----- > From: Haifei Luo > Sent: Tuesday, October 26, 2021 6:57 AM > To: Matan Azrad ; Ori Kam ; Slava > Ovsiienko ; ferruh.yigit@intel.com > Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon > ; Raslan Darawsheh > Subject: [PATCH] net/mlx5: enhancement for flow dump value >=20 > Multiple rules could use the same encap_decap/modify_hdr/counter action. > The flow dump data could be duplicated. >=20 > To avoid redundancy, flow dump value is based on the actions' pointer > instead of previous rules' pointer. >=20 > For counter, the data is stored in cmng of priv->sh. > For encap_decap/modify_hdr, the data stored in > encaps_decaps/modify_cmds. > Traverse the fields and get action's pointer and information. >=20 > Formats are same for information in the dump except "id" stands for > actions' pointer: > Counter: rec_type,id,hits,bytes > Modify_hdr: rec_type,id,actions_number,actions > Encap_decap: rec_type,id,buf >=20 > Signed-off-by: Haifei Luo > Acked-by: Viacheslav Ovsiienko > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh