fix dpdk bugs for two port mode