ipv4:CPU perfomance update

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