Lines Matching refs:nhs
214 int nhs = 0; in fib_count_nexthops() local
221 nhs++; in fib_count_nexthops()
224 return nhs; in fib_count_nexthops()
429 int nhs = 1; in fib_create_info() local
431 const int nhs = 1; in fib_create_info() local
443 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()
511 if (rta->rta_gw == NULL || nhs != 1 || rta->rta_oif) in fib_create_info()
531 if (nhs != 1 || nh->nh_gw) in fib_create_info()