| 9871 | } |
| 9872 | |
| 9873 | static inline void |
| 9874 | ext_mbuf_memzone_free(int nb_segs) |
| 9875 | { |
| 9876 | int i; |
| 9877 | |
| 9878 | for (i = 0; i <= nb_segs; i++) { |
| 9879 | char mz_name[RTE_MEMZONE_NAMESIZE]; |
| 9880 | const struct rte_memzone *memzone; |
| 9881 | snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "ext_buf_%d", i); |
| 9882 | memzone = rte_memzone_lookup(mz_name); |
| 9883 | if (memzone != NULL) { |
| 9884 | rte_memzone_free(memzone); |
| 9885 | memzone = NULL; |
| 9886 | } |
| 9887 | } |
| 9888 | } |
| 9889 | |
| 9890 | static inline struct rte_mbuf * |
| 9891 | ext_mbuf_create(struct rte_mempool *mbuf_pool, int pkt_len, |
no test coverage detected