ipv4: save cpu cycles from check_leaf() - Backport from linux 3.8