Home
last modified time | relevance | path

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

/Linux-v5.15/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.c164 struct iptnl_info tnl = {}; in main() local
171 tnl.family = AF_UNSPEC; in main()
203 v6 = tnl.saddr.v6; in main()
205 v6 = tnl.daddr.v6; in main()
210 if (tnl.family == AF_UNSPEC) { in main()
211 tnl.family = family; in main()
212 } else if (tnl.family != family) { in main()
220 (struct ether_addr *)tnl.dmac)) { in main()
284 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl, in main()
/Linux-v5.15/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.15/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.c1969 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, in tipc_link_tnl_prepare() argument
1972 struct sk_buff_head *fdefq = &tnl->failover_deferdq; in tipc_link_tnl_prepare()
1982 if (!tnl) in tipc_link_tnl_prepare()
1991 if (mtyp == SYNCH_MSG && (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
2007 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
2035 tnl: in tipc_link_tnl_prepare()
2051 if (pktlen > tnl->mtu - INT_H_SIZE) { in tipc_link_tnl_prepare()
2053 (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
2054 rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, in tipc_link_tnl_prepare()
2087 goto tnl; in tipc_link_tnl_prepare()
[all …]
Dnode.c941 struct tipc_link *tnl, in tipc_node_link_failover() argument
945 if (!tipc_link_is_up(tnl)) in tipc_node_link_failover()
952 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_link_failover()
955 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in tipc_node_link_failover()
956 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
978 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
1031 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
1032 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
1034 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in __tipc_node_link_down()
1035 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c470 memset(&hw->tnl, 0, sizeof(hw->tnl)); in ice_init_pkg_hints()
479 while (label_name && hw->tnl.count < ICE_TUNNEL_MAX_ENTRIES) { in ice_init_pkg_hints()
492 hw->tnl.tbl[hw->tnl.count].type = tnls[i].type; in ice_init_pkg_hints()
493 hw->tnl.tbl[hw->tnl.count].valid = false; in ice_init_pkg_hints()
494 hw->tnl.tbl[hw->tnl.count].boost_addr = val; in ice_init_pkg_hints()
495 hw->tnl.tbl[hw->tnl.count].port = 0; in ice_init_pkg_hints()
496 hw->tnl.count++; in ice_init_pkg_hints()
505 for (i = 0; i < hw->tnl.count; i++) { in ice_init_pkg_hints()
506 ice_find_boost_entry(ice_seg, hw->tnl.tbl[i].boost_addr, in ice_init_pkg_hints()
507 &hw->tnl.tbl[i].boost_entry); in ice_init_pkg_hints()
[all …]
Dice_type.h879 struct ice_tunnel_table tnl; member
Dice_main.c4311 if (pf->hw.tnl.valid_count[TNL_VXLAN]) { in ice_probe()
4313 pf->hw.tnl.valid_count[TNL_VXLAN]; in ice_probe()
4318 if (pf->hw.tnl.valid_count[TNL_GENEVE]) { in ice_probe()
4320 pf->hw.tnl.valid_count[TNL_GENEVE]; in ice_probe()
/Linux-v5.15/net/ipv6/
Dip6_tunnel.c1720 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1722 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1729 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()