Upstream: fix tries check in ip_hash. Make two checks for maximum number of tries consistent. The other one checks '>' condition.