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 14F2BA0C47; Tue, 12 Oct 2021 10:15:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECD6D4067C; Tue, 12 Oct 2021 10:15:58 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2041.outbound.protection.outlook.com [40.107.243.41]) by mails.dpdk.org (Postfix) with ESMTP id CBF0640142 for ; Tue, 12 Oct 2021 10:15:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFIygUNVLF1mEdFjW5oVh9d65xOX7XFXVJ4Ud0ktO0fbscssK54n210tLYCiLDQ/foQLRZ6FXxtxXhFviqFxf81b4P09sgphA6/rNiL5502FF0wFG9BsqnbhAR0dfmwMfCKEeRncTvxXqVi7116T8wJnJnMyn7IhHiFr20bw4AAazswoyLiAxipnBc9WQOi/sMMMJ+TIo7ELpgphpw/3PLTRWQ+zVsNdOTYftOtT2FaWa/l1wYkLnq9s9yPJxYa9H3f+cKo0uwMtrMP2hdsQrE85TsyHClUSNkihKvL53wBqQAQ/C4w3eak2gy/WmvYnFodHlLWklX7vZBkMCklAIQ== 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=cOyl84Xu4GW5HMkblQPvXdT4YQC6EvDb86pY+17AKRg=; b=Qt0f0Ui4PYKebE5/Z6NkLEpesIO2e9dvW4LWpPqSy0/eQ7c57X2hUXtNAluK1RsjTjWgfQ1EqmoskW8favhxm7FCtt/PY9ckmSJMf2lPK2UgsfLiRyc8A4c2hUNdcLWS9nXt5CWlj958JTJXc9lDLWPpV2e/jqS74d+zoBNUSo1u6HJAvVaQVGdc0M61o8b9jUhbCUWxzId4DzOQwGJ2Zz8Jydaz3o8A5zdSoPfxdq1ha90HTbxzVKJOnUu4ONQs2plWtV0YTr+z3nrATkDH3qAb4rxrLjOIMUVHa4Wsw+LCpsz64EZXi2tMal08sDNgY77wK93ZTQKormf/AGK6Fg== 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=cOyl84Xu4GW5HMkblQPvXdT4YQC6EvDb86pY+17AKRg=; b=ZPyzdMxbTcXUA7svnBlRd630nob50mHqA3isuZBY3vbyWKZh7QWmuRr1axpHW2IzmFR91mCWgl9Vp3toWQ+58eXMgj7ViAdigBBh7yvpODKmiEteOp6mc3Doe1GQoNqrIm3IfZnNJW+SK+5goO/U3otnhDX2pZArW5458+qosNzdqtcrGwBbphYTid65RmPxzMiCfut6WrtZIU3CAYd5udapt5lNBTQg7052r+94vdcdvRuptWcJKPSsuhQ8k44UuXUAVObixtO7J8awB3krOjaG/xFTh0CzKmGitiZTtWGQZicdCMDOAz0fd0xcR4M4isctcxaX3qE2yebXPjHKWQ== Received: from DM4PR12MB5039.namprd12.prod.outlook.com (2603:10b6:5:38a::18) by DM8PR12MB5462.namprd12.prod.outlook.com (2603:10b6:8:24::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Tue, 12 Oct 2021 08:15:56 +0000 Received: from DM4PR12MB5039.namprd12.prod.outlook.com ([fe80::3096:12ef:d306:d065]) by DM4PR12MB5039.namprd12.prod.outlook.com ([fe80::3096:12ef:d306:d065%8]) with mapi id 15.20.4587.026; Tue, 12 Oct 2021 08:15:56 +0000 From: Wisam Monther To: "Sean Zhang (Networking SW)" , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Raslan Darawsheh Thread-Topic: [PATCH] app/flow-perf: add destination ports parameter Thread-Index: AQHXvxtJspyqmYx/0EKuG9jzm9OrDavO/dFQgAAGQQCAAAA8gA== Date: Tue, 12 Oct 2021 08:15:56 +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: 4148cc82-31d9-41ca-0374-08d98d58846a x-ms-traffictypediagnostic: DM8PR12MB5462: 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:4714; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OSFXD/zdj8TmPYZu6Sx7BFO51OyZSCmur7ChiKm4uIIaTWiM5xNxS8hbyoYoHuSwgP6cwaHlT1viMpyWKh4kSpnJQEbSlwDrC4JHadAtq8FCscDliLDzjQmsOUl70DQyVsqUtNo13Klh0n7IfJOn6oT00StqxoyyAGpHpRuH64bWXKpYY84ekJUZ0UmGHGzOKItaKdC98SaimHtBlfh1P8aNC927+w8HMgBWgwylgx+i/4I7D07Fb648dUGrVgntjdl9FncjjJTaTRUWoAW9WAIgiuJf3x8OcYmVq5jjmL9jx95RnHsC1d1p9Bgn667XGjJ/c2PxPgkPFvOAK+OI5G9kOJFzx+1bHiELnGgMvEdOfvMu9I/VKAgZWmiGRnwrPCJUEq7S/CH2f8s+KsxkQvqvjrzdELU+YY2n917NfYkFh5l5yELjLhpdnOcItMBIg9vWvucFrpxz9eroCTON2jf9rWKKuel8Yznv35624dX0UQ3F6pYaE7DYG6Y+mbCd2+WKE0lhVvi87SB6zETm1gGdKpW+BCROG93t7uxUStdqp3Z7kHCVA/bonXh4/KMo2N+zeA1MmdqQDmcfR6rlFOCX5WbUSHH9H4ZL/vB6/o+0EpeZABtwoPU7oxaOXpKJDn07QP3DR/yj1SHILWDixw+EgpJS+dng71mnZ+KitNt1SGW+CETFlFJHQwDPQCgV65fpSICsyhKqQENVHJlZNg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5039.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66946007)(66446008)(64756008)(66556008)(76116006)(5660300002)(52536014)(66476007)(2906002)(110136005)(122000001)(508600001)(4326008)(38100700002)(8676002)(71200400001)(9686003)(316002)(26005)(186003)(107886003)(8936002)(83380400001)(33656002)(6506007)(7696005)(55016002)(38070700005)(86362001)(54906003)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kTQmnJSD5N6soIqCuiYJZpFJ5ZfKCr/uDLR15B+CXG6i28LeTFYoYIQ5I38W?= =?us-ascii?Q?DNfHTNvQRnFTYFpVjOcXpozv4N5OB7VZZErIjw77M8hK6QEgAHulF5ottFTR?= =?us-ascii?Q?CU32eNk1OqQNxMC37JP2aOGueNDSXgtt2P5LiKdsPD2wjbd8kpJ8sBuBBs3G?= =?us-ascii?Q?15M5rRn+ihfMTH2rTWppBavZ3DBIApFG1QlbJ2tc3o200dJiBIFSpMhxka4G?= =?us-ascii?Q?Nrh3Gljh4RTKdsIt+9uuZzRBzY+yPl0dueW8szQ1JJHNk6gMjUcmTXDCQAXT?= =?us-ascii?Q?YI2OQ9Hv1LM9m+D01eCibnTV0alA5EkPg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ZxHuwh4QavMGAoEiQ/qU8n6QyEmO068ahz7pRkIJGczOUSPHB+D?= =?us-ascii?Q?090HMIPpTEXGbAhyBg7lh2zueHntJdn76swFt5NuL2hUMPicJxkXDd03udD4?= =?us-ascii?Q?fIbYFJ6FylWe0r75dSPmx7d4?= 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: DM4PR12MB5039.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4148cc82-31d9-41ca-0374-08d98d58846a X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2021 08:15:56.6958 (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: HXzhRcSWWpJLzIrJ7Gbn6hTy7p7fyIooCq1G2NpLke4YlVNEldZVU8kZLpcm4NZMaSHjPlrBoOATePsoKNorCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5462 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: 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 >=20 > Hi Wisam, >=20 > > -----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? >=20 > Yes, since the argument can be optional, your suggestion is applicable. S= o do > you suggest to change to --port-id=3DN,M? Yes after 2end look, it make more sense to remove the dependency of two opt= ions for same action. >=20 > > > > BRs, > > Wisam Jaddo