dpdk: improve perf of buffer indices calc in the input node