From patchwork Tue Feb 20 23:09:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 136940 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CED8743B5A; Wed, 21 Feb 2024 00:10:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55C5C402B9; Wed, 21 Feb 2024 00:10:21 +0100 (CET) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by mails.dpdk.org (Postfix) with ESMTP id 73E564014F for ; Wed, 21 Feb 2024 00:10:20 +0100 (CET) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-5d3912c9a83so4541711a12.3 for ; Tue, 20 Feb 2024 15:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1708470619; x=1709075419; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jBcWh1TOCIFto47M1h7WM27yj+P/+owoWsuStAAS9l8=; b=htIGWisL6eA8B72Zl0qZbT6pG7zRUAAPME4ySmU23ustFPvoHll7rU5VAag9g/6/hW X8CvIisv3VDY7Kg9xAeSXgGeUAUg8EuRiSGjT84p5L2w+Qaq3l9mnuEgC2pzg/UCTtZw IlnSkOxWNaHRZbkmfiXYC2qcoOsjrK7os3trkgdNbnyj72g4d1Rodp+ucU67vqpNEmMz EM5NxWDCObywxYdzcNht4IA0Siu76vRRQyNoHySJ6QkZhtFsWQ/xUidv7RIUegrJ4RBe iJHIO2hifAM9UkSG2ZLtXGjUPSjNse/uF7mfPW4sc7IZO80xFQw2EwMzMd7pqyyqia2O Ncmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708470619; x=1709075419; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jBcWh1TOCIFto47M1h7WM27yj+P/+owoWsuStAAS9l8=; b=lexnJt2lKlnomvG5cCgGytLfU8JPsEDrAA67IN07HW0P5qNYUXC2ruP2mhcfYTr4Yc ia6bcxC06jM3udSV+2pfwNXK228AHrsvHEA1+wcXYH2hgcwkNZEKPoMicMI4SiEaY2jo CvivzGHePnnsj1XBE34kdn75jL+JO5HBoCrhdPPcZGTUV3OBNUcuRoxqZ2zjDHoYuNkF Byi2fBZ4Oqzd+AUFG+x7Ng/7Fl6oXAdif1KQWkwLTcLClIcG1qLFeCA53Kg5/wihPyjb WwHHRUeV0Vaj1SLUSzeEOgMZxsxs1Zx6NiD82udsbyeQzlQNM5AGLPkLcqZ2xi3mP899 ZPKw== X-Gm-Message-State: AOJu0YwdZXP49MoWFmdjCbiC6FEUAJqS4AUz5s1KVji7B5/4FBhUJW9a bWhnRy7T6XKGcaKFBXLDP84NsENzLAP57HFrv6nA2K7Uh9SzwIEL/WSc5v4qfFpInkZhBYOD8qt Y X-Google-Smtp-Source: AGHT+IE39HraL9CwVPzkfJxPtUGpcgXjKysfeKi38+KzR9/lphixXdDs/6fsuop59GYAAowv8DjgmA== X-Received: by 2002:a05:6a21:3994:b0:19e:c7d8:6246 with SMTP id ad20-20020a056a21399400b0019ec7d86246mr18335928pzc.13.1708470619279; Tue, 20 Feb 2024 15:10:19 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q20-20020a63d614000000b005cd8044c6fesm7143502pgg.23.2024.02.20.15.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 15:10:18 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [RFC] eal: increase maximum number of file descriptors in MP message Date: Tue, 20 Feb 2024 15:09:41 -0800 Message-ID: <20240220230941.293399-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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 TAP (and XDP) driver need to pass a file descriptor per queue to/from secondary process. The current limit is too low and ends up limiting these drivers to 7 queues. Increase the limit to what the unix domain socket allows. The Linux kernel allows up to SCM_MAX_FD (253). Signed-off-by: Stephen Hemminger --- lib/eal/include/rte_eal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h index c2256f832e51..5fae3ebcdc21 100644 --- a/lib/eal/include/rte_eal.h +++ b/lib/eal/include/rte_eal.h @@ -155,7 +155,9 @@ int rte_eal_primary_proc_alive(const char *config_file_path); */ bool rte_mp_disable(void); -#define RTE_MP_MAX_FD_NUM 8 /* The max amount of fds */ +#define RTE_MP_MAX_FD_NUM 253 /* The max number of fds + * See unix(7) SCM_MAX_FD + */ #define RTE_MP_MAX_NAME_LEN 64 /* The max length of action name */ #define RTE_MP_MAX_PARAM_LEN 256 /* The max length of param */ struct rte_mp_msg {