| /Linux-v5.15/tools/testing/selftests/bpf/progs/ |
| D | test_cls_redirect.c | 400 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() argument 515 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 540 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 542 return forward_with_gre(skb, encap, next_hop, metrics); in forward_to_next_hop() 548 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 549 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 550 encap->unigue.next_hop++; in forward_to_next_hop() 555 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop() 584 struct in_addr *next_hop) in get_next_hop() argument [all …]
|
| D | test_cls_redirect.h | 37 uint8_t next_hop; member
|
| /Linux-v5.15/drivers/thunderbolt/ |
| D | path.c | 21 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()
|
| D | tb_regs.h | 416 u32 next_hop:11; /* member
|
| /Linux-v5.15/net/mac80211/ |
| D | mesh_pathtbl.c | 92 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop() 111 char *next_hop; in prepare_for_gate() local 138 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate() 139 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 172 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue() 498 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken() 557 if (rcu_access_pointer(mpath->next_hop) == sta) in mesh_path_flush_by_nexthop() 748 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) in mesh_path_fix_nexthop() argument 751 mesh_path_assign_nexthop(mpath, next_hop); in mesh_path_fix_nexthop() 759 ewma_mesh_fail_avg_init(&next_hop->mesh->fail_avg); in mesh_path_fix_nexthop() [all …]
|
| D | mesh_hwmp.c | 451 (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 733 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process() 744 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process() 1224 struct sta_info *next_hop; in mesh_nexthop_lookup() local 1244 next_hop = rcu_dereference(mpath->next_hop); in mesh_nexthop_lookup() [all …]
|
| D | mesh.h | 110 struct sta_info __rcu *next_hop; member 274 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
|
| D | cfg.c | 1881 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() argument 1890 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath() 1921 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() argument 1931 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath() 1949 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument 1952 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo() 1955 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo() 1957 eth_zero_addr(next_hop); in mpath_set_pinfo() 1996 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() argument 2011 mpath_set_pinfo(mpath, next_hop, pinfo); in ieee80211_get_mpath() [all …]
|
| D | tx.c | 2637 struct sta_info *next_hop; in ieee80211_build_hdr() local 2643 next_hop = rcu_dereference(mpath->next_hop); in ieee80211_build_hdr() 2644 if (!next_hop || in ieee80211_build_hdr()
|
| /Linux-v5.15/net/batman-adv/ |
| D | network-coding.c | 464 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()
|
| D | types.h | 2050 u8 next_hop[ETH_ALEN]; member
|
| /Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
| D | cls_redirect.c | 284 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-v5.15/net/wireless/ |
| D | rdev-ops.h | 240 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() 276 ret = rdev->ops->get_mpath(&rdev->wiphy, dev, dst, next_hop, pinfo); in rdev_get_mpath() 296 u8 *next_hop, struct mpath_info *pinfo) in rdev_dump_mpath() argument [all …]
|
| D | trace.h | 881 u8 *next_hop), 882 TP_ARGS(wiphy, netdev, dst, next_hop), 887 MAC_ENTRY(next_hop) 893 MAC_ASSIGN(next_hop, next_hop); 897 MAC_PR_ARG(next_hop)) 902 u8 *next_hop), 903 TP_ARGS(wiphy, netdev, dst, next_hop) 908 u8 *next_hop), 909 TP_ARGS(wiphy, netdev, dst, next_hop) 914 u8 *next_hop), [all …]
|
| D | nl80211.c | 6830 u8 *dst, u8 *next_hop, in nl80211_send_mpath() argument 6842 nla_put(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop) || in nl80211_send_mpath() 6895 u8 next_hop[ETH_ALEN]; in nl80211_dump_mpath() local 6917 next_hop, &pinfo); in nl80211_dump_mpath() 6925 wdev->netdev, dst, next_hop, in nl80211_dump_mpath() 6948 u8 next_hop[ETH_ALEN]; in nl80211_get_mpath() local 6963 err = rdev_get_mpath(rdev, dev, dst, next_hop, &pinfo); in nl80211_get_mpath() 6972 dev, dst, next_hop, &pinfo) < 0) { in nl80211_get_mpath() 6985 u8 *next_hop = NULL; in nl80211_set_mpath() local 6994 next_hop = nla_data(info->attrs[NL80211_ATTR_MPATH_NEXT_HOP]); in nl80211_set_mpath() [all …]
|
| /Linux-v5.15/drivers/s390/net/ |
| D | qeth_core.h | 247 } next_hop; member 362 ipv6_addr_equal(&h1->next_hop.addr, &h2->next_hop.addr); in qeth_l3_same_next_hop()
|
| D | qeth_l3_main.c | 1669 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()
|
| D | qeth_core_main.c | 690 __be32 next_hop; in qeth_next_hop_is_local_v4() local 696 next_hop = qeth_next_hop_v4_rcu(skb, in qeth_next_hop_is_local_v4() 698 key = ipv4_addr_hash(next_hop); in qeth_next_hop_is_local_v4() 701 if (tmp->addr.s6_addr32[3] == next_hop) { in qeth_next_hop_is_local_v4() 715 struct in6_addr *next_hop; in qeth_next_hop_is_local_v6() local 723 next_hop = qeth_next_hop_v6_rcu(skb, in qeth_next_hop_is_local_v6() 725 key = ipv6_addr_hash(next_hop); in qeth_next_hop_is_local_v6() 728 if (ipv6_addr_equal(&tmp->addr, next_hop)) { in qeth_next_hop_is_local_v6() 5567 &l3_hdr->next_hop.rx.src_mac, skb->len); in qeth_l3_rebuild_skb() 5579 l3_hdr->next_hop.rx.vlan_id; in qeth_l3_rebuild_skb()
|
| /Linux-v5.15/include/net/ |
| D | cfg80211.h | 4079 const u8 *dst, const u8 *next_hop); 4083 const u8 *dst, const u8 *next_hop); 4085 u8 *dst, u8 *next_hop, struct mpath_info *pinfo); 4087 int idx, u8 *dst, u8 *next_hop,
|