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 8A96E43EF8; Wed, 24 Apr 2024 18:57:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A4A7402D4; Wed, 24 Apr 2024 18:57:57 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2052.outbound.protection.outlook.com [40.107.101.52]) by mails.dpdk.org (Postfix) with ESMTP id E7002402D1 for ; Wed, 24 Apr 2024 18:57:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yp+w/Mzo5GNT6k4gmM++iojrwoDDqFFD0y8Hp6aLCDgQcIf+jcopCSBejR1P6pnPbBk2lB8sujy29fsdoA6NZCqhWQqsuMMSndqcLTtJ1krnZ96JZrcWB18zPJESq69mdEk/Va5ZavKqGycB/b/aQAogv+9uyadqfPynb+a7ox3guBhVOkoQXGP1v3o41wtHNXehuTz3fX2lxXLHkwJ+XkeAyYm2iXFpBznm9UNW/fsCcJ3n4E7Zhyewdx3GvbYshsDydnpuxMchao9afwfKZOX8cZXpmsteqZMSfQCsQLGwP7qLcl+f1G9J3q6f5PSCIP0ILfoOrKx2dMJV1o/qtA== 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=hqFi1Rp13NhQCyWqBtK0oVRf1lexlBDNz9TADuYuefs=; b=IyCU3PWnr81mvmEjKthRWg0JjFm8s7JXcdTwQGb4kxBEjXur/Em9+Unolu7vLxyLz9G+saY+gUH+3JSDKanwT9vg+JY/16eGpQIR6p5gPZnuRlxAdYMX43pAsG4C45+RDS2JTh9MxdLf44AIP8Eup0v86DSurkmwU61DLg7IksVaoT52KeeZsyxbiiNNLyZPTychvmOU7SHv/wbqzYjATjvpH4/+Pp1+NmX9BCBhX3iGaTzGynhcQwu7ah5kRUClDxmM3rwk0p9ne6G82T/Diw4t0+DoyZfVEjWPaiko90BbTTAhs/9PzVL+A12Cj5j/9wLzIY6JhUhJ1bXpk1eIHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hqFi1Rp13NhQCyWqBtK0oVRf1lexlBDNz9TADuYuefs=; b=EKu1my0CVlSC201b2xjBFtZBJ1BIy7yo5OMb5nCDGL3GUVuFf2WXcBjaDLEhoeRZX6heVk92vayhrSZt57YU/Mn+eTP4xRWfwSVs/VFwD54vG1KtUc03I99DcLPCUPCXRt/qWSyAzaikJlEiKJUsAoIt//AIZwgjin1cC4Cs2J0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SN7PR12MB6690.namprd12.prod.outlook.com (2603:10b6:806:272::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Wed, 24 Apr 2024 16:57:51 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7472.044; Wed, 24 Apr 2024 16:57:50 +0000 Message-ID: Date: Wed, 24 Apr 2024 17:57:46 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] tap: do not duplicate fd's To: Stephen Hemminger References: <0240308185401.150651-1-stephen@networkplumber.org> <20240311194543.39690-1-stephen@networkplumber.org> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJEFRTPtCK Km/6UdcP/0/kEp49aIUhkRnQfmKmNVpcBEs4NqceNCWTQlaXdEwL1lxf1L49dsF5J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.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0035.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:151::22) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SN7PR12MB6690:EE_ X-MS-Office365-Filtering-Correlation-Id: 91a18dfb-ba7b-4c5e-4611-08dc647faccb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?UWxKYmxETnU2UXh5VFJSSXZOUlZvV3kvRGIwUklwVUVCdmxla2FlLy94TFRa?= =?utf-8?B?NC9WNDdYd2RXM001alJ5ZThNTkUrQlBSenFHeHJUclRZTnNtWkhjc3RmOWlF?= =?utf-8?B?cllFcnJrTTU4aWFyN2xEZW00bm9VRG8vQUNPMTZZVCtyak9XT3IyWTRuOGdn?= =?utf-8?B?blRORHc2TXJ6Ly8zcmptTk1BaHNHd1QyOXhqQXNIdjVzd0dQcVN1eUJiZTR0?= =?utf-8?B?aXE2VTBRa3ZkQzNvNXRBU0VEcm5hT1BRU2VGVHZHWVlGV05KbXorK056RzRJ?= =?utf-8?B?a0x3eWZxeHVxNEgvTjZVbE55VTN1Z3FwOC9ZclpzeDhvelNaczBGZ0hWZW13?= =?utf-8?B?Z1Z1YjBiVm1acHRXOVorQ3BjNUsrdUVvR0M4ZzNBanNNYTdndHY3UEVQa2hC?= =?utf-8?B?bnhxMzVVMGFzV0hSUWRYRmljVC8yNmMrSzlGK0xycmZQRitUTytKc0Q3S0pz?= =?utf-8?B?clBSNmczMWRGdTg5aVVuZFJ0NnkwcDk1TTNhdXVjang4MmF2OVcxUjlPblQy?= =?utf-8?B?WFZVdmFSUUY2YmpMemNieDdEbXVpSkQyVE1yYTFsZlRrSG9mNzB5anJM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ZZMFA2a2hVTHVybmxvZlk4M0tO?= =?utf-8?B?VzRHMktNUWNKcFkrME5WeXNYTjRQOVlCMHVtbWhkeXhJVlE1V0M0ZWxtNEpF?= =?utf-8?B?VTlORDNRQUFQaVZ0YldtZkhzSTZIbzFIY2EyRThFREZsTFdIeUtBTXZzYVEr?= =?utf-8?B?V1lKVXZRVXd5Mng3d0huOEtld3ZjNHowRDUwd0lQUG9OYnFadFR2akd2S1Vh?= =?utf-8?B?ajU4WUtsaXdIOFlhY2ptNFNIK3BqOVcwYWlOTGo0aC9HMVlUdm04ckxRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UDY0YW9KNzJYalVCblc4UXVkMERUSGRMUXhhbHZKU3BkdjJOUkMxQlhYREI0?= =?utf-8?B?U3d5WG80ZXJQVFB5UE9Gb29BNUd1cHU4ZmlKZ2JoeHNRZlJhLzRwbHBNL2Y2?= =?utf-8?B?TUFPdWZuN2RzVy8zY2RYNjJ6REttdDAzaVhsRFEwcTdLalFPK3VpampKa0Mx?= =?utf-8?B?amZHdjY3eWdTSTNzb1c0bWVud09KN084NXBpOTJIUVRtM21jeEZ5MnF3cXNy?= =?utf-8?B?cFBQdnVYWnNJaDc2UG9lbWdNa2hNa2g3SHM4NGFWY25UQWZrTGQ0Q3NxV0Vl?= =?utf-8?B?SStJa3Rtcmx5RkxiMXJYVldMVnpqWHAvZ0xHTzJwRElGa0ZKekRBQ3dHbTlX?= =?utf-8?B?dUpJcSthNWF3U2xLNlRuYStOYXIrRit6NENZa3dsU2FjbGFuL2FoSHoyYlJV?= =?utf-8?B?dGZMajRPdS9SMEgvV2lNVW9ZW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12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 16:57:50.4586 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xQ2gwEuVjMi1DFqie5R52mzmSazUa2tsWe7pwAwZna/eA6Ze++x6HlO0VLNoM7wF X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6690 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 On 3/11/2024 7:45 PM, Stephen Hemminger wrote: > The TAP device can use same file descriptopr for both rx and tx queues. > This allows up to 8 queues (versus 4). > > Signed-off-by: Stephen Hemminger > --- > v4 - fix typos reported by check patch > > drivers/net/tap/meson.build | 2 +- > drivers/net/tap/rte_eth_tap.c | 197 +++++++++++++++------------------- > drivers/net/tap/rte_eth_tap.h | 3 +- > drivers/net/tap/tap_flow.c | 3 +- > drivers/net/tap/tap_intr.c | 7 +- > 5 files changed, 92 insertions(+), 120 deletions(-) > > diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build > index 5099ccdff11b..9cd124d53e23 100644 > --- a/drivers/net/tap/meson.build > +++ b/drivers/net/tap/meson.build > @@ -16,7 +16,7 @@ sources = files( > > deps = ['bus_vdev', 'gso', 'hash'] > > -cflags += '-DTAP_MAX_QUEUES=16' > +cflags += '-DTAP_MAX_QUEUES=8' > OK to merge file descriptors instead of duplicating them. But we have this 4 queue limitation only for multi process case, right? If user is planning to use only with primary, this will reduce the supported queue number. Does it make sense to enforce this limitation for secondary only and keep TAP_MAX_QUEUES same? So for multi process usecase supported queue number will be 8, for primary only use case it will remain 16. <...> > @@ -1482,52 +1480,34 @@ tap_setup_queue(struct rte_eth_dev *dev, > uint16_t qid, > int is_rx) > { > - int ret; > - int *fd; > - int *other_fd; > - const char *dir; > + int fd, ret; > struct pmd_internals *pmd = dev->data->dev_private; > struct pmd_process_private *process_private = dev->process_private; > struct rx_queue *rx = &internals->rxq[qid]; > struct tx_queue *tx = &internals->txq[qid]; > - struct rte_gso_ctx *gso_ctx; > + struct rte_gso_ctx *gso_ctx = NULL; > + const char *dir = is_rx ? "rx" : "tx"; > > - if (is_rx) { > - fd = &process_private->rxq_fds[qid]; > - other_fd = &process_private->txq_fds[qid]; > - dir = "rx"; > - gso_ctx = NULL; > - } else { > - fd = &process_private->txq_fds[qid]; > - other_fd = &process_private->rxq_fds[qid]; > - dir = "tx"; > + if (is_rx) > gso_ctx = &tx->gso_ctx; > Should this be 'if (!is_rx)' ?