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 D2949A0C47; Tue, 12 Oct 2021 10:22:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7C824067C; Tue, 12 Oct 2021 10:22:22 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2059.outbound.protection.outlook.com [40.107.236.59]) by mails.dpdk.org (Postfix) with ESMTP id 720C940151 for ; Tue, 12 Oct 2021 10:22:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cvirxFt33C0u7wayy5JjdnQiL8pvc0FRleV2Mr//RwyxxP9wiehahciwlHbboRXvLcraooK9jI6INF+YyhoPg6g7Ke5WLpBiq/5Q4s+OgJiwFv9fLwrr62DQHfxA9gE0jVEU/TdIWcjiH5oJO5c7XckSwgR8S6bXvxz+onIpb26KNErVDHC5KpJeJ5TQHl0SOu06dzr8kpqOlKfIw7y6h4cxuGnpw7aAvLA2hXQyH6Oc6YwUYVlE4rTLUpa6WcRMbvNIpD4uMG+WrwPBdCW9SkQEC2HYVxOXRvH8WaK0JRKsXT+cGHBvIo9Zi+O6w/7mRw2onYL4dbb/hGCEJTNxWQ== 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=eUo7UVebBIM49MfyCIVyZy+/8H1p2ezwAX6pYPjzvxk=; b=MxnTzHUuz8qJE1PWV2xTsm/+eo0Mi0FOHNO0d/2edpVLRPh8frnfCvA4hg/1j1I8hDJ4ILVNeKVWeOtopipu8k+i6adNnVKOglAvVYuO0gSJHO5jpPAUP3Xm2aGEPFf4ucr+bleQrF0SgTO5yFQqroqqx0nvUkiN17iRJl1/H1GxjzTNWOp42jXcUgdYKFqvmcunPRzgEQ9L/fmCCO6NgrKV2MbEO9QKm5UL+3ja4avjfEXUau2ZVU+wJhLQX7wXDfeUVLdeCtjfsfVUcsXK+029RWkTE3u0Qj3AMGh7BZidckWwDojLt6uVuEjo8ji2Kj5cVaXiCKGSPquQht7lrQ== 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=eUo7UVebBIM49MfyCIVyZy+/8H1p2ezwAX6pYPjzvxk=; b=sfIWqXzvIQVEFGubNw7x3AfU+u+1Kd11AYgyZzCicKodjpaool4X+u9ZqWfd75p5XXFpRJ6GIlEJgcSNKmyq811WOexkyAs2J1RE7Fqi58g4rfDYEgESpV4uVLH/0IQIAYdJvc3EX+MVx2hPUlNbUiXaP4IvivPcbCuaEjN2nRlqyx97Yy3sOEZiNAAYlBQaFCCOeH3CoBSC0HHZsIcZGCMrJ9+6CkgxXIycV8h3bIpeY6/cOhNQNpihXAmRO+zmdYSawVWZFTl2UxUeViAQ+HL/iR1snvYwiQjpGKYFenJAh1Es4pmSB/9UF/F/+gMiG0Yefd3KQZYFTwAMUFn94Q== Received: from DM8PR12MB5398.namprd12.prod.outlook.com (2603:10b6:8:3f::5) by DM4PR12MB5309.namprd12.prod.outlook.com (2603:10b6:5:39d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.22; Tue, 12 Oct 2021 08:22:20 +0000 Received: from DM8PR12MB5398.namprd12.prod.outlook.com ([fe80::bcc3:e0a7:dec:ca6d]) by DM8PR12MB5398.namprd12.prod.outlook.com ([fe80::bcc3:e0a7:dec:ca6d%4]) with mapi id 15.20.4587.026; Tue, 12 Oct 2021 08:22:20 +0000 From: "Sean Zhang (Networking SW)" To: Wisam Monther , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Raslan Darawsheh Thread-Topic: [PATCH] app/flow-perf: add destination ports parameter Thread-Index: AQHXvz4u/EmuiFR6PEqm8qqna8eiq6vPAZ6AgAACqACAAAFzUA== Date: Tue, 12 Oct 2021 08:22:20 +0000 Message-ID: References: <20211012034238.386505-1-xiazhang@nvidia.com> In-Reply-To: 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: eb8a647a-5637-4dbd-d103-08d98d596908 x-ms-traffictypediagnostic: DM4PR12MB5309: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /MQk4nM0L6p+gfaJrz8dbR0og+9mij6O7OrlhWJXRnsEziqk3is/ye6SB533QpBF+WlwKqwd+ssOc29JEcNEGOs611xOHn4vIs245SNyjKE73ugJBJmx7WCUN900PTa+SacjYgpZDsUVY7/vOmrtKGTXlhy/wM/rzA0F5+3aAwkmv6vs8eSD8TF6bhuHcObxvErXqHC1Qx7SvBFfescW3dwatzPlb0pSR1UHs9Vd8YpZ56yAcaT5AqtXs7ZWeXzk+jZ3p4KT4+hqSl9V0fFiZ38aSCDSIJYWKEuWIx2aG2WYa28h5IspE8Z2Ooc8G6KxVAttUlmH82cqFbP7K8MAsXB618eeTyYNjdiR7gtdI6DrJIeVaTuOsA4RHjPaSMNpJq/NQ80WmthvCxp8nrXQg7JyGtX88rUl1geF1lJwvkgEGUyh+1bUmoPSJ59rstXid4SbRUTB/MZjpDa4VWZMMc7HKYuIPsbnS6F3q67PmtIOaH/Vf6UpZx/LQbjmuvjXyEePMZPfoQt7l2ZKGraR9UBo3lzmBuTPjh1XoMF+TagMChSO6ICXazOFrEluHOVdLhbAiNepAmGCkhByvKw/QsQwpgrW4qxtzS3s6a7IS0gFmUW7QLJI0kE/2shCsq40tbEm1Eh3K4e5hFHL+tFmhakq+JDodmiTbNGzK90wghGmgt/Lro0J1p5/T57W+toU9vf5hz6Zu0Ys/Sv+S0ygWA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR12MB5398.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(8936002)(38070700005)(53546011)(6506007)(54906003)(2906002)(83380400001)(316002)(26005)(55016002)(8676002)(66446008)(508600001)(107886003)(38100700002)(86362001)(64756008)(52536014)(71200400001)(66556008)(186003)(5660300002)(66946007)(7696005)(4326008)(9686003)(33656002)(76116006)(66476007)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JVKJENGuVTm+dWDI+XBwilajI7Kyng11YpMxEsr9xoIlQena3qt9zzglW+zG?= =?us-ascii?Q?md73mkqoOfEK6grxuMSwlV53gTkz39neMe7/SXZqfgHLQSuaCC9hdS1WVMRw?= =?us-ascii?Q?TpEXF4udr7eRSQkWNPNCTUKGoqXmcPL0wrMVARXUklMDzOjAnacaUJuSlS4t?= =?us-ascii?Q?08oaIiZtyaXZ0gUacYpFwx5mvIvijFVCf4PmPVncOWFDKKYSr3zsABlAw+/N?= =?us-ascii?Q?mDimF8QPhrrES1h1MoRs0ddbydHnnxmYsk71o9VI6xt6hUXN9y3h2FiEJL5T?= =?us-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hGGqH3mBHSpIn32/8yLfFm?= =?us-ascii?Q?5zLi4hVRA1gOgAo88OipmmQPioK2HzgMMCF6jPIEQ2PVkOyJkW/fDiKQd13s?= =?us-ascii?Q?j4cbkdl/uoj0ZOWYiq5TYGwu6MFOxK4y4aUpwSeuPaPr8FlERdbDoZsf9ql8?= =?us-ascii?Q?iP8=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: DM8PR12MB5398.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eb8a647a-5637-4dbd-d103-08d98d596908 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2021 08:22:20.2212 (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: 9y9xR81Adt5DrFlZv8vwBE7JKaLDQUrOIej4ugQxzfv13qZzfO3whXy4X4tbC2LASawsE+9MK22lFMWEOArY1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5309 Subject: Re: [dpdk-dev] [PATCH] app/flow-perf: add destination ports parameter 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" > -----Original Message----- > From: Wisam Monther > Sent: Tuesday, October 12, 2021 4:16 PM > To: Sean Zhang (Networking SW) ; NBU-Contact- > Thomas Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: RE: [PATCH] app/flow-perf: add destination ports parameter >=20 >=20 >=20 > > -----Original Message----- > > From: Sean Zhang (Networking SW) > > Sent: Tuesday, October 12, 2021 11:14 AM > > To: Wisam Monther ; NBU-Contact-Thomas > Monjalon > > > > Cc: dev@dpdk.org; Raslan Darawsheh > > Subject: RE: [PATCH] app/flow-perf: add destination ports parameter > > > > Hi Wisam, > > > > > -----Original Message----- > > > From: Wisam Monther > > > Sent: Tuesday, October 12, 2021 3:53 PM > > > To: Sean Zhang (Networking SW) ; NBU-Contact- > > > Thomas Monjalon > > > Cc: dev@dpdk.org; Raslan Darawsheh > > > Subject: RE: [PATCH] app/flow-perf: add destination ports parameter > > > > > > Hi, > > > > > > > -----Original Message----- > > > > From: Sean Zhang (Networking SW) > > > > Sent: Tuesday, October 12, 2021 6:43 AM > > > > To: NBU-Contact-Thomas Monjalon ; Wisam > > > Monther > > > > > > > > Cc: dev@dpdk.org; Raslan Darawsheh > > > > Subject: [PATCH] app/flow-perf: add destination ports parameter > > > > > > > > Add destination ports(dst-ports) parameter for port-id action, the > > > > parameter is only valid for port-id action. The parameter is not > > > > Must, and the value is 1 by default as before if not provided. > > > > > > > > For example: > > > > > > > > $ dpdk-test-flow-perf -w 08:00.0,representor=3D[0,1] -- --transfer = \ > > > > > --ingress --transfer --ether --portmask=3D0x2 --vxlan-encap \ > > > > > --port-id > > > > > --dst-ports=3D0 > > > > > > > > This command means the rule created on representor 0 with port 0 > > > > as destination, since the portmask is 0x2 and dst-ports is 0: > > > > > > > > $ dpdk-test-flow-perf -w 08:00.0,representor=3D[0,1] \ > > > > > -w 08:00.1,representor=3D[0,1]-- --transfer --ingress --transfer = \ > > > > > --ether --portmask=3D0x12 --vxlan-encap --port-id --dst-ports=3D0= ,3 > > > > > > > > This command means the rules created on both representor 0 of PF 0 > > > > and PF 1, the destination port for the first represontor is PF 0, > > > > and the destination port for the other one it PF 1. > > > > > > > > Signed-off-by: Sean Zhang > > > > > > Do you think it's applicable to use the same option? > > > I mean, usage: > > > --port-id: means default. > > > --port-id=3DN,M: use the parsing ports? > > > > Yes, since the argument can be optional, your suggestion is > > applicable. So do you suggest to change to --port-id=3DN,M? >=20 > Yes after 2end look, it make more sense to remove the dependency of two > options for same action. OK, I will update the patch. Thanks, Sean >=20 > > > > > > > > BRs, > > > Wisam Jaddo