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 2F80DA09E0; Fri, 13 Nov 2020 15:52:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C1734CA6; Fri, 13 Nov 2020 15:52:41 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 62A4E1E2B for ; Fri, 13 Nov 2020 15:52:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605279157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3aTj8/SRrvka6uLogdooyxABnXWMzjyE6QLLTy2PI+U=; b=W8L3KqvWhveBWOtS4ygI08/X5RWzrcc+r3XreAVThGZT4L5kRG0gb55zZfqcmmqPRChPjZ 0jF3e3IjuKF7hP+mxYCH6Rf2+N9IBYyXIJjK4UU7BOvkIGGl+YC4I9F+qg0JCIPtYDTso0 2204cuh7lz7PO/NH9s4aMb8zSvnHPQw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-21-0s1VwbIrOmeqHNZVrj_f0g-1; Fri, 13 Nov 2020 09:52:35 -0500 X-MC-Unique: 0s1VwbIrOmeqHNZVrj_f0g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B50C584A607; Fri, 13 Nov 2020 14:52:16 +0000 (UTC) Received: from localhost.localdomain (unknown [10.36.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0AB8E55793; Fri, 13 Nov 2020 14:52:14 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, bruce.richardson@intel.com, yong.liu@intel.com, david.marchand@redhat.com Cc: Maxime Coquelin , stable@dpdk.org Date: Fri, 13 Nov 2020 15:52:12 +0100 Message-Id: <20201113145212.486443-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] config: enable packet prefetching with Meson 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" With Make build system, RTE_PMD_PACKET_PREFETCH was enabled by default. It got lost when transitioning to Meson build system. In order to avoid performance changes, this patch enables packet prefetching in rte_config.h. Reported-by: Marvin Liu Suggested-by: David Marchand Signed-off-by: Maxime Coquelin --- Hi Bruce, We were not sure whether adding below Fixes tag so that it is backported to LTSes. What do you think? Fixes: 9314afb68a53 ("drivers: add infrastructure for meson build") Cc: stable@dpdk.org config/rte_config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/rte_config.h b/config/rte_config.h index 25219f04af..a0b5160ff2 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -103,6 +103,9 @@ /****** driver defines ********/ +/* Packet prefetching in PMDs */ +#define RTE_PMD_PACKET_PREFETCH 1 + /* QuickAssist device */ /* Max. number of QuickAssist devices which can be attached */ #define RTE_PMD_QAT_MAX_PCI_DEVICES 48 -- 2.26.2