Home
last modified time | relevance | path

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

/linux-6.1.9/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.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.1.9/tools/testing/selftests/bpf/progs/
Dtest_xdp_loop.c66 const struct iptnl_info *tnl, in set_ethhdr() argument
70 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
78 struct iptnl_info *tnl; in handle_ipv4() local
102 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
104 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
122 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
131 iph->daddr = tnl->daddr.v4; in handle_ipv4()
132 iph->saddr = tnl->saddr.v4; in handle_ipv4()
151 struct iptnl_info *tnl; in handle_ipv6() local
172 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
Dtest_xdp.c70 const struct iptnl_info *tnl, in set_ethhdr() argument
74 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
82 struct iptnl_info *tnl; in handle_ipv4() local
106 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
108 if (!tnl || tnl->family != AF_INET) in handle_ipv4()
126 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); in handle_ipv4()
135 iph->daddr = tnl->daddr.v4; in handle_ipv4()
136 iph->saddr = tnl->saddr.v4; in handle_ipv4()
155 struct iptnl_info *tnl; in handle_ipv6() local
176 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv6()
[all …]
/linux-6.1.9/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.c1973 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, in tipc_link_tnl_prepare() argument
1976 struct sk_buff_head *fdefq = &tnl->failover_deferdq; in tipc_link_tnl_prepare()
1986 if (!tnl) in tipc_link_tnl_prepare()
1995 if (mtyp == SYNCH_MSG && (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
2011 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
2039 tnl: in tipc_link_tnl_prepare()
2055 if (pktlen > tnl->mtu - INT_H_SIZE) { in tipc_link_tnl_prepare()
2057 (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
2058 rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, in tipc_link_tnl_prepare()
2091 goto tnl; in tipc_link_tnl_prepare()
[all …]
Dnode.c961 struct tipc_link *tnl, in tipc_node_link_failover() argument
965 if (!tipc_link_is_up(tnl)) in tipc_node_link_failover()
972 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_link_failover()
975 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in tipc_node_link_failover()
976 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
998 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
1051 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
1052 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
1054 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in __tipc_node_link_down()
1055 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c542 if (hw->tnl.count < ICE_TUNNEL_MAX_ENTRIES) { in ice_add_tunnel_hint()
557 hw->tnl.tbl[hw->tnl.count].type = tnls[i].type; in ice_add_tunnel_hint()
558 hw->tnl.tbl[hw->tnl.count].valid = false; in ice_add_tunnel_hint()
559 hw->tnl.tbl[hw->tnl.count].boost_addr = val; in ice_add_tunnel_hint()
560 hw->tnl.tbl[hw->tnl.count].port = 0; in ice_add_tunnel_hint()
561 hw->tnl.count++; in ice_add_tunnel_hint()
600 memset(&hw->tnl, 0, sizeof(hw->tnl)); in ice_init_pkg_hints()
626 for (i = 0; i < hw->tnl.count; i++) { in ice_init_pkg_hints()
627 ice_find_boost_entry(ice_seg, hw->tnl.tbl[i].boost_addr, in ice_init_pkg_hints()
628 &hw->tnl.tbl[i].boost_entry); in ice_init_pkg_hints()
[all …]
Dice_type.h923 struct ice_tunnel_table tnl; member
Dice_main.c4740 if (pf->hw.tnl.valid_count[TNL_VXLAN]) { in ice_probe()
4742 pf->hw.tnl.valid_count[TNL_VXLAN]; in ice_probe()
4747 if (pf->hw.tnl.valid_count[TNL_GENEVE]) { in ice_probe()
4749 pf->hw.tnl.valid_count[TNL_GENEVE]; in ice_probe()
/linux-6.1.9/net/ipv6/
Dip6_tunnel.c1721 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1723 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1730 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()