Home
last modified time | relevance | path

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

/linux-6.15/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c69 const struct iptnl_info *tnl, in set_ethhdr() argument
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()
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()
179 if (!tnl || tnl->family != AF_INET6) in handle_ipv6()
207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
[all …]
H A Dxdp_tx_iptunnel_user.c160 struct iptnl_info tnl = {}; in main() local
168 tnl.family = AF_UNSPEC; in main()
200 v6 = tnl.saddr.v6; in main()
202 v6 = tnl.daddr.v6; in main()
207 if (tnl.family == AF_UNSPEC) { in main()
208 tnl.family = family; in main()
209 } else if (tnl.family != family) { in main()
217 (struct ether_addr *)tnl.dmac)) { in main()
286 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl, in main()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_xdp.c71 const struct iptnl_info *tnl, in set_ethhdr() argument
83 struct iptnl_info *tnl; in handle_ipv4() local
107 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
109 if (!tnl || tnl->family != AF_INET) 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()
179 if (!tnl || tnl->family != AF_INET6) in handle_ipv6()
204 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
[all …]
H A Dtest_xdp_loop.c67 const struct iptnl_info *tnl, in set_ethhdr() argument
79 struct iptnl_info *tnl; in handle_ipv4() local
103 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
105 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
132 iph->daddr = tnl->daddr.v4; in handle_ipv4()
133 iph->saddr = tnl->saddr.v4; in handle_ipv4()
152 struct iptnl_info *tnl; in handle_ipv6() local
173 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
175 if (!tnl || tnl->family != AF_INET6) in handle_ipv6()
200 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
[all …]
H A Dtest_xdp_dynptr.c69 const struct iptnl_info *tnl, in set_ethhdr() argument
83 struct iptnl_info *tnl; in handle_ipv4() local
116 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
118 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
144 iph->daddr = tnl->daddr.v4; in handle_ipv4()
145 iph->saddr = tnl->saddr.v4; in handle_ipv4()
165 struct iptnl_info *tnl; in handle_ipv6() local
195 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
197 if (!tnl || tnl->family != AF_INET6) in handle_ipv6()
222 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
[all …]
/linux-6.15/drivers/net/ethernet/intel/ice/
H A Dice_ddp.c524 hw->tnl.tbl[hw->tnl.count].type = tnls[i].type; in ice_add_tunnel_hint()
525 hw->tnl.tbl[hw->tnl.count].valid = false; in ice_add_tunnel_hint()
526 hw->tnl.tbl[hw->tnl.count].boost_addr = val; in ice_add_tunnel_hint()
527 hw->tnl.tbl[hw->tnl.count].port = 0; in ice_add_tunnel_hint()
528 hw->tnl.count++; in ice_add_tunnel_hint()
2105 memset(&hw->tnl, 0, sizeof(hw->tnl)); in ice_init_pkg_hints()
2131 for (i = 0; i < hw->tnl.count; i++) { in ice_init_pkg_hints()
2133 &hw->tnl.tbl[i].boost_entry); in ice_init_pkg_hints()
2134 if (hw->tnl.tbl[i].boost_entry) { in ice_init_pkg_hints()
2135 hw->tnl.tbl[i].valid = true; in ice_init_pkg_hints()
[all …]
H A Dice_flex_pipe.c311 if (hw->tnl.tbl[i].valid && hw->tnl.tbl[i].port && in ice_get_open_tunnel_port()
313 *port = hw->tnl.tbl[i].port; in ice_get_open_tunnel_port()
423 if (hw->tnl.tbl[i].valid && in ice_tunnel_idx_to_entry()
424 hw->tnl.tbl[i].type == type && in ice_tunnel_idx_to_entry()
476 memcpy(sect_rx->tcam, hw->tnl.tbl[index].boost_entry, in ice_create_tunnel()
492 hw->tnl.tbl[index].port = port; in ice_create_tunnel()
524 if (WARN_ON(!hw->tnl.tbl[index].valid || in ice_destroy_tunnel()
525 hw->tnl.tbl[index].type != type || in ice_destroy_tunnel()
526 hw->tnl.tbl[index].port != port)) { in ice_destroy_tunnel()
556 memcpy(sect_rx->tcam, hw->tnl.tbl[index].boost_entry, in ice_destroy_tunnel()
[all …]
H A Dice_type.h1000 struct ice_tunnel_table tnl; member
H A Dice_main.c4750 if (pf->hw.tnl.valid_count[TNL_VXLAN]) { in ice_init_dev()
4752 pf->hw.tnl.valid_count[TNL_VXLAN]; in ice_init_dev()
4756 if (pf->hw.tnl.valid_count[TNL_GENEVE]) { in ice_init_dev()
4758 pf->hw.tnl.valid_count[TNL_GENEVE]; in ice_init_dev()
/linux-6.15/net/tipc/
H A 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,
H A Dlink.c1964 if (!tnl) in tipc_link_tnl_prepare()
1989 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
2017 tnl: in tipc_link_tnl_prepare()
2033 if (pktlen > tnl->mtu - INT_H_SIZE) { in tipc_link_tnl_prepare()
2069 goto tnl; in tipc_link_tnl_prepare()
2078 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
2083 tnl->drop_point = l->rcv_nxt; in tipc_link_tnl_prepare()
2084 tnl->failover_reasm_skb = l->reasm_buf; in tipc_link_tnl_prepare()
2112 tipc_link_create_dummy_tnl_msg(tnl, xmitq); in tipc_link_failover_prepare()
2120 tnl->drop_point = 1; in tipc_link_failover_prepare()
[all …]
H A Dnode.c959 struct tipc_link *tnl, in tipc_node_link_failover() argument
963 if (!tipc_link_is_up(tnl)) in tipc_node_link_failover()
970 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_link_failover()
974 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
996 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
1049 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
1050 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
1940 struct tipc_link *l, *tnl, *pl = NULL; in tipc_node_check_state() local
2051 tnl = l; in tipc_node_check_state()
2053 tnl = pl; in tipc_node_check_state()
[all …]
/linux-6.15/tools/testing/selftests/net/openvswitch/
H A Dovs-dpctl.py2126 for tnl in TUNNEL_DEFAULTS:
2127 if ptype == tnl[0]:
2129 dport = tnl[1]
2143 if tnl[0] == "geneve":
2144 ipr.link("add", ifname=vport_ifname, kind=tnl[0],
2148 elif tnl[0] == "vxlan":
2149 ipr.link("add", ifname=vport_ifname, kind=tnl[0],
/linux-6.15/net/ipv6/
H A Dip6_tunnel.c1737 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1740 t_hlen = tnl->hlen + sizeof(struct ipv6hdr); in ip6_tnl_change_mtu()
1741 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1748 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()