Searched refs:nhs (Results 1 – 2 of 2) sorted by relevance
155 int nhs = 0; in dn_fib_count_nhs() local162 nhs++; in dn_fib_count_nhs()166 return nhs; in dn_fib_count_nhs()258 int nhs = 1; in dn_fib_create_info() local267 nhs = dn_fib_count_nhs(rta->rta_mp); in dn_fib_create_info()268 if (nhs == 0) in dn_fib_create_info()272 fi = kmalloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL); in dn_fib_create_info()276 memset(fi, 0, sizeof(*fi)+nhs*sizeof(struct dn_fib_nh)); in dn_fib_create_info()279 fi->fib_nhs = nhs; in dn_fib_create_info()316 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
214 int nhs = 0; in fib_count_nexthops() local221 nhs++; in fib_count_nexthops()224 return nhs; in fib_count_nexthops()429 int nhs = 1; in fib_create_info() local431 const int nhs = 1; in fib_create_info() local443 nhs = fib_count_nexthops(rta->rta_mp); in fib_create_info()444 if (nhs == 0) in fib_create_info()449 fi = kmalloc(sizeof(*fi)+nhs*sizeof(struct fib_nh), GFP_KERNEL); in fib_create_info()454 memset(fi, 0, sizeof(*fi)+nhs*sizeof(struct fib_nh)); in fib_create_info()457 fi->fib_nhs = nhs; in fib_create_info()[all …]