Lines Matching refs:num_hops
109 size_t num_hops; in tb_path_discover() local
127 num_hops = 0; in tb_path_discover()
148 num_hops++; in tb_path_discover()
157 path->path_length = num_hops; in tb_path_discover()
160 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
169 for (i = 0; i < num_hops; i++) { in tb_path_discover()
234 size_t num_hops; in tb_path_alloc() local
245 num_hops = abs(tb_route_length(tb_route(src->sw)) - in tb_path_alloc()
248 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
257 for (i = 0; i < num_hops; i++) { in tb_path_alloc()
277 if (i == num_hops - 1) in tb_path_alloc()
297 path->path_length = num_hops; in tb_path_alloc()