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 E7DC9A00C5; Fri, 4 Nov 2022 14:23:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D43F742D10; Fri, 4 Nov 2022 14:23:39 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) by mails.dpdk.org (Postfix) with ESMTP id 8722442D0E for ; Fri, 4 Nov 2022 14:23:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ptp2ASa7D58OMA1KoZ/HxIEVQ2YrQKJBA87zVDZOfjWwEwDlkpc7YoJqUVwCm4n351fKFzLeHDJxhFYguGRrg6MCXPaoceAuIwT/F9V8x44xGu9AQOPf6DmNM8x3cvZwP66146tZp/vHGx2hOMbymdm9XZSawgdnno7Lj1P8P63OiAtMcAlQ31CkN7+VQCYBzPPcjqjIHh/cJv/ZvSx9sHlh3mOQQt2fZzGsOFMV2bUnrhJIHnDkRt6hPEhEI4ZaakVrEfA/NgTz4lqHyDTRTuXxwve1kEhscFcvGz2Br04Vx+TK6O262P9pEAAkGoUhBwa9HFsHTMrBsG88wLbGmQ== 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=IL62f/x+/1vAhZJmtA2CmQoMOdjics965cetnz5TT2A=; b=FBmXWupx4f+RBJ3rzwWJDl0adcXFiWDV8V3sRsgvU4d9HUbJYR59MknulYPXKrhizvqKB5qYl/JUJWncD+u7lLeAsrrBUCO884mEMfr/USnjGFXuX6Qfv24EgTNTgJ9X9qK9S6hnQR6BhgP31tZgCTucdlIfhhMjAlpW2JPA1JKdj4PHaFLQbB4POSgrSi3sn8o+Agj4FMbu9KiJGlSkSFVjMyYQPXsdq/gWBoH5yWsIz9o912BN8lUfFTKPFN+/+Tl/PHpkygSqGi1t0DVWfl/HN9hOuT8KiignJlFZvKOjsec/3yVG2Y75uY6t5/WFRG5XfbWdlgMy/9JHmOP9sw== 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=IL62f/x+/1vAhZJmtA2CmQoMOdjics965cetnz5TT2A=; b=aSPEb2pLvbmXenvqoXfnzHU1831wEQfxLp16BOdam/V9Ot9x2G5HPSXEuNNLwnvhpWtm2pEGDa2tP3oiAooWQkGDAMxvDa7uILJNbDgtsS/Z547FFuwghQoNYbHjFowzAgNhHG7rsbPy+IMaURtBOBwtInuLdQXSe2o1WRCIwtP0UqzN+daGOKf9+oesAzu1VUhpcvkekMJgCQICXsRRPIJ/lSrDiITAgxfQ422K6Ejv2M8z27BoAZb6u0G8Z63Mx/yArPNUlVHceD7do+Qd45t4EM+JpUkQVamPete854G4qWgCZgA1LxVJ0VrtIvL2K3S6GZIyMwXctISJepO0jQ== Received: from PH0PR12MB5451.namprd12.prod.outlook.com (2603:10b6:510:ee::20) by MN0PR12MB6365.namprd12.prod.outlook.com (2603:10b6:208:3c2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.20; Fri, 4 Nov 2022 13:23:36 +0000 Received: from PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::646e:ff6:794b:f4b4]) by PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::646e:ff6:794b:f4b4%4]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 13:23:36 +0000 From: "Jiawei(Jonny) Wang" To: "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: Raslan Darawsheh , Asaf Penso , Matan Azrad , Slava Ovsiienko , "dev@dpdk.org" Subject: RE: [PATCH] doc: update sample action description for mlx5 Thread-Topic: [PATCH] doc: update sample action description for mlx5 Thread-Index: AQHY37XA2svpHr+boEam/zuykq10264N3UYAgCEBz6A= Date: Fri, 4 Nov 2022 13:23:36 +0000 Message-ID: References: <20221014101409.49036-1-jiaweiw@nvidia.com> <5157278.bB369e8A3T@thomas> In-Reply-To: <5157278.bB369e8A3T@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR12MB5451:EE_|MN0PR12MB6365:EE_ x-ms-office365-filtering-correlation-id: b51aa431-9e85-40fe-2e46-08dabe67c792 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jweDdyElD/ginbHnGRJ1cdBDGnnMTSWAjJEjjvs4jKcNqzYBBnmsZOLzg+rYMO8cDMfR6EGKMv9nN8iVVvJ7UA584cm0kOiySWcl4znxCXDSge6p+gvbrlGKkAlImocj7VS12c2uJzJHOV5xq6K5zJMepkn8smgQPtfvI3m8LUnbqHULibiXNFm5ViG2g4RUKQlO6w1Mx+KcO7NuBzBOJmoidTG2YQk/2HRqxDHqqntGrRpbMKBMkhteGkJGIRsPWHkP2E0ypTzsPYY7RHSSJQQyrdCn/vAY3FyWrkr4p3mYFBCW09NAIEV/M/44zRARjInIyYkKJrGQzX1gtu5xSpoMXDWmrogcYgGSyEsdL91Ty/q+QWzPhxjHtuI6lU/pA9z/A4TFJpAlfERrbJ0LxWQPOFPJmZifjojX1F5XMsQ+sAJ1hvDGnQlyDpKTYlji6VT1rImm2Mi7alTAu2L068eq9vkjF/+QX984d4b3nNFi6GAreSZnPQ/wCAKymkrd5lo9lodFJwQMWuBYT38kCtBznZ3bSEeUo8mkUP2KpCEICzXf+/y4Mf1FHGnYOkWO/Uq7b4y0jxHJGtCwdLjFXQTIUHmJ5jra8FHWn0qEad6Sd5GQ1xAWRl5pVCACKQOYDpjMTeaRFidsyYCPzNG7zo7I5WWC6yB7QMI8LBHetIPvHfb3Xj4a+RwOhbSrNN9+hx+seNJFC4xrMK3Av/WQdwUc57nQs2JhPt4/IA5Hk5NQ1RPDRKB/LY6vuSQ6dnd+gaLI+RbS+sV5/UcUeSt36Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB5451.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(39860400002)(376002)(396003)(136003)(346002)(451199015)(478600001)(54906003)(186003)(6916009)(64756008)(66556008)(66476007)(5660300002)(8676002)(6506007)(7696005)(53546011)(71200400001)(26005)(41300700001)(9686003)(8936002)(4326008)(15650500001)(52536014)(76116006)(2906002)(83380400001)(38070700005)(55016003)(122000001)(66946007)(66446008)(316002)(38100700002)(33656002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?bWsp2UY8g0lZ4vryZlzKzeB7w0hq7u4zispQRRZ+9esntT//Rppk0olakIfz?= =?us-ascii?Q?ckMOiw5TzdksTNh1S2ZZt/eJFn/y1MWiNGOWMGovXts3/mw8w8suzNdgkYtS?= =?us-ascii?Q?3CfI9E42qjeIYk0+ZHMLB4gKGX8EZpOWFX33XjSjkJZHoUzM0C0Wi/T5wFyY?= =?us-ascii?Q?yWEMbcYRhFDXVwr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bD2FLnqcG8NVK?= =?us-ascii?Q?9hNM5QHdi3fmvgdxeVIw/LzzumKhLllPjDp1PDl0XNaC6/xG9d9vLSs8r1tV?= =?us-ascii?Q?cu6ekOg7e+E0TATgj1uwqf72AxMFLCw7sjrRJLMl3RuMFVXpwyN3p2um/aCy?= =?us-ascii?Q?WCGXJb/vb6bUN4tE55P2BHKEHc4Qe/ljebqR5Vmu/YaLUncHDkT63azsC8GG?= =?us-ascii?Q?go50SUa6JdveHV6qW6W6OwIbqDcLwrfqUMcLLfUDHVdyQCEdYC/QCeEwPEku?= =?us-ascii?Q?jZB1IOS5CAQJAykP3004OftkCv8cH2IY4i/JjpOsEa3g5PXiksRZOUc4tl/u?= =?us-ascii?Q?RZbUFqqT2eLnlT4P3Ok5Nfm3vyLOm2Ti5Ew0Sm7KFPtJuSihbp17cvUnU4Rb?= =?us-ascii?Q?x3wRSGgZQ+kZOLuA20M/go1Kuc7g5Q7k4PfEZLMO74RjpHO3C56WPZwp4c36?= =?us-ascii?Q?Kh9HSNojc4kd1rMetqrVRr2WDj8NU1IApkyUXEMAaYKUvcsJ1usUVHEH+185?= =?us-ascii?Q?Zq6f08z/cUjqkE2mHfA=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: PH0PR12MB5451.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b51aa431-9e85-40fe-2e46-08dabe67c792 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2022 13:23:36.4876 (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: v+yxoAxmElEF1NxAnCVZnDQnHsYM9CKkNwQ7o0k10gAX206ef1GUeRxdTYZEqWWDIZqzdFFzCG5zAdZSB35Jrg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6365 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 Hi, Sorry for the late reply. > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, October 14, 2022 9:11 PM > To: Jiawei(Jonny) Wang > Cc: Raslan Darawsheh ; Asaf Penso ; > Matan Azrad ; Slava Ovsiienko > ; dev@dpdk.org > Subject: Re: [PATCH] doc: update sample action description for mlx5 >=20 > 14/10/2022 12:14, Jiawei Wang: > > This patch adds mlx5 description about E-Switch mirroring flow > > (RTE_FLOW_ACTION_TYPE_SAMPLE with sample ratio=3D1) with encap action, > > then supports the uplink port only in the sample actions list or in > > the one flow. > > > > Signed-off-by: Jiawei Wang > [...] > > + - For E-Switch mirroring flow, supports ``ENCAP`` actions only to th= e > > + UpLink Port and in either of sample actions list or in the flow. >=20 > Sorry I don't understand the second part of the sentence: > "and in either of sample actions list or in the flow." >=20 > Please could you explain so we can find a simpler wording? >=20 RTE sample action support a list of actions that be defined as below struct= ure: struct rte_flow_action_sample { uint32_t ratio; /**< packets sampled equals to '1/ratio'. */ const struct rte_flow_action *actions; /**< sub-action list specific for the sampling hit cases. */ }; So the second part meaning that 'encap' with 'port' combination can be in t= he 'sub-action' list of sample Or flow actions while user calls rte_flow_create(,, actions[]); >=20