Lines Matching refs:fib_nh
66 int nhsel; const struct fib_nh *nh; \
67 for (nhsel = 0, nh = (fi)->fib_nh; \
72 int nhsel; struct fib_nh *nexthop_nh; \
73 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
82 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
87 struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
219 void fib_nh_release(struct net *net, struct fib_nh *fib_nh) in fib_nh_release() argument
222 if (fib_nh->nh_tclassid) in fib_nh_release()
225 fib_nh_common_release(&fib_nh->nh_common); in fib_nh_release()
282 const struct fib_nh *onh; in nh_comp()
432 struct fib_nh *nh; in ip_fib_check_default()
610 int fib_nh_init(struct net *net, struct fib_nh *nh, in fib_nh_init()
685 struct fib_nh *nh; in fib_get_nhs()
845 const struct fib_nh *nh, in fib_encap_match()
883 struct fib_nh *nh = fib_info_nh(fi, 0); in fib_nh_match()
1031 static int fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh, in fib_check_nh_v6_gw()
1099 static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table, in fib_check_nh_v4_gw()
1193 static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh, in fib_check_nh_nongw()
1228 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, in fib_check_nh()
1328 struct fib_nh *nh; in fib_info_update_nhc_saddr()
1333 nh = container_of(nhc, struct fib_nh, nh_common); in fib_info_update_nhc_saddr()
1348 struct fib_nh *nh; in fib_result_prefsrc()
1350 nh = container_of(nhc, struct fib_nh, nh_common); in fib_result_prefsrc()
1454 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in fib_create_info()
1493 err = fib_nh_init(net, fi->fib_nh, cfg, 1, extack); in fib_create_info()
1530 struct fib_nh *nh = fi->fib_nh; in fib_create_info()
1834 struct fib_nh *nh; in fib_dump_info()
1836 nh = container_of(nhc, struct fib_nh, nh_common); in fib_dump_info()
1893 static int call_fib_nh_notifiers(struct fib_nh *nh, in call_fib_nh_notifiers()
1898 .fib_nh = nh, in call_fib_nh_notifiers()
1964 struct fib_nh *nh; in fib_sync_mtu()
1987 struct fib_nh *nh; in fib_sync_down_dev()
2134 struct fib_nh *nh; in fib_sync_up()
2190 static bool fib_good_nh(const struct fib_nh *nh) in fib_good_nh()