dpdk: refactor setup, start, stop code