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 842D7A04B6; Tue, 22 Sep 2020 16:12:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B76081D150; Tue, 22 Sep 2020 16:12:02 +0200 (CEST) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id E2FEB1C2F0 for ; Tue, 22 Sep 2020 16:12:00 +0200 (CEST) Received: by mail-pf1-f194.google.com with SMTP id d6so12553714pfn.9 for ; Tue, 22 Sep 2020 07:12:00 -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=5y+RLaXuwe8v13we6aYmqGNv2/CPg8B86nnR7Prp3AE=; b=Xi7AnQCYyQgrDhEPArtyNZp+mNxH7HyQiM5EZLtpUr9g0GqEbtsHSVpdHvKySwiXXq vT2rbNiEhDBZwZ6WN8BZDoJ9lbutUnSrPgMy6feG1f80UpajiVFFDw8fvBLxYETk4sgG Y1w9aVBc0VJLqWo+dIESXGamTIoOH26cFS+pi1Od3eUYmU6ZMm2ucjjGspSEdupEJ4fJ 5iYUIVPCxHBky3ggp8I53XqaItgFlZ3cnlamNpZajKM79ENluE7FmsForFACtPmEjUGw yEWLEKiQaM4TmA0cl8a1sNuWf/B06sl7sJz6s6lGO65zgyRKD5aUrMTR9JlZ+58VZPzd v5ug== 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=5y+RLaXuwe8v13we6aYmqGNv2/CPg8B86nnR7Prp3AE=; b=lfNELj5MBwUCF9v/PpI0bjv60KOBSw34ijDe6IcERRKekjmKCgjuo2HNQHqKbaOkg4 57G40zBihAImIKDN40W78Syp5MN4+HpzRUAFrZZMfNyT2JdW7Y2DKWXL4jxCZvtIrub5 k8f6E1ifc0o7vZeuG6evOMiN9o9smSGRG1Tsoxcbjz7OqeA91VX1YgxcgToxOV4Qf8/K pYP80jSXQqFKF4HRpqy46rP9jOJ1LCyEGxqkJrPat0D+dLRIC3woxT0SlA6lmRvOF6AJ V37jqugYq8EunlWTgOOCL3xr4tVqii9niOnlhi0cMSzI+e8y9kXdis42sTZsfNCRLm1f do+Q== X-Gm-Message-State: AOAM5327dUZ1sgX5Btpk7EyNtY9bqJ9W2SkQB1Bi+gEk013DxUsXKQGh iaQLrH3ePlUW5TblRSFwY4rJiA== X-Google-Smtp-Source: ABdhPJztgD3kBM+3ntYWVFYJUkDrlwqAfIY9VVFh0m9T8rBfYfnASm8nBv8r6vK6Bbg3Yu9422gPMg== X-Received: by 2002:a62:5586:0:b029:13e:d13d:a108 with SMTP id j128-20020a6255860000b029013ed13da108mr4237723pfb.36.1600783920044; Tue, 22 Sep 2020 07:12:00 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id l188sm15199179pfl.200.2020.09.22.07.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 07:11:59 -0700 (PDT) Date: Tue, 22 Sep 2020 07:11:51 -0700 From: Stephen Hemminger To: Marvin Liu Cc: bruce.richardson@intel.com, dev@dpdk.org Message-ID: <20200922071151.2bd35352@hermes.lan> In-Reply-To: <20200922082135.62240-1-yong.liu@intel.com> References: <20200922082135.62240-1-yong.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH] build: 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" On Tue, 22 Sep 2020 16:21:35 +0800 Marvin Liu wrote: > 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 >=20 > diff --git a/config/meson.build b/config/meson.build > index 69f2aeb605..a0c828a437 100644 > --- a/config/meson.build > +++ b/config/meson.build > @@ -109,6 +109,9 @@ if not is_windows > add_project_link_arguments('-Wl,--no-as-needed', language: 'c') > endif > =20 > +# do prefetch of packet data > +dpdk_conf.set('RTE_PMD_PACKET_PREFETCH', 1) > + > # use pthreads if available for the platform > if not is_windows > add_project_link_arguments('-pthread', language: 'c') With meson, the project has been using rte_config.h for this.