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 E0F17A04A3; Wed, 26 Jan 2022 17:20:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F92B4274A; Wed, 26 Jan 2022 17:20:01 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id E8EBE40042 for ; Wed, 26 Jan 2022 17:19:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643213999; x=1674749999; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=fUL2PaXHoCiZiYqcGB48BKktxQv6Tc+dVEVS03fNfXA=; b=NgzdjWHG4VMN3CQJvFPWKWgKFYw65KyKHYIt1d8vWlB3Ae/7g5tGoTcp C7fv7g+UkuqdEfdUgMVq+Wr6LxuY9YcMXSIk/EWiy38OWm6lKqRkESIiG ljvIG1PpLIoowreMQSTlJH7MBVccYiLZ3wHpiAyeNPFBNhSfcBylJLkgm zkeo6HPG1fzBF+NH3Z1loIydeTU1ZsBUKnJ77Ldai7qjlKJoX5w1ZQlja fovcAr2YBdL5mYnnLjmUfOuuH6zzMHXXphPZmTDL0sqGuvDjXoZdwafWO ujakBTvQr4MGSjWxCG9xU5lvWMB769v9sYVBbs2eB6H0XL058TMF3iChG Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="246530434" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="246530434" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 08:19:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="477522890" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga003.jf.intel.com with ESMTP; 26 Jan 2022 08:19:57 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 26 Jan 2022 08:19:56 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 26 Jan 2022 08:19:56 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Wed, 26 Jan 2022 08:19:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ajxu8yZ74BtRhgrN3od8vmzNbTGpm+ZFz9scp88KJ4WCviRlT13yVTxhpEkmxOUbN9hoa1Va8F2rOThvZ77r5DG1jQN9LoPZWuUWIDMMVRTmax7ngVavtxsAC6JRdzLlFkVOU9LQTcgI6NtbbjyKcTRWSGfOifKZDOuqUbNpmgwmtizockB+21Wi3LNLvnmE52pgLFkwcL+AWyVOVZPLl8ItrBFYWQwS0UdmjUtrSYJ+NjUBb6XQ14IiSrI6ihgSCrPQzlqk2pAvewI9D90ZePJfa7vMoJawzXQVv8M1N5zIh5nzwab29/zw24oVjmAAmOtciyqMK7eey77B3YJWQQ== 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=Zy19gMwEdFHwvSUe0zCG6O1aTSeKbE2Ydm+quzsFbbY=; b=YsY8+OlIZMpzOSL2MmlXexq3TIsLxgMxXk5oAfsTLEjUJ+9JWcXOsdZVZQbdQcGW5a2j94Fis5W6jmYH+K1hHsVKUekSi5PkYGM24xWzumbCDiyxXKUZ9jkgqVe3zxUJZYfimXqHugEEyFUMo4jtUgV3EGLzb5XEA51mbTLOThpZyDbPE5chaN18d82T6R//f/X0ITHzHOHSOwe5jLpMhDu469BxurvBRo9TP4Dug5xpFTeVfocDudLDW/d9wgja6rtVpwnXkTbwVK1FufRHoRyDluOKzQO+Qm0n1JFIWbiPjItDa/dOoqaDsiCMfdZdALiNtPm3njZJGycYXcHWCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by CY4PR11MB2007.namprd11.prod.outlook.com (2603:10b6:903:30::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Wed, 26 Jan 2022 16:19:55 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4909.019; Wed, 26 Jan 2022 16:19:55 +0000 Message-ID: <073eb2f6-baeb-d3c6-6381-96a05a69a6a8@intel.com> Date: Wed, 26 Jan 2022 16:19:49 +0000 Subject: Re: [PATCH v3 1/1] net/tap: add a check that Rx/Tx have the same num of queues Content-Language: en-US To: Nobuhiro MIKI , CC: , , References: <20220119074316.1094-1-nmiki@yahoo-corp.jp> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220119074316.1094-1-nmiki@yahoo-corp.jp> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2PR04CA0340.eurprd04.prod.outlook.com (2603:10a6:10:2b4::12) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 79233707-6a6c-4828-6cce-08d9e0e7b05c X-MS-TrafficTypeDiagnostic: CY4PR11MB2007:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tYmz+aSk+R3YGh2BLI9nIDmbKUbAOTVPP9oz0a8OMsq3wt6X8jl3uYGNrX4ZISLpWrTMPbQh12hdA4EU//xf5QovHguCSkA9q3p73nLqfqzANgh1pSjP6iToq7tbfGhQJQ9J0OID4t8L/w2yIS7nZRdKtaTBP/MolVGqDN73YykrIsP2geQRdvValijXhZGp83xvHjN+pgBiAWDO+7IB/qIzDF3eZTMQvqXrKrHM9m9vNuqS8T+36zHLEkz0FOVOE8hUtY8mrn8/MgiAoNudV3Pnxxd4uWPWbxY87xqPMK99ep2/3VHWUj7xHS+ROJXEuulFGLgnJI+93Ilnj0A6tRDjFEYM4d49PksK8CvuPsYN9hbQRiRWUdQbbJL70tKUtM/gGkvv1MzpcTBOS4SEys7hBvm53i5+65pP5PbEdgcCvdSDK7b30ukFYs54cS0RzEuPusShHPtm93LiE0mcJnf6rt/wgJIM/ThZrHq/e0i8zy7sbL4/lV1dCXYvHwMlR5r6gavd1Mk4liPveU+o7YjYl6SF5KHPuLESrRZsXbu9mZUYF5Tkb1V3WgWGNjUP7HTPvtgR25xOYbfqK4YI671rgo0wMEkJoHfyVRMKHbQ7i0+sm7/ZorAadKC6AHzYfuKRUVzTcIxKpprFhISq/BJY+62gVosh5bPs+ASgKTVs9LJwusdPt7JvQOTft7bkX9kU36xVIIwwiepMAT517Q== 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:(13230001)(366004)(508600001)(6506007)(53546011)(6666004)(6636002)(6486002)(31696002)(86362001)(2616005)(26005)(186003)(2906002)(38100700002)(4744005)(31686004)(5660300002)(6512007)(44832011)(82960400001)(8676002)(36756003)(66476007)(66556008)(66946007)(4326008)(316002)(8936002)(45980500001)(20210929001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MEM5WnpTdFpEN1ExZ0RzV01zM2xHYUNzbzBSc0tFWEZac0NMS3pCZFFVVkdB?= =?utf-8?B?MmJVSWprRUpEemh2WU1BRFB4endrNWNxa3ZXK2ZMbHlDQk9NUGxEcjVDY3hr?= =?utf-8?B?MUwvaENRcjdTSlB5ejB2SkduS0d3WGlVTGYrOFd3QWlwOEdsQlkxUjJPZTdZ?= =?utf-8?B?bkpKNDNIWXFVRTZTY0dxVnJVd1RHMjZmVE11UEpRcDZlZTFQUHFwWlVSbDlt?= =?utf-8?B?TVFtQmU5MGxuS0J6NXIzUlQxU2dmZXZTZ3h5UTlSY3hDZzRjOGtPa2FmeFFW?= =?utf-8?B?a3JNNmNGWXVVeUVxUVpoT0ZLVDRZN0o2VFZIbXBOZFVFRnNRWjA2c1ozdkc5?= =?utf-8?B?UjBpMW1vb1lacnVuSU1VMEN6aHRwNkNBUm1uT3lVN3RTSW55c09mU0gzNFA3?= =?utf-8?B?b2MzMmpuWUk3K0c2RThZNXdLQjRTaGpKMGpFQllXdTFZM3lJS2RaNlJJekxB?= =?utf-8?B?WW9zRmNHckc4K1JCbm83RHFuZThrMURhdGVVTXAyUmEyaHIycGFtVmVIcWI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vSnhIK2ZoL3FCYUJVRzh3dWRwaUpY?= =?utf-8?B?UkxSVnhnTWJZTUJ3UG9yY3JQTFNFRjhBRXRSa3puTVlxblYxajhvRk0rcGpG?= =?utf-8?B?NElPRldQVWpSeGYvL0Z3UUJycXAvN2V0Nk9yOFB4T0FyUHlIOUZTV1RKdTRh?= =?utf-8?B?MzljRVdMdUhQQ200SXhuZlhoSWFrTnczdzFkRWdCRXBRZ3ZqRnZCTmZIOU1N?= =?utf-8?B?NkRQem4wRTg5dk0yRm0yZDZtN2dBRDNiQ25oc240dHpIanVtaXh5SW9uUHpz?= =?utf-8?B?RFNKZjJEaDVpbHFETnJmR1hxUi9nSkkvVHdET3k0ODZ4Z3dOcFBhbEQyY2py?= =?utf-8?B?ZVZlSWpmUnlJZ0hyZWJGUG9QK1V2VFJMV0tWRXpsaHdNZFNNWUNsalJiUWp3?= =?utf-8?B?VUNaTGQ1WnB6ZmtCOXNiL2lOdXEzaDVqb3B0YXB6cFU0WEJOWU1XNWtKTHhu?= =?utf-8?B?a3c4RE02M1ZHYnlzaVRQK29hSEh0QmR3a0pvd0VneDlERDEyYmc2V09pTG41?= =?utf-8?B?RHNFVVFjY1NsY0J0L0JqMnJkeTN1QXdpeFo2amk2SkNRWFRUNnZlTEozbzE4?= =?utf-8?B?aUhoUkRJYXlXbVh6ZytJWFNmUkorbytpNUg0OTBqLzVickhVRkNyc1ExUzVt?= =?utf-8?B?V2FXNEFHQkNIR1R3QjBaU0kvUnZTNk9mY3ZMK1UwVE5TVGEwc1AwZDFZRFh1?= =?utf-8?B?T1RKc09MaVpDeVVrTW16UjQ5bUZxTHJTNmRsMkduTEhLWk1qWFE0VG5ybm9D?= =?utf-8?Q?cFitXOzeZIN9jt6K1WqSX2M=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 79233707-6a6c-4828-6cce-08d9e0e7b05c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2022 16:19:55.3205 (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: H4foPxo438p2KExYMCEEXJPfAdPMT2LPEdbdJ/nAnsq1aosH7Xc4QtM0rXB21n3/KujbIof8kcryrKE1wiCetQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB2007 X-OriginatorOrg: intel.com 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 1/19/2022 7:43 AM, Nobuhiro MIKI wrote: > Users can create the desired number of RxQ and TxQ in DPDK. For > example, if the number of RxQ = 2 and the number of TxQ = 5, > a total of 8 file descriptors will be created for a tap device, > including RxQ, TxQ, and one for keepalive. The RxQ and TxQ > with the same ID are paired by dup(2). > > In this scenario, Kernel will have 3 RxQ where packets are > incoming but not read. The reason for this is that there are only > 2 RxQ that are polled by DPDK, while there are 5 queues in Kernel. > This patch add a checking if DPDK has appropriate numbers of > queues to avoid unexpected packet drop. > > Signed-off-by: Nobuhiro MIKI Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.