| /linux/drivers/md/dm-vdo/ |
| H A D | int-map.c | 80 u8 next_hop; member 265 int next_hop = neighborhood->first_hop; in insert_in_hop_list() local 267 if ((next_hop == NULL_HOP_OFFSET) || (next_hop > hop_offset)) { in insert_in_hop_list() 268 new_bucket->next_hop = next_hop; in insert_in_hop_list() 275 struct bucket *bucket = dereference_hop(neighborhood, next_hop); in insert_in_hop_list() 277 next_hop = bucket->next_hop; in insert_in_hop_list() 279 if ((next_hop == NULL_HOP_OFFSET) || (next_hop > hop_offset)) { in insert_in_hop_list() 280 new_bucket->next_hop = next_hop; in insert_in_hop_list() 281 bucket->next_hop = hop_offset; in insert_in_hop_list() 326 unsigned int next_hop = bucket->first_hop; in search_hop_list() local [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_cls_redirect_dynptr.c | 294 encap_headers_t *encap, struct in_addr *next_hop, in forward_with_gre() argument 406 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 421 encap_headers_t *encap, struct in_addr *next_hop, in forward_to_next_hop() argument 435 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 437 return forward_with_gre(skb, dynptr, encap, next_hop, metrics); in forward_to_next_hop() 443 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 444 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 445 encap->unigue.next_hop++; in forward_to_next_hop() 450 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop() 478 struct in_addr *next_hop) in get_next_hop() argument [all …]
|
| H A D | test_cls_redirect.c | 401 struct in_addr *next_hop, metrics_t *metrics) in forward_with_gre() argument 516 encap_gre->ip.daddr = next_hop->s_addr; in forward_with_gre() 528 struct in_addr *next_hop, metrics_t *metrics) in forward_to_next_hop() argument 541 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 543 return forward_with_gre(skb, encap, next_hop, metrics); in forward_to_next_hop() 549 encap->ip.daddr = next_hop->s_addr; in forward_to_next_hop() 550 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 551 encap->unigue.next_hop++; in forward_to_next_hop() 556 int ret = bpf_l3_csum_replace(skb, off, old_saddr, next_hop->s_addr, 4); in forward_to_next_hop() 585 struct in_addr *next_hop) in get_next_hop() argument [all …]
|
| H A D | test_cls_redirect.h | 46 uint8_t next_hop; member
|
| /linux/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() 550 hop.next_hop = path->hops[i].next_hop_index; in tb_path_activate()
|
| H A D | tb_regs.h | 504 u32 next_hop:11; /* member
|
| /linux/net/mac80211/ |
| H A D | mesh_pathtbl.c | 121 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop() 140 char *next_hop; in prepare_for_gate() local 167 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate() 168 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 201 if (WARN_ON(!gate_mpath->next_hop)) in mesh_path_move_to_queue() 489 sta = rcu_dereference(mpath->next_hop); in mesh_fast_tx_cache() 647 if (rcu_access_pointer(entry->mpath->next_hop) == sta) in mesh_fast_tx_flush_sta() 779 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken() 842 if (rcu_access_pointer(mpath->next_hop) == sta) in mesh_path_flush_by_nexthop() 1047 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop) in mesh_path_fix_nexthop() argument [all …]
|
| H A D | mesh_hwmp.c | 461 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get() 499 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 537 ((rcu_access_pointer(mpath->next_hop) != sta ? in hwmp_route_info_get() 551 if (rcu_access_pointer(mpath->next_hop) != sta) { in hwmp_route_info_get() 710 return rcu_dereference_protected(mpath->next_hop, 723 u8 next_hop[ETH_ALEN]; in hwmp_prep_frame_process() 753 memcpy(next_hop, next_hop_deref_protected(mpath)->sta.addr, ETH_ALEN); in hwmp_prep_frame_process() 764 target_addr, target_sn, next_hop, hopcount, in hwmp_prep_frame_process() 1265 struct sta_info *next_hop; in mesh_nexthop_lookup() 1279 next_hop in mesh_nexthop_lookup() 727 u8 next_hop[ETH_ALEN]; hwmp_prep_frame_process() local 1269 struct sta_info *next_hop; mesh_nexthop_lookup() local [all...] |
| H A D | mesh.h | 112 struct sta_info __rcu *next_hop; member 318 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
|
| H A D | cfg.c | 2694 const u8 *dst, const u8 *next_hop) in ieee80211_dump_mpath() 2703 sta = sta_info_get(sdata, next_hop); in ieee80211_dump_mpath() 2734 const u8 *dst, const u8 *next_hop) 2744 sta = sta_info_get(sdata, next_hop); in ieee80211_dump_mpp() 2762 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop, in ieee80211_get_mesh_config() 2765 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop); in ieee80211_get_mesh_config() 2768 memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN); in _chg_mesh_attr() 2770 eth_zero_addr(next_hop); in _chg_mesh_attr() 2809 u8 *dst, u8 *next_hop, struct mpath_info *pinfo) in copy_mesh_setup() 2824 mpath_set_pinfo(mpath, next_hop, pinf in copy_mesh_setup() 2549 ieee80211_add_mpath(struct wiphy * wiphy,struct net_device * dev,const u8 * dst,const u8 * next_hop) ieee80211_add_mpath() argument 2589 ieee80211_change_mpath(struct wiphy * wiphy,struct net_device * dev,const u8 * dst,const u8 * next_hop) ieee80211_change_mpath() argument 2617 mpath_set_pinfo(struct mesh_path * mpath,u8 * next_hop,struct mpath_info * pinfo) mpath_set_pinfo() argument 2664 ieee80211_get_mpath(struct wiphy * wiphy,struct net_device * dev,u8 * dst,u8 * next_hop,struct mpath_info * pinfo) ieee80211_get_mpath() argument 2685 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...] |
| H A D | tx.c | 2722 struct sta_info *next_hop; in ieee80211_build_hdr() 2728 next_hop = rcu_dereference(mpath->next_hop); in ieee80211_build_hdr() 2729 if (!next_hop || in ieee80211_build_hdr() 2706 struct sta_info *next_hop; ieee80211_build_hdr() local
|
| H A D | mesh.c | 804 sta = rcu_dereference(entry->mpath->next_hop); in ieee80211_mesh_xmit_fast()
|
| H A D | rx.c | 2917 sta = rcu_dereference(entry->mpath->next_hop); in ieee80211_rx_mesh_fast_forward()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | cls_redirect.c | 216 struct in_addr next_hop; in build_input() local 231 next_hop = (struct in_addr){ .s_addr = htonl(0x7f000002) }; in build_input() 232 p = mempcpy(p, &next_hop, sizeof(next_hop)); in build_input()
|
| /linux/net/wireless/ |
| H A D | rdev-ops.h | 251 struct net_device *dev, u8 *dst, u8 *next_hop) in rdev_add_mpath() argument 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() argument 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() argument 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() argument [all...] |
| H A D | trace.h | 1079 u8 *next_hop), 1080 TP_ARGS(wiphy, netdev, dst, next_hop), 1085 MAC_ENTRY(next_hop) 1091 MAC_ASSIGN(next_hop, next_hop); 1095 __entry->next_hop) 1100 u8 *next_hop), 1101 TP_ARGS(wiphy, netdev, dst, next_hop) 1106 u8 *next_hop), 1107 TP_ARGS(wiphy, netdev, dst, next_hop) [all...] |
| H A D | nl80211.c | 9286 u8 *dst, u8 *next_hop, in nl80211_dump_mpp() 9298 nla_put(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop) || in nl80211_set_bss() 9351 u8 next_hop[ETH_ALEN]; in nl80211_set_bss() 9373 next_hop, &pinfo); in nl80211_set_bss() 9381 wdev->netdev, dst, next_hop, in nl80211_set_bss() 9404 u8 next_hop[ETH_ALEN]; in nl80211_req_set_reg() 9419 err = rdev_get_mpath(rdev, dev, dst, next_hop, &pinfo); in nl80211_req_set_reg() 9428 dev, dst, next_hop, &pinfo) < 0) { in nl80211_req_set_reg() 9441 u8 *next_hop = NULL; 9450 next_hop in nl80211_get_mesh_config() 8980 nl80211_send_mpath(struct sk_buff * msg,u32 portid,u32 seq,int flags,struct net_device * dev,u8 * dst,u8 * next_hop,struct mpath_info * pinfo) nl80211_send_mpath() argument 9045 u8 next_hop[ETH_ALEN]; nl80211_dump_mpath() local 9098 u8 next_hop[ETH_ALEN]; nl80211_get_mpath() local 9135 u8 *next_hop = NULL; nl80211_set_mpath() local 9160 u8 *next_hop = NULL; nl80211_new_mpath() local [all...] |
| /linux/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()
|
| H A D | qeth_l3_main.c | 1673 l3_hdr->next_hop.addr.s6_addr32[3] = in qeth_l3_fill_header() 1677 l3_hdr->next_hop.addr = *qeth_next_hop_v6_rcu(skb, dst); in qeth_l3_fill_header() 1684 l3_hdr->next_hop.addr.s6_addr16[0] = htons(0xfe80); in qeth_l3_fill_header() 1685 memcpy(&l3_hdr->next_hop.addr.s6_addr32[2], in qeth_l3_fill_header()
|
| H A D | qeth_core_main.c | 685 __be32 next_hop; in qeth_next_hop_is_local_v4() local 691 next_hop = qeth_next_hop_v4_rcu(skb, in qeth_next_hop_is_local_v4() 693 key = ipv4_addr_hash(next_hop); in qeth_next_hop_is_local_v4() 696 if (tmp->addr.s6_addr32[3] == next_hop) { in qeth_next_hop_is_local_v4() 710 struct in6_addr *next_hop; in qeth_next_hop_is_local_v6() local 718 next_hop = qeth_next_hop_v6_rcu(skb, in qeth_next_hop_is_local_v6() 720 key = ipv6_addr_hash(next_hop); in qeth_next_hop_is_local_v6() 723 if (ipv6_addr_equal(&tmp->addr, next_hop)) { in qeth_next_hop_is_local_v6() 5506 &l3_hdr->next_hop.rx.src_mac, skb->len); in qeth_l3_rebuild_skb() 5518 l3_hdr->next_hop.rx.vlan_id; in qeth_l3_rebuild_skb()
|
| /linux/include/net/ |
| H A D | cfg80211.h | 5156 const u8 *dst, const u8 *next_hop); 5160 const u8 *dst, const u8 *next_hop); 5162 u8 *dst, u8 *next_hop, struct mpath_info *pinfo); 5164 int idx, u8 *dst, u8 *next_hop,
|