ip4: perf optimization in the ip4-input node