Mbuf Pools */
| 842 | |
| 843 | /* Mbuf Pools */ |
| 844 | static inline void |
| 845 | mbuf_poolname_build(unsigned int sock_id, char *mp_name, |
| 846 | int name_size, uint16_t idx) |
| 847 | { |
| 848 | if (!idx) |
| 849 | snprintf(mp_name, name_size, |
| 850 | MBUF_POOL_NAME_PFX "_%u", sock_id); |
| 851 | else |
| 852 | snprintf(mp_name, name_size, |
| 853 | MBUF_POOL_NAME_PFX "_%hu_%hu", (uint16_t)sock_id, idx); |
| 854 | } |
| 855 | |
| 856 | static inline struct rte_mempool * |
| 857 | mbuf_pool_find(unsigned int sock_id, uint16_t idx) |
no test coverage detected