Lines Matching refs:fib6_rt_nh
485 struct nsim_fib6_rt_nh *fib6_rt_nh; in nsim_fib6_rt_nh_find() local
487 list_for_each_entry(fib6_rt_nh, &fib6_rt->nh_list, list) { in nsim_fib6_rt_nh_find()
488 if (fib6_rt_nh->rt == rt) in nsim_fib6_rt_nh_find()
489 return fib6_rt_nh; in nsim_fib6_rt_nh_find()
498 struct nsim_fib6_rt_nh *fib6_rt_nh; in nsim_fib6_rt_nh_add() local
500 fib6_rt_nh = kzalloc(sizeof(*fib6_rt_nh), GFP_KERNEL); in nsim_fib6_rt_nh_add()
501 if (!fib6_rt_nh) in nsim_fib6_rt_nh_add()
505 fib6_rt_nh->rt = rt; in nsim_fib6_rt_nh_add()
506 list_add_tail(&fib6_rt_nh->list, &fib6_rt->nh_list); in nsim_fib6_rt_nh_add()
526 struct nsim_fib6_rt_nh *fib6_rt_nh; in nsim_fib6_rt_nh_del() local
528 fib6_rt_nh = nsim_fib6_rt_nh_find(fib6_rt, rt); in nsim_fib6_rt_nh_del()
529 if (!fib6_rt_nh) in nsim_fib6_rt_nh_del()
533 list_del(&fib6_rt_nh->list); in nsim_fib6_rt_nh_del()
534 nsim_rt6_release(fib6_rt_nh->rt); in nsim_fib6_rt_nh_del()
535 kfree(fib6_rt_nh); in nsim_fib6_rt_nh_del()
668 struct nsim_fib6_rt_nh *fib6_rt_nh; in nsim_fib6_rt_hw_flags_set() local
670 list_for_each_entry(fib6_rt_nh, &fib6_rt->nh_list, list) in nsim_fib6_rt_hw_flags_set()
671 fib6_info_hw_flags_set(net, fib6_rt_nh->rt, false, trap, false); in nsim_fib6_rt_hw_flags_set()