| 110 | } |
| 111 | |
| 112 | static inline void |
| 113 | cache_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. */ |
| 131 | static void |
no outgoing calls
no test coverage detected