Skip to content

Commit

Permalink
config: enable packet prefetching with Meson
Browse files Browse the repository at this point in the history
[ upstream commit 048a2aa ]

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.

Fixes: 9314afb ("drivers: add infrastructure for meson build")

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>
  • Loading branch information
mcoquelin authored and bluca committed Nov 16, 2020
1 parent c36d11b commit a382ea6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/rte_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,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
Expand Down

0 comments on commit a382ea6

Please sign in to comment.