Lines Matching refs:new_mpath

406 	struct mesh_path *new_mpath;  in mesh_path_new()  local
408 new_mpath = kzalloc(sizeof(struct mesh_path), gfp_flags); in mesh_path_new()
409 if (!new_mpath) in mesh_path_new()
412 memcpy(new_mpath->dst, dst, ETH_ALEN); in mesh_path_new()
413 eth_broadcast_addr(new_mpath->rann_snd_addr); in mesh_path_new()
414 new_mpath->is_root = false; in mesh_path_new()
415 new_mpath->sdata = sdata; in mesh_path_new()
416 new_mpath->flags = 0; in mesh_path_new()
417 skb_queue_head_init(&new_mpath->frame_queue); in mesh_path_new()
418 new_mpath->exp_time = jiffies; in mesh_path_new()
419 spin_lock_init(&new_mpath->state_lock); in mesh_path_new()
420 timer_setup(&new_mpath->timer, mesh_path_timer, 0); in mesh_path_new()
422 return new_mpath; in mesh_path_new()
684 struct mesh_path *mpath, *new_mpath; in mesh_path_add() local
696 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC); in mesh_path_add()
697 if (!new_mpath) in mesh_path_add()
703 &new_mpath->rhash, in mesh_path_add()
706 hlist_add_head(&new_mpath->walk_list, &tbl->walk_head); in mesh_path_add()
710 kfree(new_mpath); in mesh_path_add()
715 new_mpath = mpath; in mesh_path_add()
719 return new_mpath; in mesh_path_add()
726 struct mesh_path *new_mpath; in mpp_path_add() local
736 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC); in mpp_path_add()
738 if (!new_mpath) in mpp_path_add()
741 memcpy(new_mpath->mpp, mpp, ETH_ALEN); in mpp_path_add()
746 &new_mpath->rhash, in mpp_path_add()
749 hlist_add_head_rcu(&new_mpath->walk_list, &tbl->walk_head); in mpp_path_add()
753 kfree(new_mpath); in mpp_path_add()