From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12C73A0561; Thu, 27 Feb 2020 18:51:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CEC652C4F; Thu, 27 Feb 2020 18:51:50 +0100 (CET) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 0896B1C01 for ; Thu, 27 Feb 2020 18:51:49 +0100 (CET) Received: by mail-pl1-f195.google.com with SMTP id q4so95980pls.4 for ; Thu, 27 Feb 2020 09:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GxAFBhg6esXMUQ+tkVUlWj6AROkB9n43Hp3s8Sl6XT0=; b=AxMiE9dP8Qa72K/wb9q8IY+Fx6v7vFON3Q13rWe9UjIq/C9L0My5gYeZNXfPfVbJmx NOsZfiFAPDSnCox6e39xdk0XR7BV1pOi1CU9e6/DXAJcPp095nWgGLqIhlbPEDtR5nWk CGNjPx9YelsPvUqhl+PXbd6dXsTJcQPBqYahPo/N6X9Gzc7iCPBhAnGFAO5BmFDdhHrt gc7M+Kxk+ruzpDbO7tvI1+DidBbygoBiro+X3ReXScnYKKrbijn+ErH/wbJxAQVPV+/J ow1uQxXCYVzBAsgiem5S5oHVp4tIA/NhXkHav4npjP0ZpX+msEfzd0abh+2B7aQ7TFTe kwpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GxAFBhg6esXMUQ+tkVUlWj6AROkB9n43Hp3s8Sl6XT0=; b=j8Tyoa1rTnw5bLN9WyDfJLbo5OztOc3X/7P0UFNIp+Hjy/nN8240czRZynmSduAa29 ZQol/TEu9fCyceeEwu3LyPBOsd9tZrYVwe80NRiIDDo69YQu8sB+M7rSISIIWe3avVzj jAEv9YdOBzcF36BCElyCCkJDxtp/0oOlDaVDZzOG8RZVefl0yb6678IZfRTW7AX5p0la zt1S+M8Cd7hmev9BybmzSzfyDJcszwLcQU7KLtVCNFQ57a3Wy2eZP2ghP2SOcUWF/95m eKwth4Tb3Ar0wFmedmhAaFV6zQCfSypL/x5y7vI13qVJ5IHb/f4piwqwrIlKWOzACAD+ QRCw== X-Gm-Message-State: APjAAAUjCKtcDolN/RJvF7AFQbjegjsd7jp80XVu6C1s8mmBOQwstb+u //yrDePDKLv7ICOQmtmAvDbQbw== X-Google-Smtp-Source: APXvYqxZioY4MNcymGQu+Vcul7SzIFnk0urg20vJyih5xi4jRsxcs/SWiDjwrALOE7mV86X4zW6elg== X-Received: by 2002:a17:902:8c91:: with SMTP id t17mr785274plo.98.1582825909056; Thu, 27 Feb 2020 09:51:49 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id k24sm4315123pgm.61.2020.02.27.09.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 09:51:48 -0800 (PST) Date: Thu, 27 Feb 2020 09:51:40 -0800 From: Stephen Hemminger To: Ferruh Yigit Cc: dev@dpdk.org Message-ID: <20200227095140.1f9c48d4@hermes.lan> In-Reply-To: <1f26ad63-0ec5-c463-1822-aac01004e72d@intel.com> References: <20200224231117.16354-1-stephen@networkplumber.org> <1f26ad63-0ec5-c463-1822-aac01004e72d@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] af_packet: allow configuring number of rings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Thu, 27 Feb 2020 17:20:45 +0000 Ferruh Yigit wrote: > On 2/24/2020 11:11 PM, Stephen Hemminger wrote: > > The maximum number of rings in af_packet is hard coded as 16. > > The user should be able to configure this as part of DPDK config. > > > > Signed-off-by: Stephen Hemminger > > --- > > config/common_base | 1 + > > drivers/net/af_packet/rte_eth_af_packet.c | 3 +++ > > 2 files changed, 4 insertions(+) > > > > diff --git a/config/common_base b/config/common_base > > index 6ea9c63cc36b..dd154a474b57 100644 > > --- a/config/common_base > > +++ b/config/common_base > > @@ -468,6 +468,7 @@ CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n > > # Compile software PMD backed by AF_PACKET sockets (Linux only) > > # > > CONFIG_RTE_LIBRTE_PMD_AF_PACKET=n > > +CONFIG_RTE_PMD_AF_PACKET_MAX_RINGS=16 > > > > Not sure about adding a new config option for this. > > There is already "qpairs" devarg, allocating queues dynamically, instead of > using a per-defined sized arrays, should enable removing > 'RTE_PMD_AF_PACKET_MAX_RINGS' completely. But the current driver does not allow qpairs > 16. This is a config option to allow more.