Lines Matching refs:new_mpath
401 struct mesh_path *new_mpath;
403 new_mpath = kzalloc(sizeof(struct mesh_path), gfp_flags);
404 if (!new_mpath)
407 memcpy(new_mpath->dst, dst, ETH_ALEN);
408 eth_broadcast_addr(new_mpath->rann_snd_addr);
409 new_mpath->is_root = false;
410 new_mpath->sdata = sdata;
411 new_mpath->flags = 0;
412 skb_queue_head_init(&new_mpath->frame_queue);
413 new_mpath->exp_time = jiffies;
414 spin_lock_init(&new_mpath->state_lock);
415 timer_setup(&new_mpath->timer, mesh_path_timer, 0);
417 return new_mpath;
670 struct mesh_path *mpath, *new_mpath;
682 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC);
683 if (!new_mpath)
689 &new_mpath->rhash,
692 hlist_add_head(&new_mpath->walk_list, &tbl->walk_head);
696 kfree(new_mpath);
701 new_mpath = mpath;
705 return new_mpath;
712 struct mesh_path *new_mpath;
722 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC);
724 if (!new_mpath)
727 memcpy(new_mpath->mpp, mpp, ETH_ALEN);
732 &new_mpath->rhash,
735 hlist_add_head_rcu(&new_mpath->walk_list, &tbl->walk_head);
739 kfree(new_mpath);