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 BD3EBA0C43; Fri, 22 Oct 2021 01:41:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BA5F40040; Fri, 22 Oct 2021 01:41:50 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 1FBC14003F for ; Fri, 22 Oct 2021 01:41:48 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10144"; a="226640841" X-IronPort-AV: E=Sophos;i="5.87,170,1631602800"; d="scan'208";a="226640841" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2021 16:41:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,170,1631602800"; d="scan'208";a="568666190" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 21 Oct 2021 16:41:48 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 21 Oct 2021 16:41:47 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 21 Oct 2021 16:41:47 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 21 Oct 2021 16:41:47 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 21 Oct 2021 16:41:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YpFqPmtBQundsQ3pcr8q0Flyvu1RaTQmpE5jXfguETYuD6nVhFUnKv3Z0X2mkdcw4k+XCXl+Shn62gyZQugD3mmbXgMB4L5pPySJzy1sXYpRP0y2z2gQ9NBBKJ41BfSLxMLu1Xv18wcICwAWKwTcDEQK5TaOKbyeKlnJMQD1iHZHhRwRLnH5FtHpQk+H8rK6zNocw7xvibP6a6OTw3T0JYixAYh0PQVXmMUZI+vDEtpAeCBBDpAqSWgoyrFo7A6tjnXLirfPAFvb3GCsjyq1GVxZPSf1SAQKE8RFXoar6MqILdf2uBIwwY5rpIQgnEWM3h4HBLQEYPZftxjS6/ntYQ== 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=KmPqiJEf/dZ4KsZSl4FiWRq6ypmaetllDoTizxEn58k=; b=WW7TmWvU2jM3P4IrDKA4paqhPPw4786rO8NnouFa2rk0KxRGNgl7gRFBG9ciZMohmV7BSRXKe3g2pwSWlQDoYes+nMnCVB2EV9kScvzG919reSBV4B+LWVujpczZcFIPo8cHO25Gfbjz4gvB3ANppuBP3gEmHd1pPwr51W2BzaKaKtu/VohL2h6AtooQK2NQPkpIr8MT2HTJLE2Fkw1ygnQ7zV9B3CLmwyzx981CiVSPFSZla04EhWx/M/KugHo3fzp7Xd1PhfPRi1iSVf9EgrbA77DINDXpvlRcoJUmeLmuSSvpXdNKK2Kia2hw08khQW9QHDQ8BGLlV3apokrvag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KmPqiJEf/dZ4KsZSl4FiWRq6ypmaetllDoTizxEn58k=; b=PR8XPP2eNZkT+ymY0frBLPHhrpcFgoy+IaRpjIpUoPMF9rqnR1cWbMMj+8cZ+arEv9CfIWELQt40IDyTPcqJBFe/pkQqDjB0/9D33XKdlNOL5HxZc0PR24fJ4D9EoyQ3LEGvz9I+akHfkFQPwI5FdRN5hwXS7s+tVIIFTs8whT0= Authentication-Results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB4902.namprd11.prod.outlook.com (2603:10b6:510:37::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Thu, 21 Oct 2021 23:41:40 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%6]) with mapi id 15.20.4628.018; Thu, 21 Oct 2021 23:41:40 +0000 Message-ID: <6ae31f9a-7d5c-0ae3-d6ca-0ee03e61e691@intel.com> Date: Fri, 22 Oct 2021 00:41:33 +0100 Content-Language: en-US To: Xueming Li , , Zhang Yuying , Li Xiaoyun CC: Jerin Jacob , Andrew Rybchenko , Viacheslav Ovsiienko , Thomas Monjalon , "Lior Margalit" , Ananyev Konstantin , Ajit Khaparde References: <20210727034204.20649-1-xuemingl@nvidia.com> <20211021104142.2649060-1-xuemingl@nvidia.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211021104142.2649060-1-xuemingl@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB8PR06CA0037.eurprd06.prod.outlook.com (2603:10a6:10:120::11) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB8PR06CA0037.eurprd06.prod.outlook.com (2603:10a6:10:120::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18 via Frontend Transport; Thu, 21 Oct 2021 23:41:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cb6e64e2-1bbb-4052-e068-08d994ec54c0 X-MS-TrafficTypeDiagnostic: PH0PR11MB4902: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MCrsGYQgUcChDK51gIT7t18MP69t24m/ROkQHUldzMB9k2uJ3eJsew4hoM2fkeWPXuON/UaqwwX2whStf7p3emU8yOVsh23olr8lZEtfsupWwpPsyr7+in29ngWgRatJHCllJG8FN3sP8nyUI4bulUEb6YXL7hco9D60sV//KoVCCyFu3dVkM/A6bRixiWhCUmUfwvy3MVaa3AbHF2uO56HX3uISg2g880GTxXo0zbguxTCYf5BmR3QVJglRdnWgJNb2/olGkzHqA7z3UXEbgmZ/ibsIrcvdYZIefCmnOrzVPUpFOyshiNRQPECv0CRXgwhQpmosgblkoK147k4ZNx0cVDIj+VivYzJ3tpSnI8GmZkR5Ea+7e+jxHgulGxVw/pIVmKoYjdskGmQCV+bSV+l+Nw+L1D24SlMt3aqMOl1EqTvMUW8P43BthAdbxxoh3SP2eFPr5RQSHZAfVgjXfVOnsrU7n4IM2hunbQEHidra5HeSAAEf5nc4p6NsFSUOic2sJwi1yH/sU+9ocOPctyb+JE32O/4IkGjSWOMSu6VrVMSP16wTxzP4O8CxCCr5biH+yzhgVq7fYD2N5JGV9pqp3W+5Pyc+lACl+IWjGEeCiYC7eq4KShRnQHgR49sJwYsedL84cR3RxnmowjRZBiA9xI+TXdQhcLH0AAXIVzsgsiE1Vac19ksbUgwLVymFV25EEJuoKuGuu4ll5Oywyg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(31696002)(36756003)(8676002)(110136005)(956004)(186003)(2616005)(86362001)(508600001)(66476007)(82960400001)(8936002)(66556008)(66946007)(4326008)(16576012)(6636002)(54906003)(26005)(5660300002)(316002)(44832011)(83380400001)(31686004)(53546011)(6666004)(2906002)(38100700002)(6486002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b0RIMzdKRHJMSUo4SE9hdXdsU1N3UnNDTWEvQm9oSmNid2Z2bFo2RU1TMWMr?= =?utf-8?B?VWQ4K200bzN0SVQyZ2Z2Y0dwTU1UeVlMSllJYWIzR21FT09tdGZxMDRtUGph?= =?utf-8?B?cVlDdUt5VFVMK015ODg3K1pDclJtNEljZWNoR0tRMnprZXluemplblBDVmV4?= =?utf-8?B?UUZKaHg5T2liVEZxWUdOYUpxb21wVnBGeFBLTFJtR1hYMngrSnpmZ2lHQXlk?= =?utf-8?B?b0FFRzAyQmtlVDUwZS9qSlQyNzFtYVp4UHoybTlkdEEyZHVJOWxRcHVvdWJB?= =?utf-8?B?MVozSGVB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rno4?= =?utf-8?B?V2NOTWdhZTd3QkNZZEFJaWtRT05yZzRZS2RLWVMrd21NUzVjZzd6VmFGbktI?= =?utf-8?B?cnVqclErVHVNUXBMM25tZFhUUVU1YlRpQU5YSTJXU1RxdXAwQktYc084Q3Ez?= =?utf-8?B?T25Ha2JFS3FVZnNiSERlU1RUeXgwY1ozOUlCdTRHRVcrakU3cmdzUm9OQ0Ur?= =?utf-8?B?MXk0b0ZQS3NKeHpNckNPd3pucUFZZFRpU3psZk1IWjhaZkl0c2ZndmlEVU5m?= =?utf-8?B?Ni9hTDJBSnJ4Z0lYT0hyUXkrWHBHaFNMRjBNWDU3Vkw3ZkJzOHFVdjhtUDEr?= =?utf-8?B?bmNtNkhFMXl3dk1ibHl0cXlqUlZ1REVSelBCM2FiWERYak5HSnlKT0hrdkl3?= =?utf-8?B?Q042ci9lem50YTFOWDJPTDYwNkxKc202clYrQytWQXpnYUdySi9OWHJiRGh4?= =?utf-8?B?SGYrOS9sUks4enhpOWhOSDBnR0pFMlZ2WCtHRmtDVWR3OTh5NXppZDE3dVZB?= =?utf-8?B?VldvSU1MRDlhMzBlN29sTXlDRVBtNDg3TmpOUTFuS1ZPaXA3YnF5Wm1kUHdo?= =?utf-8?B?R3hRb2F2Mjc2TnFnTExXSzhmcnp0czV5MG0yWW5KeFUxK1MvcnQ5ajliU3Bv?= =?utf-8?B?ak44bElxYzhKWkcwTFZuSnhWT0ZaT29TZmQ1MCtFVVpnbXUyMEsvUy9MMExT?= =?utf-8?B?aU9tRVNYczNaV1Z0eFlrUStmcE9mTmdjMk94RWh2VFpMdmo2ZTFadGZCOVdr?= =?utf-8?Q?hvmEMi2CX6koGo3xxxoF9VrDxr/mfcKJ?= X-MS-Exchange-CrossTenant-Network-Message-Id: cb6e64e2-1bbb-4052-e068-08d994ec54c0 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 23:41:40.8289 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ferruh.yigit@intel.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4902 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v13 0/7] ethdev: introduce shared Rx queue 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" On 10/21/2021 11:41 AM, Xueming Li wrote: > In current DPDK framework, all Rx queues is pre-loaded with mbufs for > incoming packets. When number of representors scale out in a switch > domain, the memory consumption became significant. Further more, > polling all ports leads to high cache miss, high latency and low > throughputs. > > This patch introduces shared Rx queue. PF and representors in same > Rx domain and switch domain could share Rx queue set by specifying > non-zero share group value in Rx queue configuration. > > All ports that share Rx queue actually shares hardware descriptor > queue and feed all Rx queues with one descriptor supply, memory is saved. > > Polling any queue using same shared Rx queue receives packets from all > member ports. Source port is identified by mbuf->port. > > Multiple groups is supported by group ID. Port queue number in a shared > group should be identical. Queue index is 1:1 mapped in shared group. > An example of two share groups: > Group1, 4 shared Rx queues per member port: PF, repr0, repr1 > Group2, 2 shared Rx queues per member port: repr2, repr3, ... repr127 > Poll first port for each group: > core port queue > 0 0 0 > 1 0 1 > 2 0 2 > 3 0 3 > 4 2 0 > 5 2 1 > > Shared Rx queue must be polled on single thread or core. If both PF0 and > representor0 joined same share group, can't poll pf0rxq0 on core1 and > rep0rxq0 on core2. Actually, polling one port within share group is > sufficient since polling any port in group will return packets for any > port in group. > > There was some discussion to aggregate member ports in same group into a > dummy port, several ways to achieve it. Since it optional, need to collect > more feedback and requirement from user, make better decision later. > > v1: > - initial version > v2: > - add testpmd patches > v3: > - change common forwarding api to macro for performance, thanks Jerin. > - save global variable accessed in forwarding to flowstream to minimize > cache miss > - combined patches for each forwarding engine > - support multiple groups in testpmd "--share-rxq" parameter > - new api to aggregate shared rxq group > v4: > - spelling fixes > - remove shared-rxq support for all forwarding engines > - add dedicate shared-rxq forwarding engine > v5: > - fix grammars > - remove aggregate api and leave it for later discussion > - add release notes > - add deployment example > v6: > - replace RxQ offload flag with device offload capability flag > - add Rx domain > - RxQ is shared when share group > 0 > - update testpmd accordingly > v7: > - fix testpmd share group id allocation > - change rx_domain to 16bits > v8: > - add new patch for testpmd to show device Rx domain ID and capability > - new share_qid in RxQ configuration > v9: > - fix some spelling > v10: > - add device capability name api > v11: > - remove macro from device capability name list > v12: > - rephrase > - in forwarding core check, add global flag and RxQ enabled check > v13: > - update imports of new forwarding engine > - rephrase > > Xueming Li (7): > ethdev: introduce shared Rx queue > ethdev: get device capability name as string > app/testpmd: dump device capability and Rx domain info > app/testpmd: new parameter to enable shared Rx queue > app/testpmd: dump port info for shared Rx queue > app/testpmd: force shared Rx queue polled on same core > app/testpmd: add forwarding engine for shared Rx queue > This patch is changing some common ethdev structs for a use case I am not sure how common, I would like to see more reviews from more vendors but we didn't get, at this stage I will proceed based on Andres's review. Since only nvidia will be able to test this feature in this release, can you please be sure nvidia test report contains this feature? To be sure the feature is tested at least by a vendor. Series applied to dpdk-next-net/main, thanks.