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 12557A0350; Tue, 23 Jun 2020 16:48:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E1FAF1D681; Tue, 23 Jun 2020 16:48:43 +0200 (CEST) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id ED8BD1D675 for ; Tue, 23 Jun 2020 16:48:41 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id ga6so1571098pjb.1 for ; Tue, 23 Jun 2020 07:48:41 -0700 (PDT) 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=t6BhbVrscaccd8NOlHO3Flfn/ehloIOCUydUlOtr+TE=; b=YOTAkt9RoMsbauAbXglcNam6HWZDFMouIU1OkJ7M6RwA9kilXMbayMdlMcJJnsIR+z IXZVGJUMotseO0vENRRVDQaqJwcQslT37pbBWJW7XXJ0/gev1z2tPtYhBSfcKVsRRruM tU0ev5+8BfeU9PN8O60YY54Q6F7NUZIJ+qKs5C4/RLH8SC2Xr63/5a+Dwsz1of8WPF/1 I5M1FROiXgHBaWF0SJb/2Ky6tPi3rEQmvS45bO1MHnxY4YAVS2WkLu5nicYypjdCwfHS P8zBR0GpxKiHJfyhpo857izmzczAmfwCIfxHAt4+fzW3bk4e1+ze+8HUWU2/mxtCQDZy 17tg== 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=t6BhbVrscaccd8NOlHO3Flfn/ehloIOCUydUlOtr+TE=; b=jKbBo6hsVVW4X35fy6aAtxKaZlXN+OSVmJKWCLcGa337RrW+J+Pi9btpRA8IMHe+k6 P1Z8UKctR2MErN/aPTvlxKwupaFYZcSggKSgNuTIrZmKK+YNRbS4hO9Tp4FNCmSLFGZY F54kiD6InLGFWWIJTxIqmOAPVz4hEOOlMXU5wDz1cEJswJwzL100G4fXwGjzE9csnziY sil7moUxEhmNjJwroUXx8K1J9TxcKo+ACJenmSkIHw3dsyLtI2gvS3txaANAsZMxBlnP fzzDMDuYc44/a8TuoGVuo4M/lkFL5evgvndBmwCXz5TOnJcVdUboHQglb2G9SnR+kig0 JtdQ== X-Gm-Message-State: AOAM532AGcujJOlpmLSn87YftWeYSWMCiuLy09EtZ4T6N5MrC+eRppHU 0bvtF9NboS5Q5KxysjHOZFjLCg== X-Google-Smtp-Source: ABdhPJyCxp1p/xSM7AsRJooQuHRqSbVai/dwNNP+tiUM9I6275BOhPtGOYIFO6ZOHfIe5DZEfjXZBA== X-Received: by 2002:a17:90b:188a:: with SMTP id mn10mr4248298pjb.84.1592923720974; Tue, 23 Jun 2020 07:48:40 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p12sm14078680pgk.40.2020.06.23.07.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 07:48:40 -0700 (PDT) Date: Tue, 23 Jun 2020 07:48:31 -0700 From: Stephen Hemminger To: Chengchang Tang Cc: , , , , Message-ID: <20200623074831.5ca9a2df@hermes.lan> In-Reply-To: <1592894934-57856-1-git-send-email-tangchengchang@huawei.com> References: <1592894934-57856-1-git-send-email-tangchengchang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [RFC] ethdev: add a field for rte_eth_rxq_info 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 Tue, 23 Jun 2020 14:48:54 +0800 Chengchang Tang wrote: > In common practice, PMD configure the rx_buf_size according to the data > room size of the object in mempool. But in fact the final value is related > to the specifications of hw, and its values will affect the number of > fragments in recieving pkts. > > At present, we seem to have no way to espose relevant information to upper > layer users. > > Add a field named rx_bufsize in rte_eth_rxq_info to indicate the buffer > size used in recieving pkts for hw. > > Signed-off-by: Chengchang Tang > --- > lib/librte_ethdev/rte_ethdev.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h > index 0f6d053..82b7e98 100644 > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -1306,6 +1306,7 @@ struct rte_eth_rxq_info { > struct rte_eth_rxconf conf; /**< queue config parameters. */ > uint8_t scattered_rx; /**< scattered packets RX supported. */ > uint16_t nb_desc; /**< configured number of RXDs. */ > + uint16_t rx_bufsize; /**< size of RX buffer. */ > } __rte_cache_min_aligned; > > /** > -- > 2.7.4 > Will have to wait until 20.11 as it is an ABI change.