Move dpdk (un)format functions to separate c file