Lines Matching refs:new_mpath
365 struct mesh_path *new_mpath;
367 new_mpath = kzalloc(sizeof(struct mesh_path), gfp_flags);
368 if (!new_mpath)
371 memcpy(new_mpath->dst, dst, ETH_ALEN);
372 eth_broadcast_addr(new_mpath->rann_snd_addr);
373 new_mpath->is_root = false;
374 new_mpath->sdata = sdata;
375 new_mpath->flags = 0;
376 skb_queue_head_init(&new_mpath->frame_queue);
377 new_mpath->exp_time = jiffies;
378 spin_lock_init(&new_mpath->state_lock);
379 timer_setup(&new_mpath->timer, mesh_path_timer, 0);
381 return new_mpath;
397 struct mesh_path *mpath, *new_mpath;
409 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC);
410 if (!new_mpath)
416 &new_mpath->rhash,
419 hlist_add_head(&new_mpath->walk_list, &tbl->walk_head);
423 kfree(new_mpath);
428 new_mpath = mpath;
432 return new_mpath;
439 struct mesh_path *new_mpath;
449 new_mpath = mesh_path_new(sdata, dst, GFP_ATOMIC);
451 if (!new_mpath)
454 memcpy(new_mpath->mpp, mpp, ETH_ALEN);
459 &new_mpath->rhash,
462 hlist_add_head_rcu(&new_mpath->walk_list, &tbl->walk_head);
466 kfree(new_mpath);