Home
last modified time | relevance | path

Searched refs:tnl (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_xdp.c72 const struct iptnl_info *tnl, in set_ethhdr() argument
76 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
84 struct iptnl_info *tnl; in handle_ipv4() local
108 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
110 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
128 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
137 iph->daddr = tnl->daddr.v4; in handle_ipv4()
138 iph->saddr = tnl->saddr.v4; in handle_ipv4()
157 struct iptnl_info *tnl; in handle_ipv6() local
178 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
Dtest_xdp_loop.c68 const struct iptnl_info *tnl, in set_ethhdr() argument
72 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
80 struct iptnl_info *tnl; in handle_ipv4() local
104 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
106 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
124 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
133 iph->daddr = tnl->daddr.v4; in handle_ipv4()
134 iph->saddr = tnl->saddr.v4; in handle_ipv4()
153 struct iptnl_info *tnl; in handle_ipv6() local
174 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
/Linux-v5.10/samples/bpf/
Dxdp_tx_iptunnel_kern.c69 const struct iptnl_info *tnl, in set_ethhdr() argument
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
81 struct iptnl_info *tnl; in handle_ipv4() local
105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
107 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); in handle_ipv4()
136 iph->daddr = tnl->daddr.v4; in handle_ipv4()
137 iph->saddr = tnl->saddr.v4; in handle_ipv4()
156 struct iptnl_info *tnl; in handle_ipv6() local
177 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
Dxdp_tx_iptunnel_user.c165 struct iptnl_info tnl = {}; in main() local
172 tnl.family = AF_UNSPEC; in main()
204 v6 = tnl.saddr.v6; in main()
206 v6 = tnl.daddr.v6; in main()
211 if (tnl.family == AF_UNSPEC) { in main()
212 tnl.family = family; in main()
213 } else if (tnl.family != family) { in main()
221 (struct ether_addr *)tnl.dmac)) { in main()
290 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl, in main()
/Linux-v5.10/net/tipc/
Dlink.h89 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl,
91 void tipc_link_create_dummy_tnl_msg(struct tipc_link *tnl,
93 void tipc_link_failover_prepare(struct tipc_link *l, struct tipc_link *tnl,
Dlink.c1924 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, in tipc_link_tnl_prepare() argument
1927 struct sk_buff_head *fdefq = &tnl->failover_deferdq; in tipc_link_tnl_prepare()
1937 if (!tnl) in tipc_link_tnl_prepare()
1946 if (mtyp == SYNCH_MSG && (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
1962 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
1990 tnl: in tipc_link_tnl_prepare()
2006 if (pktlen > tnl->mtu - INT_H_SIZE) { in tipc_link_tnl_prepare()
2008 (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
2009 rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, in tipc_link_tnl_prepare()
2042 goto tnl; in tipc_link_tnl_prepare()
[all …]
Dnode.c919 struct tipc_link *tnl, in tipc_node_link_failover() argument
923 if (!tipc_link_is_up(tnl)) in tipc_node_link_failover()
930 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_link_failover()
933 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in tipc_node_link_failover()
934 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
952 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
1005 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
1006 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
1008 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in __tipc_node_link_down()
1009 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c468 memset(&hw->tnl, 0, sizeof(hw->tnl)); in ice_init_pkg_hints()
477 while (label_name && hw->tnl.count < ICE_TUNNEL_MAX_ENTRIES) { in ice_init_pkg_hints()
490 hw->tnl.tbl[hw->tnl.count].type = tnls[i].type; in ice_init_pkg_hints()
491 hw->tnl.tbl[hw->tnl.count].valid = false; in ice_init_pkg_hints()
492 hw->tnl.tbl[hw->tnl.count].boost_addr = val; in ice_init_pkg_hints()
493 hw->tnl.tbl[hw->tnl.count].port = 0; in ice_init_pkg_hints()
494 hw->tnl.count++; in ice_init_pkg_hints()
503 for (i = 0; i < hw->tnl.count; i++) { in ice_init_pkg_hints()
504 ice_find_boost_entry(ice_seg, hw->tnl.tbl[i].boost_addr, in ice_init_pkg_hints()
505 &hw->tnl.tbl[i].boost_entry); in ice_init_pkg_hints()
[all …]
Dice_type.h677 struct ice_tunnel_table tnl; member
Dice_main.c4083 if (pf->hw.tnl.valid_count[TNL_VXLAN]) { in ice_probe()
4085 pf->hw.tnl.valid_count[TNL_VXLAN]; in ice_probe()
4090 if (pf->hw.tnl.valid_count[TNL_GENEVE]) { in ice_probe()
4092 pf->hw.tnl.valid_count[TNL_GENEVE]; in ice_probe()
/Linux-v5.10/net/ipv6/
Dip6_tunnel.c1750 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1752 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1759 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()