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 CE277A04E6; Mon, 7 Dec 2020 19:58:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A379E07; Mon, 7 Dec 2020 19:58:36 +0100 (CET) Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by dpdk.org (Postfix) with ESMTP id ED75CCF3 for ; Mon, 7 Dec 2020 19:58:32 +0100 (CET) Received: by mail-pg1-f170.google.com with SMTP id w4so9664828pgg.13 for ; Mon, 07 Dec 2020 10:58:32 -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=xj5F2aHpjZxaY6tTr7rUN7aNhZicvFiv/PoWqg5CktI=; b=D829TaavKi5izA/Jmrl08m/aMb/xF6Y3wMxKg7VvGN/P9uk0oFuevH02auH/McK6u6 XYVT1rmdzM0ASoFM0f4beI23ecNAHTGNHcHZNrMFs6Q/ZGs0nGfJH723KJphOtko34Tf JKW1gxsoC37s2NZHf2eYHem09w8TVjUAdif5ATpLIuykptHDMhfrRBcqLzzzfufWNbt7 TlSzqmo7SxSSK2UjRpO4PO8MFh6XYlwY9dABEwrf2gCoNQb92C1Xgxdu9J3CQC3JvhvB YRV+VM9pHSqVLTB7/0GFRXyRJt+jWZUTEQ+hdfm4yUqr7nnKiPRq/rgW9WIUXOc38H83 J/IA== 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=xj5F2aHpjZxaY6tTr7rUN7aNhZicvFiv/PoWqg5CktI=; b=mZy9eAymFFMdVgBKD4gzaNqx5hmFVSR4NwRu8FkGRIRB9x2tT/2zUXi/+fEIwD25z7 puGsLnwrQ4PkHfWRYdthWz7C0Do12ZtHJKrdp686fDkWamCobL82/iu7827ThYPvVS4L fW7iqLh+ZbxwsB9429+Cc458UQE/3lafDNPTkRakVYpbX+fFJm81GDACa+v7SZtpBEX0 C9ThXxzcEXzbM5qT41qKyXprTW9rvepItzCF3u0QUbDWFe+xp950MltUFw32NuLij0xF gaR5xMimkFR00YZqCydYnVcgWkHopn48CICvqyVIJQK4IuXQu4DsNOeE5SVeox3CO3O6 8TSA== X-Gm-Message-State: AOAM533oYxN488rXsWSKCGlAPnAUo+oWgeD9P3qFX561lKVwNE+kFki8 cHwu6R0xh57Bo5WRfh8YCYqG7Q== X-Google-Smtp-Source: ABdhPJwVoaV4gLh/AUyTRwMmiK6uXKLhVy9aL8fL0R7UE6kaV/7K2bgOQychZyakhlahjSCzdyAjIA== X-Received: by 2002:a63:f64c:: with SMTP id u12mr19526278pgj.325.1607367510898; Mon, 07 Dec 2020 10:58:30 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 129sm10263185pfw.86.2020.12.07.10.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 10:58:30 -0800 (PST) Date: Mon, 7 Dec 2020 10:58:27 -0800 From: Stephen Hemminger To: Pranab Das Cc: "dev@dpdk.org" Message-ID: <20201207105827.31c0ded6@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] DPDK secondary process access to mbufs using rte_pktmbuf_attach_extbuf() 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 Fri, 4 Dec 2020 13:07:01 +0000 Pranab Das wrote: > Hi > > I am wondering if the secondary DPDK processes can access the mbufs that are attached using rte_pktmbuf_attach_extbuf(). > The DPDK primary process allocates the buffer pool from the heap. Is there any example application that you can refer to ? > > Thank you very much > > > * PKDas When external buffers are used, they should come from memory that is visible and mapped in both primary and secondary process (i.e hugepages). It is possible that a buggy driver or application would not do that.