dpdk: cleanup, move APIs to separate .c file