]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/net/nexthop.h
nexthop: Fix nexthop_num_path for blackhole nexthops
[linux.git] / include / net / nexthop.h
index 25f1f9a8419b88eba011f1d14c6e1987146b2b26..95f766c31c907fff2427de084e517fd1c3740073 100644 (file)
@@ -141,12 +141,6 @@ static inline unsigned int nexthop_num_path(const struct nexthop *nh)
 
                nh_grp = rcu_dereference_rtnl(nh->nh_grp);
                rc = nh_grp->num_nh;
-       } else {
-               const struct nh_info *nhi;
-
-               nhi = rcu_dereference_rtnl(nh->nh_info);
-               if (nhi->reject_nh)
-                       rc = 0;
        }
 
        return rc;