Home
last modified time | relevance | path

Searched refs:next_hop (Results 1 – 10 of 10) sorted by relevance

/net/mac80211/
Dmesh_pathtbl.c89 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop()
108 char *next_hop; in prepare_for_gate() local
135 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate()
136 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate()
170 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue()
496 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken()
554 if (rcu_access_pointer(mpath->next_hop) == sta) in mesh_path_flush_by_nexthop()
745 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) in mesh_path_fix_nexthop() argument
748 mesh_path_assign_nexthop(mpath, next_hop); in mesh_path_fix_nexthop()
756 ewma_mesh_fail_avg_init(&next_hop->mesh->fail_avg); in mesh_path_fix_nexthop()
[all …]
Dmesh_hwmp.c448 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get()
486 if (rcu_access_pointer(mpath->next_hop) != sta) in hwmp_route_info_get()
520 ((rcu_access_pointer(mpath->next_hop) != sta ? in hwmp_route_info_get()
534 if (rcu_access_pointer(mpath->next_hop) != sta) in hwmp_route_info_get()
687 return rcu_dereference_protected(mpath->next_hop, in next_hop_deref_protected()
700 u8 next_hop[ETH_ALEN]; in hwmp_prep_frame_process() local
730 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process()
741 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process()
1181 struct sta_info *next_hop; in mesh_nexthop_lookup() local
1197 next_hop = rcu_dereference(mpath->next_hop); in mesh_nexthop_lookup()
[all …]
Dmesh.h110 struct sta_info __rcu *next_hop; member
272 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
Dcfg.c1722 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() argument
1731 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath()
1762 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() argument
1772 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath()
1790 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument
1793 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo()
1796 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo()
1798 eth_zero_addr(next_hop); in mpath_set_pinfo()
1837 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() argument
1852 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath()
[all …]
Dtx.c2547 struct sta_info *next_hop; in ieee80211_build_hdr() local
2553 next_hop = rcu_dereference(mpath->next_hop); in ieee80211_build_hdr()
2554 if (!next_hop || in ieee80211_build_hdr()
/net/batman-adv/
Dnetwork-coding.c459 nc_path->next_hop); in batadv_nc_purge_paths()
466 nc_path->prev_hop, nc_path->next_hop); in batadv_nc_purge_paths()
484 memcpy(key->next_hop, dst, sizeof(key->next_hop)); in batadv_nc_hash_key_gen()
500 hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); in batadv_nc_hash_choose()
525 if (!batadv_compare_eth(nc_path1->next_hop, nc_path2->next_hop)) in batadv_nc_hash_compare()
982 ether_addr_copy(nc_path->next_hop, dst); in batadv_nc_get_path()
987 nc_path->next_hop); in batadv_nc_get_path()
1295 if (!batadv_compare_eth(nc_path->next_hop, out_nc_node->addr)) in batadv_nc_path_search()
Dtypes.h2075 u8 next_hop[ETH_ALEN]; member
/net/wireless/
Drdev-ops.h227 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() argument
230 trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
231 ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
248 u8 *next_hop) in rdev_change_mpath() argument
251 trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
252 ret = rdev->ops->change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
258 struct net_device *dev, u8 *dst, u8 *next_hop, in rdev_get_mpath() argument
262 trace_rdev_get_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_get_mpath()
263 ret = rdev->ops->get_mpath(&rdev->wiphy, dev, dst, next_hop, pinfo); in rdev_get_mpath()
283 u8 *next_hop, struct mpath_info *pinfo) in rdev_dump_mpath() argument
[all …]
Dtrace.h851 u8 *next_hop),
852 TP_ARGS(wiphy, netdev, dst, next_hop),
857 MAC_ENTRY(next_hop)
863 MAC_ASSIGN(next_hop, next_hop);
867 MAC_PR_ARG(next_hop))
872 u8 *next_hop),
873 TP_ARGS(wiphy, netdev, dst, next_hop)
878 u8 *next_hop),
879 TP_ARGS(wiphy, netdev, dst, next_hop)
884 u8 *next_hop),
[all …]
Dnl80211.c6097 u8 *dst, u8 *next_hop, in nl80211_send_mpath() argument
6109 nla_put(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop) || in nl80211_send_mpath()
6162 u8 next_hop[ETH_ALEN]; in nl80211_dump_mpath() local
6183 next_hop, &pinfo); in nl80211_dump_mpath()
6191 wdev->netdev, dst, next_hop, in nl80211_dump_mpath()
6214 u8 next_hop[ETH_ALEN]; in nl80211_get_mpath() local
6229 err = rdev_get_mpath(rdev, dev, dst, next_hop, &pinfo); in nl80211_get_mpath()
6238 dev, dst, next_hop, &pinfo) < 0) { in nl80211_get_mpath()
6251 u8 *next_hop = NULL; in nl80211_set_mpath() local
6260 next_hop = nla_data(info->attrs[NL80211_ATTR_MPATH_NEXT_HOP]); in nl80211_set_mpath()
[all …]