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 BB344A04B5; Sun, 10 Jan 2021 13:33:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37B53140D52; Sun, 10 Jan 2021 13:33:00 +0100 (CET) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by mails.dpdk.org (Postfix) with ESMTP id E3666140D4C for ; Sun, 10 Jan 2021 13:32:58 +0100 (CET) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 10 Jan 2021 04:32:57 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 10 Jan 2021 12:32:49 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.57) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 10 Jan 2021 12:32:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ia5xNdDH6ZI/U4Mzp7TTDUgFcnDMdssy8C3EZ9GlpHSh1bovxpYnV89E85HhyD/+WZ0y4oXWIKK4AQLoP6EwnYIqU3vFeahDFNhbk7rxyZWuT9Rv1FKk75ypj4k8J4c4NqS9dbSrQJTlfojjAjMR+I/2Fcr6mJQ6Ketx+Wojy8ufB3/Fevf1SXvLlFN6FGNZUYO0Cvejh6O+bNtEx+vBtR5JIjda4v3ZSVT1zxn4B9iSomOKpiXLBn7n7fJp1qPnPLPumVbNW3G5O8ti8UWVombYLLGxI7a9sGU+vEWzq0hedjR7pLGpB5fnWM45DqxZEqRJD3EjuqBMeDO3w9Vcvg== 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-SenderADCheck; bh=cY9ClltvQxZdBC15qEttyFQNLGOmlyqhnokhUG7eAdc=; b=Pgy/n9A7l1aqTZWVkIY+TVmqnQT2oWoXvN+D5V6dVdaAY55q25n/sQveJo0AZzxFZpPnrbgFrjULvMeg+yBrvYeTdxzusiS/T8wV9gEDzSmj5aPX+FZuY8sjKfAQeOhaLiEYuv49Xyhzzzt4gssXto4wYmuDCUH0dgB3QmpCoxKGNCnFr9kJsLtlFE/756IF0kD8tJIAsK4E+IT/3DkWHv/KXZeCfzKuIIuoM6Vx5JjuUMFVIKdt/Wa2U9jS4ET1c+3J4rPLYrqztAE3EaoZ6rHFE3sRPdHWKS2ptWbg6oNYdFAjBSgkKKLmFJPw6OCZ49AkJuzBcyr7VHe/9tiK5Q== 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 Received: from MWHPR12MB1677.namprd12.prod.outlook.com (2603:10b6:301:11::13) by MWHPR12MB1213.namprd12.prod.outlook.com (2603:10b6:300:f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Sun, 10 Jan 2021 12:32:47 +0000 Received: from MWHPR12MB1677.namprd12.prod.outlook.com ([fe80::786c:6a6:1aaa:d7aa]) by MWHPR12MB1677.namprd12.prod.outlook.com ([fe80::786c:6a6:1aaa:d7aa%9]) with mapi id 15.20.3742.012; Sun, 10 Jan 2021 12:32:47 +0000 From: Wisam Monther To: Lijun Ou , "ferruh.yigit@intel.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC] app/testpmd: support multi-process Thread-Index: AQHW5aNQEWc8LI5YFkuKWCsx6ObqgqogzQCw Date: Sun, 10 Jan 2021 12:32:47 +0000 Message-ID: References: <1610099184-37328-1-git-send-email-oulijun@huawei.com> In-Reply-To: <1610099184-37328-1-git-send-email-oulijun@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [37.142.165.156] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dd6ebed4-9188-417b-ff4a-08d8b563d64a x-ms-traffictypediagnostic: MWHPR12MB1213: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0PRWsNPa34748SXx0gqxN9qOz8I+HzaZjOVNhChSYaPWLIwhHSh1p/orN1eM4SzVc2P6yvgqXz3NltCgMDxKSSdvJo3t+RPpQFYYr+EDi+nHbt7vijTAFez88DQ2gkA8bD1QTCrIVzdeQD0oCxZPuag1vMvtYBbIPrPu/Vbujzlup9KxhvvlxYr29SbtmRMrMUuG/UoVN2OuurhOSlw1kFzllw7GA/71zXOw9UE9hi7u1ItTmKDSFzNeu6rUm1OOSOwl6PDjOZdrkJn5y6d+H3VGdzEFjUAwNQmu2AD6jPUE1xPBta8+63xjDGRpJGRXf4+IxEhNvUGwfBDmEdTBZIR1/jdVjivZi2Kx6LIDdxMl58zRyopxyH4MNznrBPc7ZnUWAPfRFk2/EiqsjtklTQVbf32hR6krmPysBj4niPyIBaSdK4XtwLh65gBOTp8x x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR12MB1677.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(396003)(39850400004)(376002)(71200400001)(8676002)(316002)(6506007)(33656002)(66446008)(66946007)(83380400001)(8936002)(53546011)(2906002)(186003)(478600001)(7696005)(64756008)(66476007)(66556008)(5660300002)(52536014)(76116006)(110136005)(4326008)(86362001)(26005)(9686003)(55016002)(21314003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?cUG2xjuA1vivz0beYqBzNGI444bdfrUZSyIhY+TrA4IT5xpPREZxAS70tOZa?= =?us-ascii?Q?q/FckJeofQXeyyKNZ/mOJ8NoaOtheSTGVW3eBknRmACV3ROXNsiz3KX7OjLQ?= =?us-ascii?Q?c61pm+CCC+VMUltg0k7qMda8ous49UBb0bbUo41mXQBYJaI+dyRThKsZB95W?= =?us-ascii?Q?8/MGAscy08KdJTgpZBq+YvVE4ORhUMuD4UrzhD0TuNPw0x4+nNdEr2lLtES8?= =?us-ascii?Q?H2wUl4t9G+hu5Bifqpu9TRfhXmc5a2woI/Gkp8+oqdbjGiVRWGIep40IOTyB?= =?us-ascii?Q?5iWIaDxts6i3oTpmQbC+iYEZTCwmW/6OdJ717SwuDJW4sJB1o6UnnLq/R6v5?= =?us-ascii?Q?7s7TmbXyozfd2Tulcd45UQRmwbMZHjoQsB8XQ7dLZv6j81SZAahVpuPXhruO?= =?us-ascii?Q?yV/PUjWup9nH1AWTLR07YzQzpJVhzY78fGbwkXI0gkUMPEyF1hQYRMVgu1no?= =?us-ascii?Q?OQbrarLZFRWEo/J4+Brdohd2whqcke2OybML9RUgNgGAtOHQYg1X836nffai?= =?us-ascii?Q?EgdjX7vDpOhLFxAVAvxf7LIvHWAikklsFXSeD5sv7c1iB6GEv1cgRVic2iJ7?= =?us-ascii?Q?Pn+uUZMGfVnL0VJUxoQhuK3tLBBK3dJYCCH6hIteVhTS9D+FC+4J9vxCXZl8?= =?us-ascii?Q?T8GnssLoTWYfVWfnHnwdtu8QvC6hUJ8wo5SXsDs1Wx/T+n7uqK4D+lasJV41?= =?us-ascii?Q?T5Su0QVB6xp6llX48mqBPJYUyvQQG7FP8w7OEthTZRdOfGaqgBoYNLqIigPO?= =?us-ascii?Q?mvyibzPqaoTXvvzuq+lzaKb3qKBL1giyvXzw/6EeDosKROxB1pj5BPbSlf4J?= =?us-ascii?Q?8cJ5d7t0RFsALKI/qUeZ69ok8avWhF5SnDz5hAcPQC1CPBAszcHuUJQBozxm?= =?us-ascii?Q?o5qjNHPKdf6L7XVdU5C9w5B1Gc2Ep3kLEOExYu400j5yDhBJYZuHsHxGX/ib?= =?us-ascii?Q?XvWe+tV3SzhLuD96cXOAcvOKd+Rxy1KqF15p76rG0W4=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1677.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd6ebed4-9188-417b-ff4a-08d8b563d64a X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2021 12:32:47.3304 (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: /jVF7iMdxPvF+8CD1ipWu+p+VGdjaRznIY8qhA8tTBCXxeyPITWma8+7c7XHICw2mWGJfJfOwrMV0c0zVCvXjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1213 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1610281977; bh=cY9ClltvQxZdBC15qEttyFQNLGOmlyqhnokhUG7eAdc=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: x-ms-exchange-transport-forked:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=BPA+YmGr6XjKlGUhRAufEPBdWXNkOmwsLrvlXYHa1D5TNIhJ5HrZ2Qxp3FUI2DuDG b2QIVUEKA4ZHhSWhpEChAQEdv/E1Mfk2lrDeuiHEvAORvh7C3hi03NZlZEGjrVLeID j9oULAoaUgNFsXTsloRFEyuNeAqk/LmXUHur8kxQ0AYx9bCRmy570E19w3KqXyjuyS Xr8Cyoo6JJLdaKwwPzu/vecku9GbecLQrgSzdk08r65U1PCdXbm9dgdynbqucfksQY LAjTi+PNvANVCCkgLGW1gnLx6CnD7gVqSBzQfwY3D0Izttfr0f482wtxKTRUMX2yXe tlBDp7vazpejQ== Subject: Re: [dpdk-dev] [RFC] app/testpmd: support multi-process 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: dev On Behalf Of Lijun Ou > Sent: Friday, January 8, 2021 11:46 AM > To: ferruh.yigit@intel.com; wenzhuo.lu@intel.com; beilei.xing@intel.com; > bernard.iremonger@intel.com > Cc: dev@dpdk.org > Subject: [dpdk-dev] [RFC] app/testpmd: support multi-process >=20 > This patch adds multi-process support for testpmd. > The test cmd example as follows: > the primary cmd: > ./testpmd -w xxx --file-prefix=3Dxx -l 0-1 -n 2 -- -i\ > --rxq=3D16 --txq=3D16 --num-procs=3D2 --proc-id=3D0 the secondary cmd: > ./testpmd -w xxx --file-prefix=3Dxx -l 2-3 -n 2 -- -i\ > --rxq=3D16 --txq=3D16 --num-procs=3D2 --proc-id=3D1 >=20 > Signed-off-by: Min Hu (Connor) > Signed-off-by: Lijun Ou > --- > app/test-pmd/cmdline.c | 6 ++- > app/test-pmd/config.c | 9 +++- > app/test-pmd/parameters.c | 9 ++++ > app/test-pmd/testpmd.c | 133 ++++++++++++++++++++++++++++++++-- > ------------ > app/test-pmd/testpmd.h | 7 +++ > 5 files changed, 121 insertions(+), 43 deletions(-) >=20 +1 for having this support for testpmd. Some questions in my mind: How are the queues distributing here? In example I see 16 defined, are they= for one instance or for all? Will all processes have same memory region? If installing one RTE_FLOW in o= ne instance will be active for all? Same question for detaching device in one instance, how it will reflect on = others? There is many other scenarios like this, how it will handle those? BRs, Wisam Jaddo