/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect_dynptr.c | 292 encap_headers_t *encap, struct in_addr *next_hop, in forward_with_gre() 404 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 419 encap_headers_t *encap, struct in_addr *next_hop, in forward_to_next_hop() 433 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 435 return forward_with_gre(skb, dynptr, encap, next_hop, metrics); in forward_to_next_hop() 441 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 442 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 443 encap->unigue.next_hop++; in forward_to_next_hop() 446 /* Remove ip->saddr, add next_hop->s_addr */ in forward_to_next_hop() 448 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop in forward_to_next_hop() 291 forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_with_gre() argument 418 forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_to_next_hop() argument 475 get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument 837 struct in_addr next_hop; cls_redirect() local [all...] |
H A D | test_cls_redirect.c | 400 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() 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() 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() 553 /* Remove ip->saddr, add next_hop->s_addr */ in forward_to_next_hop() 555 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop in forward_to_next_hop() 399 forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_with_gre() argument 526 forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_to_next_hop() argument 583 get_next_hop(buf_t *pkt, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument 1021 struct in_addr next_hop; cls_redirect() local [all...] |
H A D | test_cls_redirect.h | 46 uint8_t next_hop; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect.c | 399 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() 508 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 520 struct in_addr *next_hop, metrics_t *metrics) in forward_to_next_hop() 533 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 535 return forward_with_gre(skb, encap, next_hop, metrics); in forward_to_next_hop() 541 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 542 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 543 encap->unigue.next_hop++; in forward_to_next_hop() 546 /* Remove ip->saddr, add next_hop->s_addr */ in forward_to_next_hop() 548 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop in forward_to_next_hop() 398 forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_with_gre() argument 519 forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, struct in_addr *next_hop, metrics_t *metrics) forward_to_next_hop() argument 576 get_next_hop(buf_t *pkt, encap_headers_t *encap, struct in_addr *next_hop) get_next_hop() argument 1014 struct in_addr next_hop; cls_redirect() local [all...] |
H A D | test_cls_redirect.h | 46 uint8_t next_hop; member
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A 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() [all...] |
H A D | tb_regs.h | 401 u32 next_hop:11; /* member
|
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A 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() 148 h = hop.next_hop; in tb_path_discover() 176 int next_hop; in tb_path_discover() local 190 next_hop = hop.next_hop; in tb_path_discover() 193 tb_port_alloc_out_hopid(out_port, next_hop, next_hop) < 0) { in tb_path_discover() 202 path->hops[i].next_hop_index = next_hop; in tb_path_discover() 206 h = next_hop; in tb_path_discover() [all...] |
/kernel/linux/linux-5.10/net/mac80211/ |
H A D | mesh_pathtbl.c | 84 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() 147 * The gate mpath must be an active mpath with a valid mpath->next_hop. 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() 749 * @next_hop 753 mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) mesh_path_fix_nexthop() argument [all...] |
H A 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 in mesh_nexthop_lookup() [all...] |
H A D | mesh.h | 73 * @next_hop: mesh neighbor to which frames for this destination will be 99 * protected by RCU, deleting the next_hop STA must remove / substitute the 110 struct sta_info __rcu *next_hop; member 254 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
|
H A D | cfg.c | 1854 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() 1863 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath() 1894 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() 1904 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath() 1922 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument 1925 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo() 1928 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo() 1930 eth_zero_addr(next_hop); in mpath_set_pinfo() 1969 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() 1984 mpath_set_pinfo(mpath, next_hop, pinf in ieee80211_get_mpath() 1853 ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev, const u8 *dst, const u8 *next_hop) ieee80211_add_mpath() argument 1893 ieee80211_change_mpath(struct wiphy *wiphy, struct net_device *dev, const u8 *dst, const u8 *next_hop) ieee80211_change_mpath() argument 1968 ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) ieee80211_get_mpath() argument 1989 ieee80211_dump_mpath(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) ieee80211_dump_mpath() argument [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | mesh_hwmp.c | 457 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get() 495 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 533 ((rcu_access_pointer(mpath->next_hop) != sta ? in hwmp_route_info_get() 547 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 704 return rcu_dereference_protected(mpath->next_hop, in next_hop_deref_protected() 717 u8 next_hop[ETH_ALEN]; in hwmp_prep_frame_process() local 747 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process() 758 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process() 1256 struct sta_info *next_hop; in mesh_nexthop_lookup() local 1270 next_hop in mesh_nexthop_lookup() [all...] |
H A D | mesh_pathtbl.c | 120 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop() 139 char *next_hop; in prepare_for_gate() local 166 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate() 167 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 183 * The gate mpath must be an active mpath with a valid mpath->next_hop. 200 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue() 483 sta = rcu_dereference(mpath->next_hop); in mesh_fast_tx_cache() 638 if (rcu_access_pointer(entry->mpath->next_hop) == sta) in mesh_fast_tx_flush_sta() 765 if (rcu_access_pointer(mpath->next_hop) in mesh_plink_broken() 1019 mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) mesh_path_fix_nexthop() argument [all...] |
H A D | mesh.h | 74 * @next_hop: mesh neighbor to which frames for this destination will be 100 * protected by RCU, deleting the next_hop STA must remove / substitute the 111 struct sta_info __rcu *next_hop; member 288 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
|
H A D | cfg.c | 2235 const u8 *dst, const u8 *next_hop) in ieee80211_add_mpath() 2244 sta = sta_info_get(sdata, next_hop); in ieee80211_add_mpath() 2275 const u8 *dst, const u8 *next_hop) in ieee80211_change_mpath() 2285 sta = sta_info_get(sdata, next_hop); in ieee80211_change_mpath() 2303 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in mpath_set_pinfo() argument 2306 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in mpath_set_pinfo() 2309 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in mpath_set_pinfo() 2311 eth_zero_addr(next_hop); in mpath_set_pinfo() 2350 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in ieee80211_get_mpath() 2365 mpath_set_pinfo(mpath, next_hop, pinf in ieee80211_get_mpath() 2234 ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev, const u8 *dst, const u8 *next_hop) ieee80211_add_mpath() argument 2274 ieee80211_change_mpath(struct wiphy *wiphy, struct net_device *dev, const u8 *dst, const u8 *next_hop) ieee80211_change_mpath() argument 2349 ieee80211_get_mpath(struct wiphy *wiphy, struct net_device *dev, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) ieee80211_get_mpath() argument 2370 ieee80211_dump_mpath(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) ieee80211_dump_mpath() argument [all...] |
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | network-coding.c | 467 nc_path->next_hop); in batadv_nc_purge_paths() 474 nc_path->prev_hop, nc_path->next_hop); in batadv_nc_purge_paths() 492 memcpy(key->next_hop, dst, sizeof(key->next_hop)); in batadv_nc_hash_key_gen() 508 hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); in batadv_nc_hash_choose() 533 if (!batadv_compare_eth(nc_path1->next_hop, nc_path2->next_hop)) in batadv_nc_hash_compare() 990 ether_addr_copy(nc_path->next_hop, dst); in batadv_nc_get_path() 995 nc_path->next_hop); in batadv_nc_get_path() [all...] |
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | network-coding.c | 460 nc_path->next_hop); in batadv_nc_purge_paths() 467 nc_path->prev_hop, nc_path->next_hop); in batadv_nc_purge_paths() 485 memcpy(key->next_hop, dst, sizeof(key->next_hop)); in batadv_nc_hash_key_gen() 501 hash = jhash(&nc_path->next_hop, sizeof(nc_path->next_hop), hash); in batadv_nc_hash_choose() 526 if (!batadv_compare_eth(nc_path1->next_hop, nc_path2->next_hop)) in batadv_nc_hash_compare() 981 ether_addr_copy(nc_path->next_hop, dst); in batadv_nc_get_path() 986 nc_path->next_hop); in batadv_nc_get_path() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cls_redirect.c | 285 struct in_addr next_hop; in build_input() local 297 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input() 298 p = mempcpy(p, &next_hop, sizeof(next_hop)); in build_input()
|
/kernel/linux/linux-5.10/net/wireless/ |
H A D | rdev-ops.h | 240 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() 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() 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() 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, struc in rdev_dump_mpath() 239 rdev_add_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop) rdev_add_mpath() argument 259 rdev_change_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop) rdev_change_mpath() argument 270 rdev_get_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) rdev_get_mpath() argument 294 rdev_dump_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, int idx, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) rdev_dump_mpath() argument [all...] |
H A D | trace.h | 886 u8 *next_hop), 887 TP_ARGS(wiphy, netdev, dst, next_hop), 892 MAC_ENTRY(next_hop) 898 MAC_ASSIGN(next_hop, next_hop); 902 MAC_PR_ARG(next_hop)) 907 u8 *next_hop), 908 TP_ARGS(wiphy, netdev, dst, next_hop) 913 u8 *next_hop), 914 TP_ARGS(wiphy, netdev, dst, next_hop) [all...] |
/kernel/linux/linux-6.6/net/wireless/ |
H A D | rdev-ops.h | 251 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() 254 trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath() 255 ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath() 272 u8 *next_hop) in rdev_change_mpath() 275 trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath() 276 ret = rdev->ops->change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath() 282 struct net_device *dev, u8 *dst, u8 *next_hop, in rdev_get_mpath() 286 trace_rdev_get_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_get_mpath() 287 ret = rdev->ops->get_mpath(&rdev->wiphy, dev, dst, next_hop, pinfo); in rdev_get_mpath() 307 u8 *next_hop, struc in rdev_dump_mpath() 250 rdev_add_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop) rdev_add_mpath() argument 270 rdev_change_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop) rdev_change_mpath() argument 281 rdev_get_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) rdev_get_mpath() argument 305 rdev_dump_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, int idx, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) rdev_dump_mpath() argument [all...] |
H A D | trace.h | 934 u8 *next_hop), 935 TP_ARGS(wiphy, netdev, dst, next_hop), 940 MAC_ENTRY(next_hop) 946 MAC_ASSIGN(next_hop, next_hop); 950 __entry->next_hop) 955 u8 *next_hop), 956 TP_ARGS(wiphy, netdev, dst, next_hop) 961 u8 *next_hop), 962 TP_ARGS(wiphy, netdev, dst, next_hop) [all...] |
/kernel/linux/linux-6.6/drivers/s390/net/ |
H A 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()
|