Lines Matching refs:new_mpath
385 struct mesh_path *new_mpath; in mesh_path_new() local
387 new_mpath = kzalloc(sizeof(struct mesh_path), gfp_flags); in mesh_path_new()
388 if (!new_mpath) in mesh_path_new()
391 memcpy(new_mpath->dst, dst, ETH_ALEN); in mesh_path_new()
392 eth_broadcast_addr(new_mpath->rann_snd_addr); in mesh_path_new()
393 new_mpath->is_root = false; in mesh_path_new()
394 new_mpath->sdata = sdata; in mesh_path_new()
395 new_mpath->flags = 0; in mesh_path_new()
396 skb_queue_head_init(&new_mpath->frame_queue); in mesh_path_new()
397 new_mpath->exp_time = jiffies; in mesh_path_new()
398 spin_lock_init(&new_mpath->state_lock); in mesh_path_new()
399 timer_setup(&new_mpath->timer, mesh_path_timer, 0); in mesh_path_new()
401 return new_mpath; in mesh_path_new()
417 struct mesh_path *mpath, *new_mpath; in mesh_path_add() local
430 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC); in mesh_path_add()
431 if (!new_mpath) in mesh_path_add()
437 &new_mpath->rhash, in mesh_path_add()
455 kfree(new_mpath); in mesh_path_add()
456 new_mpath = mpath; in mesh_path_add()
459 return new_mpath; in mesh_path_add()
466 struct mesh_path *new_mpath; in mpp_path_add() local
476 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC); in mpp_path_add()
478 if (!new_mpath) in mpp_path_add()
481 memcpy(new_mpath->mpp, mpp, ETH_ALEN); in mpp_path_add()
484 &new_mpath->rhash, in mpp_path_add()