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 9E7E845BA1; Tue, 22 Oct 2024 23:23:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8206E402C2; Tue, 22 Oct 2024 23:23:30 +0200 (CEST) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by mails.dpdk.org (Postfix) with ESMTP id DC2D140151 for ; Tue, 22 Oct 2024 23:23:28 +0200 (CEST) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-83abdaf8a26so173718139f.1 for ; Tue, 22 Oct 2024 14:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1729632208; x=1730237008; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=LOuZYtfDGWm4lp6doDLipSPTFMLGZtBj6B4RUXLqyTE=; b=gA+gAcxq6IZZJpYsmieocx1usyInc98gWFBINVh0AvpG7ZtGw5n7/mDjbMJe8//FXv dvA81NIhT1kZprXry9lSKZdxffkoIpxCvZMtzxXjFLwF0QLr2xkKi03n5nz6VQt8Ozdn ZrwU/jif1rd3nsMYi1jWQSZvzwTdc/fAuHhlmV0LJQsScbUU/ZbIDLfnZw4DnL/C2xGR I7k5UZzyDIfgoOioDgsNPilorjCt/mMPqd++58kHAiGfGG9p6GK0NISl9F2It4Kwb8tA QjdeXdyliF/MWfH8dx83UhT+re0iQD1Ma58Fa8pf78GucpoduJ3zE5w+pz98Aytkx1pY DEew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729632208; x=1730237008; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LOuZYtfDGWm4lp6doDLipSPTFMLGZtBj6B4RUXLqyTE=; b=RPx/hOexKnsvCghuIqj7igI5mR6cZlb0AMo0T0YC/0geZQuNxiQCU3PuRqc4v5SBTl cDj7oXZiNEfqHTNfV4D2PJRf9DklC5liXjcNLUHtw04u9cVHSElSyvsUDCh4UdCP2Nd7 eB0/APLUUEn3Atcc+yVJK2CagTkBRyGH6J6NFZ2d/3ZIrnPn0JHdfrBjwR+SPf3olEH7 HUjuzqA/7sjZ9msS088Cj6DtwT8mCn6i/UwMMlBl4T2HugdOyDGjwvjIPl2ryDGt5rvG ro2HFtA84vKRpMu/+9R5SSOPwoYrBZQWOQgABu70k1+xyXgG0gvMHzTfpifHjyj1mQA5 XAYg== X-Gm-Message-State: AOJu0YyaiwMws2GpOeEpF+X72DbX4ga00tcGkfFVHZgkaIYiTYhCGP31 iJ3aGv3JUct6dMmtD94nvMkRnu3H0WwDrXxyirpOekxc/OcNYVYMcXYnf61p35uceTiY5yrKNoS m X-Google-Smtp-Source: AGHT+IEFcWW/Z3YRvSuj3A83KcG+y3U7/r/9NZAS/kYSjcx77KcBcREYuzx3I1opKOaUq+ib9jZ0jQ== X-Received: by 2002:a05:6602:14d0:b0:81f:75bf:6570 with SMTP id ca18e2360f4ac-83af616f46emr63080439f.5.1729632208108; Tue, 22 Oct 2024 14:23:28 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-83ad1c3363csm183929039f.6.2024.10.22.14.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 14:23:27 -0700 (PDT) Date: Tue, 22 Oct 2024 14:23:25 -0700 From: Stephen Hemminger To: Wathsala Wathawana Vithanage Cc: "dev@dpdk.org" , nd Subject: Re: [RFC v3 0/2] An API for Stashing Packets into CPU caches Message-ID: <20241022142325.2f9108fc@hermes.local> In-Reply-To: References: <20240715221141.16153-1-wathsala.vithanage@arm.com> <20241021015246.304431-1-wathsala.vithanage@arm.com> <20241021181251.6f9f69b6@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 22 Oct 2024 18:37:09 +0000 Wathsala Wathawana Vithanage wrote: > > 2. The API's should be used in the drivers and core, not exposed up > > to the application. Most of the hot data structures are in the > > drivers now. > > > PMDs don't know which CPU and cache level to use with TPH. > That information needs to be conveyed to the PMD, for it to work. > Please suggest alternatives. It would be better if EAL had a representation of CPU and cache hierarchy which it built. Then have the PMD (if it cared) be able to query the topology. That way the application would not have to care. The DPDK already leaks too many PCI details in the API.