[IPV4] IPIP: Unify code path to get hash array index.