MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cache_flush_buf

Function cache_flush_buf

dpdk/app/test-dma-perf/benchmark.c:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static inline void
113cache_flush_buf(__rte_unused struct rte_mbuf **array,
114 __rte_unused uint32_t buf_size,
115 __rte_unused uint32_t nr_buf)
116{
117#ifdef RTE_ARCH_X86_64
118 char *data;
119 struct rte_mbuf **srcs = array;
120 uint32_t i, offset;
121
122 for (i = 0; i < nr_buf; i++) {
123 data = rte_pktmbuf_mtod(srcs[i], char *);
124 for (offset = 0; offset < buf_size; offset += 64)
125 __builtin_ia32_clflush(data + offset);
126 }
127#endif
128}
129
130/* Configuration of device. */
131static void

Callers 1

mem_copy_benchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected