Porting fix for replicate bug to netfpga and dpdk