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 7874FA0526; Mon, 20 Jan 2020 21:48:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6CC301C069; Mon, 20 Jan 2020 21:48:15 +0100 (CET) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id A057F1C065 for ; Mon, 20 Jan 2020 21:48:13 +0100 (CET) Received: by mail-pf1-f196.google.com with SMTP id 2so276430pfg.12 for ; Mon, 20 Jan 2020 12:48:13 -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=UxIDWo1BNumGD+TLYJse5oDcZ8YH25yEvip8Yv1l1FE=; b=I2iUCf42KRIXUB4DMMf/vF2P6MbGQ32LtKYaxLA/e79NY76TKlq+tnhpimlkPhwss4 uwVGCNIk16VH1XjsGCRtobj6TR9gpGFx4wgImesPebnXSeMcbwV7MJvQYI4S+7pzL5vf sDI/y9Og9pFvo3xMQyIzS56Q6RcvbKfIhIT5szngqunvIwsCdVLngQ6d987XIwm/qGqK Fd0vgArXX36RXKzxp9Uf/3aj9SZ4npxQBkW+wfRD2h8DA24EkhWHeOzyxil6ZRwM737Q HbSKbnKVBdOEbJdZIgqpW0w6Q582f2qJGGc9DX4iim23h0kF/RsSiEXAmBF/znYeLhCj RKqw== 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=UxIDWo1BNumGD+TLYJse5oDcZ8YH25yEvip8Yv1l1FE=; b=NnsIjHiUugASjc0RRzELyMxfK39eFZ3bN+ebqbdKfuIXRfuG3YnJDFFMA/yt/bld00 ZGp3JwsLjo0jBCvtmqDuHb7hcDofeCdvClP5snNBrgx/HD9VYuHewqBadIZi/1Arsjz3 NCpEV7vX/D6cA/wphsmO9fG/Qxszq+X5fA9AQixkZm6kSwYLm3JOPugHLUXRB4J+6J9Q /aPNB3AXI2RhSCSHaqKFIbBmIPDyTAMzFNf24G1BQ7UK+T/MvpJaNx/Ay0MeXD7oB5Lo 6DOY4+P79o4uw0ElpWNebodOWh19PvU45nH9BxcerC9wrg79SLrr4dOaWHsZRc1dKiqx DtiQ== X-Gm-Message-State: APjAAAUyYX0UO0PazlEd9Eo+Dzxu4k1+j517QjJnqKmBwwsRVu0IilG3 2EtjVC+I3QAxeamidZrxhEUkFBe/R9E= X-Google-Smtp-Source: APXvYqyxr1Re7bHWvMm0ojch8cSnsY1U9n6mEBRzIWdIYp36AJeGQ245RLjg36hv8ZHozFF+O5lfCA== X-Received: by 2002:a63:1945:: with SMTP id 5mr1637489pgz.310.1579553292759; Mon, 20 Jan 2020 12:48:12 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f8sm40301477pfn.2.2020.01.20.12.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 12:48:12 -0800 (PST) Date: Mon, 20 Jan 2020 12:48:04 -0800 From: Stephen Hemminger To: Viacheslav Ovsiienko Cc: dev@dpdk.org, matan@mellanox.com, rasland@mellanox.com, orika@mellanox.com, shahafs@mellanox.com, olivier.matz@6wind.com, thomas@mellanox.net Message-ID: <20200120124804.7a56c4e3@hermes.lan> In-Reply-To: <1579547786-7650-4-git-send-email-viacheslavo@mellanox.com> References: <20191118094938.192850-1-shahafs@mellanox.com> <1579547786-7650-1-git-send-email-viacheslavo@mellanox.com> <1579547786-7650-4-git-send-email-viacheslavo@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 3/5] mbuf: create packet pool with external memory buffers 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 Mon, 20 Jan 2020 19:16:24 +0000 Viacheslav Ovsiienko wrote: > + ((user_mbp_priv->flags & RTE_PKTMBUF_POOL_F_PINNED_EXT_BUF) ? > + sizeof(struct rte_mbuf_ext_shared_info) : > + user_mbp_priv->mbuf_data_room_size Should rte_pktmbuf_data_room_size() be used, and have it return the right value for external mbuf?