Searched refs:nhsel (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/net/mpls/ |
D | internal.h | 81 int nhsel; struct mpls_nh *nh; \ 82 for (nhsel = 0, nh = (rt)->rt_nh; \ 83 nhsel < (rt)->rt_nhn; \ 84 nh++, nhsel++) 87 int nhsel; struct mpls_nh *nh; \ 88 for (nhsel = 0, nh = (struct mpls_nh *)((rt)->rt_nh); \ 89 nhsel < (rt)->rt_nhn; \ 90 nh++, nhsel++)
|
/linux-4.4.14/net/decnet/ |
D | dn_fib.c | 51 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\ 52 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++) 54 #define change_nexthops(fi) { int nhsel; struct dn_fib_nh *nh;\ 55 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++) 436 if (nhsel < fi->fib_nhs) { in dn_fib_semantic_match() 437 res->nh_sel = nhsel; in dn_fib_semantic_match() 483 res->nh_sel = nhsel; in dn_fib_select_multipath()
|
D | dn_table.c | 63 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\ 64 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
|
/linux-4.4.14/net/ipv4/ |
D | fib_semantics.c | 63 int nhsel; const struct fib_nh *nh; \ 64 for (nhsel = 0, nh = (fi)->fib_nh; \ 65 nhsel < (fi)->fib_nhs; \ 66 nh++, nhsel++) 69 int nhsel; struct fib_nh *nexthop_nh; \ 70 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 71 nhsel < (fi)->fib_nhs; \ 72 nexthop_nh++, nhsel++) 79 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 80 for (nhsel = 0; nhsel < 1; nhsel++) [all …]
|
D | fib_trie.c | 1397 int nhsel, err; in fib_table_lookup() local 1418 for (nhsel = 0; nhsel < fi->fib_nhs; nhsel++) { in fib_table_lookup() 1419 const struct fib_nh *nh = &fi->fib_nh[nhsel]; in fib_table_lookup() 1439 res->nh_sel = nhsel; in fib_table_lookup()
|
/linux-4.4.14/net/switchdev/ |
D | switchdev.c | 1123 int nhsel; in switchdev_get_dev_by_nhs() local 1129 for (nhsel = 0; nhsel < fi->fib_nhs; nhsel++) { in switchdev_get_dev_by_nhs() 1130 const struct fib_nh *nh = &fi->fib_nh[nhsel]; in switchdev_get_dev_by_nhs() 1142 if (nhsel > 0 && in switchdev_get_dev_by_nhs()
|