Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
A Dtest_cls_redirect.c515 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre()
527 struct in_addr *next_hop, metrics_t *metrics) in forward_to_next_hop() argument
548 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop()
550 encap->unigue.next_hop++; in forward_to_next_hop()
584 struct in_addr *next_hop) in get_next_hop() argument
595 next_hop->s_addr = 0; in get_next_hop()
599 if (!buf_copy(pkt, next_hop, sizeof(*next_hop))) { in get_next_hop()
605 encap->unigue.next_hop - 1); in get_next_hop()
1021 struct in_addr next_hop; in cls_redirect() local
1022 MAYBE_RETURN(get_next_hop(&pkt, encap, &next_hop)); in cls_redirect()
[all …]
A Dtest_cls_redirect.h37 uint8_t next_hop; member
/linux/drivers/thunderbolt/
A Dpath.c21 hop->in_hop_index, regs->out_port, regs->next_hop); in tb_dump_hop()
58 hopid = hop.next_hop; in tb_path_find_dst_port()
146 h = hop.next_hop; in tb_path_discover()
170 int next_hop; in tb_path_discover() local
184 next_hop = hop.next_hop; in tb_path_discover()
186 if (tb_port_alloc_out_hopid(out_port, next_hop, next_hop) < 0) { in tb_path_discover()
195 path->hops[i].next_hop_index = next_hop; in tb_path_discover()
197 h = next_hop; in tb_path_discover()
521 hop.next_hop = path->hops[i].next_hop_index; in tb_path_activate()
A Dtb_regs.h416 u32 next_hop:11; /* member
/linux/net/mac80211/
A Dmesh_pathtbl.c84 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop()
103 char *next_hop; in prepare_for_gate() local
130 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate()
131 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate()
164 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue()
490 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken()
549 if (rcu_access_pointer(mpath->next_hop) == sta) in mesh_path_flush_by_nexthop()
740 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) in mesh_path_fix_nexthop() argument
743 mesh_path_assign_nexthop(mpath, next_hop); in mesh_path_fix_nexthop()
751 ewma_mesh_fail_avg_init(&next_hop->mesh->fail_avg); in mesh_path_fix_nexthop()
[all …]
A Dmesh_hwmp.c451 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get()
489 if (rcu_access_pointer(mpath->next_hop) != sta) in hwmp_route_info_get()
523 ((rcu_access_pointer(mpath->next_hop) != sta ? in hwmp_route_info_get()
537 if (rcu_access_pointer(mpath->next_hop) != sta) in hwmp_route_info_get()
690 return rcu_dereference_protected(mpath->next_hop, in next_hop_deref_protected()
703 u8 next_hop[ETH_ALEN]; in hwmp_prep_frame_process() local
744 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process()
1228 struct sta_info *next_hop; in mesh_nexthop_lookup() local
1248 next_hop = rcu_dereference(mpath->next_hop); in mesh_nexthop_lookup()
1249 if (next_hop) { in mesh_nexthop_lookup()
[all …]
A Dmesh.h110 struct sta_info __rcu *next_hop; member
254 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
A Dcfg.c1924 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() argument
1933 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath()
1964 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() argument
1974 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath()
1992 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument
1998 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo()
2000 eth_zero_addr(next_hop); in mpath_set_pinfo()
2039 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() argument
2054 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath()
2060 int idx, u8 *dst, u8 *next_hop, in ieee80211_dump_mpath() argument
[all …]
A Dtx.c2631 struct sta_info *next_hop; in ieee80211_build_hdr() local
2637 next_hop = rcu_dereference(mpath->next_hop); in ieee80211_build_hdr()
2638 if (!next_hop || in ieee80211_build_hdr()
/linux/net/batman-adv/
A Dnetwork-coding.c464 nc_path->next_hop); in batadv_nc_purge_paths()
471 nc_path->prev_hop, nc_path->next_hop); in batadv_nc_purge_paths()
489 memcpy(key->next_hop, dst, sizeof(key->next_hop)); in batadv_nc_hash_key_gen()
505 hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); in batadv_nc_hash_choose()
530 if (!batadv_compare_eth(nc_path1->next_hop, nc_path2->next_hop)) in batadv_nc_hash_compare()
985 ether_addr_copy(nc_path->next_hop, dst); in batadv_nc_get_path()
990 nc_path->next_hop); in batadv_nc_get_path()
1287 if (!batadv_compare_eth(nc_path->next_hop, out_nc_node->addr)) in batadv_nc_path_search()
A Dtypes.h2050 u8 next_hop[ETH_ALEN]; member
/linux/tools/testing/selftests/bpf/prog_tests/
A Dcls_redirect.c284 struct in_addr next_hop; in build_input() local
296 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input()
297 p = mempcpy(p, &next_hop, sizeof(next_hop)); in build_input()
/linux/net/wireless/
A Drdev-ops.h240 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() argument
243 trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
244 ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
261 u8 *next_hop) in rdev_change_mpath() argument
264 trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
265 ret = rdev->ops->change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
271 struct net_device *dev, u8 *dst, u8 *next_hop, in rdev_get_mpath() argument
275 trace_rdev_get_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_get_mpath()
296 u8 *next_hop, struct mpath_info *pinfo) in rdev_dump_mpath() argument
300 trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop); in rdev_dump_mpath()
[all …]
A Dtrace.h894 u8 *next_hop),
900 MAC_ENTRY(next_hop)
906 MAC_ASSIGN(next_hop, next_hop);
910 MAC_PR_ARG(next_hop))
915 u8 *next_hop),
921 u8 *next_hop),
927 u8 *next_hop),
933 u8 *dst, u8 *next_hop),
939 MAC_ENTRY(next_hop)
946 MAC_ASSIGN(next_hop, next_hop);
[all …]
A Dnl80211.c7030 u8 *dst, u8 *next_hop, in nl80211_send_mpath() argument
7095 u8 next_hop[ETH_ALEN]; in nl80211_dump_mpath() local
7117 next_hop, &pinfo); in nl80211_dump_mpath()
7125 wdev->netdev, dst, next_hop, in nl80211_dump_mpath()
7148 u8 next_hop[ETH_ALEN]; in nl80211_get_mpath() local
7163 err = rdev_get_mpath(rdev, dev, dst, next_hop, &pinfo); in nl80211_get_mpath()
7172 dev, dst, next_hop, &pinfo) < 0) { in nl80211_get_mpath()
7185 u8 *next_hop = NULL; in nl80211_set_mpath() local
7202 return rdev_change_mpath(rdev, dev, dst, next_hop); in nl80211_set_mpath()
7210 u8 *next_hop = NULL; in nl80211_new_mpath() local
[all …]
/linux/drivers/s390/net/
A Dqeth_core.h247 } next_hop; member
362 ipv6_addr_equal(&h1->next_hop.addr, &h2->next_hop.addr); in qeth_l3_same_next_hop()
A Dqeth_l3_main.c1669 l3_hdr->next_hop.addr.s6_addr32[3] = in qeth_l3_fill_header()
1673 l3_hdr->next_hop.addr = *qeth_next_hop_v6_rcu(skb, dst); in qeth_l3_fill_header()
1680 l3_hdr->next_hop.addr.s6_addr16[0] = htons(0xfe80); in qeth_l3_fill_header()
1681 memcpy(&l3_hdr->next_hop.addr.s6_addr32[2], in qeth_l3_fill_header()
A Dqeth_core_main.c686 __be32 next_hop; in qeth_next_hop_is_local_v4() local
692 next_hop = qeth_next_hop_v4_rcu(skb, in qeth_next_hop_is_local_v4()
694 key = ipv4_addr_hash(next_hop); in qeth_next_hop_is_local_v4()
697 if (tmp->addr.s6_addr32[3] == next_hop) { in qeth_next_hop_is_local_v4()
711 struct in6_addr *next_hop; in qeth_next_hop_is_local_v6() local
719 next_hop = qeth_next_hop_v6_rcu(skb, in qeth_next_hop_is_local_v6()
721 key = ipv6_addr_hash(next_hop); in qeth_next_hop_is_local_v6()
724 if (ipv6_addr_equal(&tmp->addr, next_hop)) { in qeth_next_hop_is_local_v6()
5568 &l3_hdr->next_hop.rx.src_mac, skb->len); in qeth_l3_rebuild_skb()
5580 l3_hdr->next_hop.rx.vlan_id; in qeth_l3_rebuild_skb()
/linux/include/net/
A Dcfg80211.h4133 const u8 *dst, const u8 *next_hop);
4137 const u8 *dst, const u8 *next_hop);
4139 u8 *dst, u8 *next_hop, struct mpath_info *pinfo);
4141 int idx, u8 *dst, u8 *next_hop,

Completed in 177 milliseconds