From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0047.outbound.protection.outlook.com [104.47.0.47]) by dpdk.org (Postfix) with ESMTP id 05B081B1A5 for ; Wed, 16 May 2018 14:43:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j1eLSWfOE6YZbui0abpI63DhAboC6BhSNd8Aedrnozs=; b=BD9NtjYBvl7OuQnS7148P5ywexIZf1HSQHYaMCxaUMaN+XXoJPdJpKLTcWnP6kwhWb2GdGgOZdcFEngru9fEywvJd6f97xFavsmx+TUbjLwfkJp3vXSdIkDKroaQDkFCVCp3FC7p4EDqbh5Cekl0+U+EA1/q90N2xhSKf1ie9E0= Received: from DB6PR05MB3430.eurprd05.prod.outlook.com (10.170.223.17) by DB6PR05MB4758.eurprd05.prod.outlook.com (10.168.21.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Wed, 16 May 2018 12:43:14 +0000 Received: from DB6PR05MB3430.eurprd05.prod.outlook.com ([fe80::899:c1c9:48f:592c]) by DB6PR05MB3430.eurprd05.prod.outlook.com ([fe80::899:c1c9:48f:592c%13]) with mapi id 15.20.0776.010; Wed, 16 May 2018 12:43:11 +0000 From: Wisam Monther To: Kevin Traynor , "jingjing.wu@intel.com" , "wenzhuo.lu@intel.com" , Thomas Monjalon CC: Raslan Darawsheh , "dev@dpdk.org" , Shahaf Shuler Thread-Topic: [dpdk-dev] [PATCH 1/2] app/testpmd: add custom topology command Thread-Index: AQHT7FXU1Zajm1916UCLE7lOrBLdGqQyTX4AgAAAJAA= Date: Wed, 16 May 2018 12:43:11 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=wisamm@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR05MB4758; 7:bfNPk0Hu/V+PfLPer3t8zFcs4enIVjS17ixlu8gcHnf8rYDo8OlnUtKyPcN9RbEoi2D94nnQtCiNfpZhSEtIVxmJWhMd1iqefvWwdfngO8PgSpXvTRU9mk7CC+gLfRCa7diCYDsTdESc/GJriNeVDhjqJUl3s8snsJA589yMjuvIT3sLj6p+xb92kSqm+l3lDU4vDAhuCrKCLf44Q5UTJgmDBPUHnmWaXeXpv1g3nFVKTIETXNGGCpFd85JKMlDC x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB6PR05MB4758; x-ms-traffictypediagnostic: DB6PR05MB4758: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR05MB4758; BCL:0; PCL:0; RULEID:; SRVR:DB6PR05MB4758; x-forefront-prvs: 0674DC6DD3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39380400002)(39860400002)(376002)(396003)(346002)(199004)(189003)(13464003)(14454004)(11346002)(2201001)(478600001)(86362001)(2900100001)(2501003)(54906003)(6436002)(106356001)(6506007)(68736007)(53546011)(99286004)(105586002)(7696005)(59450400001)(110136005)(25786009)(76176011)(5250100002)(6116002)(446003)(3846002)(486006)(476003)(316002)(81166006)(81156014)(3280700002)(66066001)(8676002)(9686003)(305945005)(7736002)(107886003)(4326008)(53936002)(55016002)(26005)(2906002)(33656002)(186003)(102836004)(97736004)(229853002)(74316002)(3660700001)(8936002)(5660300001)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR05MB4758; H:DB6PR05MB3430.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: oEjCh6KVN4/a2DjqI21frW7HNjvf5pncSA90lpzMQa3Eg3gzwqzeB9F6GvLDTFa66ifDpgXpGaKx8mEeZ768yVG5g6mxFdqiOQIIDmiW/1xAhaUcBA5YgaoS3xbXPRKDAPU0u56VB6L7scv2uVh/6RAjd6XnwNZ9xzVQ8jyMtNK9LnkxAO+DXBlXfilNiEUI spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 12d7c09f-7677-4e16-42c9-08d5bb2a957e X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12d7c09f-7677-4e16-42c9-08d5bb2a957e X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2018 12:43:11.2643 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR05MB4758 Subject: Re: [dpdk-dev] [PATCH 1/2] app/testpmd: add custom topology command X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 12:43:16 -0000 PSB. BRs, Wisam Jaddo -----Original Message----- From: Kevin Traynor [mailto:ktraynor@redhat.com]=20 Sent: Wednesday, May 16, 2018 3:41 PM To: Wisam Monther; jingjing.wu@intel.com; wenzhuo.lu@intel.com; Thomas Monj= alon Cc: Raslan Darawsheh; dev@dpdk.org; Shahaf Shuler Subject: Re: [dpdk-dev] [PATCH 1/2] app/testpmd: add custom topology comman= d On 05/15/2018 03:05 PM, Wisam Monther wrote: > Hey Kevin, >=20 > What if I have 10 ports and want all 9 ports to forward packets to=20 > port 0, this cannot done in paired. > But with this topo the user can overwrite the topo. > E.g: > - Set custom-topo 1 0 > Will make those paired and those two as active only. >=20 > - set custom-topo 2 0 > Will make those two as paired, but still port one will forward packets=20 > to 0. > And the active ports will be 3 ports (0,1,2) And so on... > With this topo you can create your own topo. (Mixed between all topos=20 > or even non-pattern topo for any usage) In my case its needed for=20 > representors and virtio. >=20 > Any traffic coming from representors/vhost (from VM) need to be=20 > forwarded from PF/phy port to the wire. >=20 Thanks for sharing the use case. Will it be an issue that multiple cores may be sending to the same TxQ? I didn't check to see if there is locking provided in the app. [Wisam] I've tested such case recently, and yes it will cause a seg. Fault = in this solution, since multiple cores will access same queues. I'm currently working on a fix for it, I'm planning to map single queues fo= r each core with custom topology to avoid such scenario. > This new topo is useful for such cases. >=20 > BRs, > Wisam jaddo >=20