Home
last modified time | relevance | path

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

/Linux-v5.4/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.4/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()
287 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl, in main()
/Linux-v5.4/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.c1714 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, in tipc_link_tnl_prepare() argument
1717 struct sk_buff_head *fdefq = &tnl->failover_deferdq; in tipc_link_tnl_prepare()
1727 if (!tnl) in tipc_link_tnl_prepare()
1751 if (mtyp == SYNCH_MSG && (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
1767 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
1781 tnl: in tipc_link_tnl_prepare()
1797 if (pktlen > tnl->mtu - INT_H_SIZE) { in tipc_link_tnl_prepare()
1799 (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { in tipc_link_tnl_prepare()
1800 rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, in tipc_link_tnl_prepare()
1833 goto tnl; in tipc_link_tnl_prepare()
[all …]
Dnode.c779 struct tipc_link *tnl, in tipc_node_link_failover() argument
783 if (!tipc_link_is_up(tnl)) in tipc_node_link_failover()
790 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_link_failover()
793 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in tipc_node_link_failover()
794 tipc_link_failover_prepare(l, tnl, xmitq); in tipc_node_link_failover()
812 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
865 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
866 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
868 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in __tipc_node_link_down()
869 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
[all …]
/Linux-v5.4/drivers/net/ethernet/sfc/
Def10.c6465 struct efx_udp_tunnel tnl) in efx_ef10_udp_tnl_add_port() argument
6477 efx_get_udp_tunnel_type_name(tnl.type, typebuf, sizeof(typebuf)); in efx_ef10_udp_tnl_add_port()
6479 typebuf, ntohs(tnl.port)); in efx_ef10_udp_tnl_add_port()
6487 match = __efx_ef10_udp_tnl_lookup_port(efx, tnl.port); in efx_ef10_udp_tnl_add_port()
6489 if (match->type == tnl.type) { in efx_ef10_udp_tnl_add_port()
6501 ntohs(tnl.port), typebuf); in efx_ef10_udp_tnl_add_port()
6508 nic_data->udp_tunnels[i] = tnl; in efx_ef10_udp_tnl_add_port()
6516 typebuf, ntohs(tnl.port)); in efx_ef10_udp_tnl_add_port()
6548 struct efx_udp_tunnel tnl) in efx_ef10_udp_tnl_del_port() argument
6559 efx_get_udp_tunnel_type_name(tnl.type, typebuf, sizeof(typebuf)); in efx_ef10_udp_tnl_del_port()
[all …]
Defx.c2432 struct efx_udp_tunnel tnl; in efx_udp_tunnel_add() local
2439 tnl.type = (u16)efx_tunnel_type; in efx_udp_tunnel_add()
2440 tnl.port = ti->port; in efx_udp_tunnel_add()
2443 (void)efx->type->udp_tnl_add_port(efx, tnl); in efx_udp_tunnel_add()
2449 struct efx_udp_tunnel tnl; in efx_udp_tunnel_del() local
2456 tnl.type = (u16)efx_tunnel_type; in efx_udp_tunnel_del()
2457 tnl.port = ti->port; in efx_udp_tunnel_del()
2460 (void)efx->type->udp_tnl_del_port(efx, tnl); in efx_udp_tunnel_del()
Dnet_driver.h1413 int (*udp_tnl_add_port)(struct efx_nic *efx, struct efx_udp_tunnel tnl);
1415 int (*udp_tnl_del_port)(struct efx_nic *efx, struct efx_udp_tunnel tnl);
/Linux-v5.4/net/ipv6/
Dip6_tunnel.c1691 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1693 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1700 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()