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 2336C45B17; Sat, 12 Oct 2024 04:19:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C2B8402E3; Sat, 12 Oct 2024 04:19:00 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 3D6FB40268 for ; Sat, 12 Oct 2024 04:18:56 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71df2de4ed4so1788370b3a.0 for ; Fri, 11 Oct 2024 19:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728699535; x=1729304335; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gLHBizP2Nxa5qBJeO5k+0kvH4ahwb1bOFTtkxDsaq2s=; b=UeSMQsE3NgFGALjPXw8CP+Oo1Tl0URLRxFgAQ5xGJr07PrDIDlDtiCBYXPx4Kr9fU9 +FlGcyws32XQkBka6GudPKj3T2XHQb6xJoOB93Mc7KI4pe7aWY/4F2ecbc2Xl+whsc6Z GMJBAR6B7p4QukP+IM9DHKxv8gJN9DMBx+XHxtjB9v96cfJDF7IctgWsDfSKtoNe7ARY giIPkVzSWN3w/uOkeftyNspCBG1wrxKpYKu1xPDtOaUkgJseULaXmbyF+Bq6ENNk6GM/ G7zQXw8mmzps59Tq83/X9shFC83X4SvpdfmHQNfDKLstTf2CiNK79GaNCi2j/Nq1gCoO bDeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728699535; x=1729304335; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gLHBizP2Nxa5qBJeO5k+0kvH4ahwb1bOFTtkxDsaq2s=; b=PBaCYrILZiIFcrdBMjj+AfZBgTeOdd7wqSz6MQoihE9l2R1aSND8gmRArpeE3S4KK+ Zmd9PzfmaeM9Ni+ZkoepZoYXNV9fSO3Qnk0WrwCIYS5rLAMnjFlFxROkgf42sJhACNUa Nu/nC7tbiBT1KvKim31fgJNeiDrZZkUt2+Cxz6i/E46tVvteK01TthGKsm9icQhDjjZS 26jt/k9/ZgZApUMcil3pQawyMXe1xtUlGTN3xUwJx6Og2HQse2HSlDTrNap9rcdcSiSC ZulgEPwV8S/9Wk8IR4FwhpSt3Xx+LdOdC6It/WXmcJPdN9wdAAQlWYFauabK2lhv3Wq1 yCxQ== X-Gm-Message-State: AOJu0YxKTrZBFfgeu/PQ8Yz/LUojo8Za9ZYdZ/IBGIE+iFvSOK5Xur+t YrsBhGUwFG+kpWFGOzRnBjHEMqHv6PwM97sKOlg5oxcydbmQ/B8kpUmMDSH67XTFC9Rr2dU6Z9T h X-Google-Smtp-Source: AGHT+IElFc8UdyuhMiWFelr87duvcOunekcYzH7g0S9lBCNyC4de3clMMJFP8bvC0mxjF6RoVr5Lcg== X-Received: by 2002:aa7:998e:0:b0:71e:3d60:bbd with SMTP id d2e1a72fcca58-71e3d601a3fmr4133404b3a.2.1728699535229; Fri, 11 Oct 2024 19:18:55 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2aa9386bsm3320079b3a.116.2024.10.11.19.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 19:18:54 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 2/3] net/tap: increase the maximum allowable queues Date: Fri, 11 Oct 2024 19:17:28 -0700 Message-ID: <20241012021844.536316-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241012021844.536316-1-stephen@networkplumber.org> References: <20241011173026.170884-1-stephen@networkplumber.org> <20241012021844.536316-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The default of 16 is too low for larger systems. Upper bound is the maximum number of fd's that can be passed to secondary process (253) and the maximum number of queue's allowed by Linux kernel (256). Both these manifest constants, are not exposed in visible kernel API. Signed-off-by: Stephen Hemminger --- drivers/net/tap/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tap/meson.build b/drivers/net/tap/meson.build index 5e5a3ad3c6..4853efb236 100644 --- a/drivers/net/tap/meson.build +++ b/drivers/net/tap/meson.build @@ -14,7 +14,8 @@ sources = files( deps = ['bus_vdev', 'gso', 'hash'] -max_queues = '-DTAP_MAX_QUEUES=16' +# TAP device is limited by RTE_MP_MAX_FD_NUM +max_queues = '-DTAP_MAX_QUEUES=253' cflags += max_queues require_iova_in_mbuf = false -- 2.45.2