Data prefetch instruction can preload data into cpu’s 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.
Signed-off-by: Marvin Liu <yong....@intel.com> --- v2: move define from meson.build to rte_config.h --- config/rte_config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/config/rte_config.h b/config/rte_config.h index 0bae630fd9..8b007c4c31 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -101,6 +101,7 @@ #define RTE_LIBRTE_GRAPH_STATS 1 /****** driver defines ********/ +#define RTE_PMD_PACKET_PREFETCH 1 /* QuickAssist device */ /* Max. number of QuickAssist devices which can be attached */ -- 2.17.1