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 E20A045915; Fri, 6 Sep 2024 03:19:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 99F2D4025D; Fri, 6 Sep 2024 03:19:12 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 466D24025C for ; Fri, 6 Sep 2024 03:19:10 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4X0JHC6HmGzpVTg; Fri, 6 Sep 2024 09:17:11 +0800 (CST) Received: from dggpeml500024.china.huawei.com (unknown [7.185.36.10]) by mail.maildlp.com (Postfix) with ESMTPS id F2007140158; Fri, 6 Sep 2024 09:19:06 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 6 Sep 2024 09:19:06 +0800 Subject: Re: [PATCH] eal: increase max file descriptor for secondary process device To: Stephen Hemminger , CC: Tyler Retzlaff References: <20240905162018.74301-1-stephen@networkplumber.org> From: fengchengwen Message-ID: <88ba7258-85d1-17e4-4039-7d14e2f70e78@huawei.com> Date: Fri, 6 Sep 2024 09:19:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20240905162018.74301-1-stephen@networkplumber.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500024.china.huawei.com (7.185.36.10) 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 Acked-by: Chengwen Feng On 2024/9/6 0:20, Stephen Hemminger wrote: > The TAP and XDP driver both are limited to only 8 queues when > because of the small limit imposed by EAL. Increase the limit > now since this release allows changing ABI. > > Signed-off-by: Stephen Hemminger > --- > doc/guides/rel_notes/release_24_11.rst | 5 +++++ > lib/eal/include/rte_eal.h | 2 +- > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst > index 0ff70d9057..5af70e04c5 100644 > --- a/doc/guides/rel_notes/release_24_11.rst > +++ b/doc/guides/rel_notes/release_24_11.rst > @@ -100,6 +100,11 @@ ABI Changes > Also, make sure to start the actual text at the margin. > ======================================================= > > +* The maximum number of file descriptors that can be passed to a secondary process > + has been increased from 8 to 253 (which is the maximum possible with Unix domain > + socket). This allows for more queues when using software devices such as TAP > + and XDP. > + > > Known Issues > ------------ > diff --git a/lib/eal/include/rte_eal.h b/lib/eal/include/rte_eal.h > index c2256f832e..c826e143f1 100644 > --- a/lib/eal/include/rte_eal.h > +++ b/lib/eal/include/rte_eal.h > @@ -155,7 +155,7 @@ 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 amount of fds (see 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 { >