patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] config: enable packet prefetching with Meson
@ 2020-11-13 14:52 Maxime Coquelin
  2020-11-13 15:05 ` Bruce Richardson
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Coquelin @ 2020-11-13 14:52 UTC (permalink / raw)
  To: dev, bruce.richardson, yong.liu, david.marchand; +Cc: Maxime Coquelin, stable

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 <yong.liu@intel.com>
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
---

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-14 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13 14:52 [dpdk-stable] [PATCH] config: enable packet prefetching with Meson Maxime Coquelin
2020-11-13 15:05 ` Bruce Richardson
2020-11-14  8:51   ` Thomas Monjalon
2020-11-14  9:00     ` [dpdk-stable] [dpdk-dev] " Thomas Monjalon
2020-11-14 10:54       ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).