Lines Matching refs:new_mpath

532 	struct mesh_path *mpath, *new_mpath;  in mesh_path_add()  local
565 new_mpath = kzalloc(sizeof(struct mesh_path), GFP_ATOMIC); in mesh_path_add()
566 if (!new_mpath) in mesh_path_add()
573 memcpy(new_mpath->dst, dst, ETH_ALEN); in mesh_path_add()
574 eth_broadcast_addr(new_mpath->rann_snd_addr); in mesh_path_add()
575 new_mpath->is_root = false; in mesh_path_add()
576 new_mpath->sdata = sdata; in mesh_path_add()
577 new_mpath->flags = 0; in mesh_path_add()
578 skb_queue_head_init(&new_mpath->frame_queue); in mesh_path_add()
579 new_node->mpath = new_mpath; in mesh_path_add()
580 new_mpath->timer.data = (unsigned long) new_mpath; in mesh_path_add()
581 new_mpath->timer.function = mesh_path_timer; in mesh_path_add()
582 new_mpath->exp_time = jiffies; in mesh_path_add()
583 spin_lock_init(&new_mpath->state_lock); in mesh_path_add()
584 init_timer(&new_mpath->timer); in mesh_path_add()
597 mpath = new_mpath; in mesh_path_add()
604 kfree(new_mpath); in mesh_path_add()
666 struct mesh_path *mpath, *new_mpath; in mpp_path_add() local
681 new_mpath = kzalloc(sizeof(struct mesh_path), GFP_ATOMIC); in mpp_path_add()
682 if (!new_mpath) in mpp_path_add()
690 memcpy(new_mpath->dst, dst, ETH_ALEN); in mpp_path_add()
691 memcpy(new_mpath->mpp, mpp, ETH_ALEN); in mpp_path_add()
692 new_mpath->sdata = sdata; in mpp_path_add()
693 new_mpath->flags = 0; in mpp_path_add()
694 skb_queue_head_init(&new_mpath->frame_queue); in mpp_path_add()
695 new_node->mpath = new_mpath; in mpp_path_add()
696 init_timer(&new_mpath->timer); in mpp_path_add()
697 new_mpath->exp_time = jiffies; in mpp_path_add()
698 spin_lock_init(&new_mpath->state_lock); in mpp_path_add()
736 kfree(new_mpath); in mpp_path_add()