Lines Matching defs:mpath

2238 	struct mesh_path *mpath;
2250 mpath = mesh_path_add(sdata, dst);
2251 if (IS_ERR(mpath)) {
2253 return PTR_ERR(mpath);
2256 mesh_path_fix_nexthop(mpath, sta);
2278 struct mesh_path *mpath;
2291 mpath = mesh_path_lookup(sdata, dst);
2292 if (!mpath) {
2297 mesh_path_fix_nexthop(mpath, sta);
2303 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
2306 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop);
2315 pinfo->generation = mpath->sdata->u.mesh.mesh_paths_generation;
2327 pinfo->frame_qlen = mpath->frame_queue.qlen;
2328 pinfo->sn = mpath->sn;
2329 pinfo->metric = mpath->metric;
2330 if (time_before(jiffies, mpath->exp_time))
2331 pinfo->exptime = jiffies_to_msecs(mpath->exp_time - jiffies);
2333 jiffies_to_msecs(mpath->discovery_timeout);
2334 pinfo->discovery_retries = mpath->discovery_retries;
2335 if (mpath->flags & MESH_PATH_ACTIVE)
2337 if (mpath->flags & MESH_PATH_RESOLVING)
2339 if (mpath->flags & MESH_PATH_SN_VALID)
2341 if (mpath->flags & MESH_PATH_FIXED)
2343 if (mpath->flags & MESH_PATH_RESOLVED)
2345 pinfo->hop_count = mpath->hop_count;
2346 pinfo->path_change_count = mpath->path_change_count;
2354 struct mesh_path *mpath;
2359 mpath = mesh_path_lookup(sdata, dst);
2360 if (!mpath) {
2364 memcpy(dst, mpath->dst, ETH_ALEN);
2365 mpath_set_pinfo(mpath, next_hop, pinfo);
2375 struct mesh_path *mpath;
2380 mpath = mesh_path_lookup_by_idx(sdata, idx);
2381 if (!mpath) {
2385 memcpy(dst, mpath->dst, ETH_ALEN);
2386 mpath_set_pinfo(mpath, next_hop, pinfo);
2391 static void mpp_set_pinfo(struct mesh_path *mpath, u8 *mpp,
2395 memcpy(mpp, mpath->mpp, ETH_ALEN);
2397 pinfo->generation = mpath->sdata->u.mesh.mpp_paths_generation;
2405 struct mesh_path *mpath;
2410 mpath = mpp_path_lookup(sdata, dst);
2411 if (!mpath) {
2415 memcpy(dst, mpath->dst, ETH_ALEN);
2416 mpp_set_pinfo(mpath, mpp, pinfo);
2426 struct mesh_path *mpath;
2431 mpath = mpp_path_lookup_by_idx(sdata, idx);
2432 if (!mpath) {
2436 memcpy(dst, mpath->dst, ETH_ALEN);
2437 mpp_set_pinfo(mpath, mpp, pinfo);