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 DAE80A0C50; Fri, 16 Jul 2021 16:28:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BDFED41390; Fri, 16 Jul 2021 16:28:19 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 5E1E641390 for ; Fri, 16 Jul 2021 16:28:18 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="191107334" X-IronPort-AV: E=Sophos;i="5.84,245,1620716400"; d="scan'208";a="191107334" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2021 07:28:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,245,1620716400"; d="scan'208";a="460769835" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.27]) by orsmga008.jf.intel.com with ESMTP; 16 Jul 2021 07:28:16 -0700 From: Ferruh Yigit To: Andrew Rybchenko , Thomas Monjalon Cc: Ferruh Yigit , dev@dpdk.org Date: Fri, 16 Jul 2021 15:27:58 +0100 Message-Id: <20210716142800.3853651-6-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210716142800.3853651-1-ferruh.yigit@intel.com> References: <20210617081449.2045195-1-ferruh.yigit@intel.com> <20210716142800.3853651-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v2 6/8] test/virtual_pmd: provide descriptor limit info 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 Sender: "dev" Signed-off-by: Ferruh Yigit --- app/test/virtual_pmd.c | 4 ++++ app/test/virtual_pmd.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c index e0ea213ae231..27c8501b96a7 100644 --- a/app/test/virtual_pmd.c +++ b/app/test/virtual_pmd.c @@ -103,6 +103,10 @@ virtual_ethdev_info_get(struct rte_eth_dev *dev __rte_unused, dev_info->min_rx_bufsize = 0; + dev_info->rx_desc_lim.nb_max = VIRTUAL_ETHDEV_MAX_DESC_NUM; + dev_info->rx_desc_lim.nb_min = VIRTUAL_ETHDEV_MIN_DESC_NUM; + dev_info->rx_desc_lim.nb_align = VIRTUAL_ETHDEV_DESC_ALIGN; + return 0; } diff --git a/app/test/virtual_pmd.h b/app/test/virtual_pmd.h index 374bb4148f96..7e11d23f598e 100644 --- a/app/test/virtual_pmd.h +++ b/app/test/virtual_pmd.h @@ -11,6 +11,10 @@ extern "C" { #include +#define VIRTUAL_ETHDEV_MAX_DESC_NUM 2048 +#define VIRTUAL_ETHDEV_MIN_DESC_NUM 32 +#define VIRTUAL_ETHDEV_DESC_ALIGN 8 + int virtual_ethdev_init(void); -- 2.31.1