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 1CF96A04DB; Thu, 15 Oct 2020 00:02:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B598C1DA87; Thu, 15 Oct 2020 00:02:44 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 1E8FF1D64C for ; Thu, 15 Oct 2020 00:02:43 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9D50F5C012E; Wed, 14 Oct 2020 18:02:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 14 Oct 2020 18:02:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= 5KLS/6V8GHVaycGa/5o2GSRJrS6Z2pHNpsGtdRUSP8o=; b=sOynBjbrqDXloiw+ NI3YdfW66bKDyyiKU2/3fSHxMchCJoNcJ2qt48+MdhYixCzfrdio/KmDKhT3PvNo S5nmJ5eamB3fMEtxunvsr3ldmNbBVddJgyo/jajj5zFrdiaeM3Cb7k7Qq6cPiWnA hWZMZyieo3I29NG782KuJwQhgmk63jje02G4spIxrXojUf9ajh+5UBGKgEZIWyjt luSSoD61W/grko5kZ5CTtsw3SGKBuSdaJ4UNcFk+BdCKNTV7QDEl8q+bUH6Q+C4r eWzn+tiDCjt5iRKOwBlc698Fcltmas2IbzaIvGX4qsj7mVK82a3jxnU7/fq+Mqe/ aSAk6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=5KLS/6V8GHVaycGa/5o2GSRJrS6Z2pHNpsGtdRUSP 8o=; b=WtMRWIhnLIw46aOVwAZW451TVwWpwYjeHT3N8H+6pG0MgG4+vwUFKezRT 5IHkrp6sqB+p6i+pYtxDfQab/FgeB7Im2eL97IaaizfU2L/9reQc3esvBHYLBKsH UMePsrn011C9qhwrABjlR6qNYNORX6gIVd0T88oOKwQaceU3Q6A4VET/vw6oP5Uu 8Ta+NfiM9nlmGt++eMQu9tI6j33H/BOKj6OFhAbIq0VLkS19XoCPpDjg20Y/aCoZ Q5kP1+2RJmX2vIDpSVAMOCFp8ZS6MPmjofaYsEdDq34ro8LN3QuGLPzjwDBXtbKx xh+/yCuw3MK/mKJ2CI3fSNY1CvmmA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedriedvgddthecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfgjfhgggfgtsehtqhertd dttdejnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepkeethedtieevhfeigeejle egudefjeehkeekteeuveeiuedvveeutdejveehveetnecukfhppeejjedrudefgedrvddt fedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id DDC843280059; Wed, 14 Oct 2020 18:02:39 -0400 (EDT) From: Thomas Monjalon To: Marvin Liu Cc: bruce.richardson@intel.com, stephen@networkplumber.org, dev@dpdk.org, david.marchand@redhat.com, ferruh.yigit@intel.com, maxime.coquelin@redhat.com, honnappa.nagarahalli@arm.com, David Christensen , ruifeng.wang@arm.com Date: Thu, 15 Oct 2020 00:02:37 +0200 Message-ID: <3900730.QmOVHUWFXi@thomas> In-Reply-To: <20200923015131.101203-1-yong.liu@intel.com> References: <20200922082135.62240-1-yong.liu@intel.com> <20200923015131.101203-1-yong.liu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2] config: enable packet data prefetch 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" 23/09/2020 03:51, Marvin Liu: > Data prefetch instruction can preload data into cpu=E2=80=99s hierarchical > cache before data access. Virtualized data paths like virtio utilized > this feature for acceleration. Since most modern cpus have support > prefetch function, we can enable packet data prefetch as default. >=20 > Signed-off-by: Marvin Liu > --- > +#define RTE_PMD_PACKET_PREFETCH 1 We could also remove the related #ifdefs. What can be the drawback of always enable those prefetches?