Home
last modified time | relevance | path

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

/Linux-v4.19/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.c145 struct iptnl_info tnl = {}; in main() local
152 tnl.family = AF_UNSPEC; in main()
182 v6 = tnl.saddr.v6; in main()
184 v6 = tnl.daddr.v6; in main()
189 if (tnl.family == AF_UNSPEC) { in main()
190 tnl.family = family; in main()
191 } else if (tnl.family != family) { in main()
199 (struct ether_addr *)tnl.dmac)) { in main()
251 if (bpf_map_update_elem(map_fd[1], &vip, &tnl, BPF_NOEXIST)) { in main()
/Linux-v4.19/tools/testing/selftests/bpf/
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 …]
/Linux-v4.19/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,
Dnode.c737 struct tipc_link *l, *_l, *tnl; in __tipc_node_link_down() local
789 tnl = n->links[*bearer_id].link; in __tipc_node_link_down()
790 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in __tipc_node_link_down()
792 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); in __tipc_node_link_down()
793 tipc_link_tnl_prepare(l, tnl, FAILOVER_MSG, xmitq); in __tipc_node_link_down()
1567 struct tipc_link *l, *tnl, *pl = NULL; in tipc_node_check_state() local
1664 tnl = l; in tipc_node_check_state()
1666 tnl = pl; in tipc_node_check_state()
1672 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); in tipc_node_check_state()
Dlink.c1436 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, in tipc_link_tnl_prepare() argument
1445 if (!tnl) in tipc_link_tnl_prepare()
1469 tnl: in tipc_link_tnl_prepare()
1488 goto tnl; in tipc_link_tnl_prepare()
1491 tipc_link_xmit(tnl, &tnlq, xmitq); in tipc_link_tnl_prepare()
1494 tnl->drop_point = l->rcv_nxt; in tipc_link_tnl_prepare()
1495 tnl->failover_reasm_skb = l->reasm_buf; in tipc_link_tnl_prepare()
/Linux-v4.19/drivers/net/ethernet/sfc/
Def10.c6438 struct efx_udp_tunnel tnl) in efx_ef10_udp_tnl_add_port() argument
6450 efx_get_udp_tunnel_type_name(tnl.type, typebuf, sizeof(typebuf)); in efx_ef10_udp_tnl_add_port()
6452 typebuf, ntohs(tnl.port)); in efx_ef10_udp_tnl_add_port()
6460 match = __efx_ef10_udp_tnl_lookup_port(efx, tnl.port); in efx_ef10_udp_tnl_add_port()
6462 if (match->type == tnl.type) { in efx_ef10_udp_tnl_add_port()
6474 ntohs(tnl.port), typebuf); in efx_ef10_udp_tnl_add_port()
6481 nic_data->udp_tunnels[i] = tnl; in efx_ef10_udp_tnl_add_port()
6489 typebuf, ntohs(tnl.port)); in efx_ef10_udp_tnl_add_port()
6521 struct efx_udp_tunnel tnl) in efx_ef10_udp_tnl_del_port() argument
6532 efx_get_udp_tunnel_type_name(tnl.type, typebuf, sizeof(typebuf)); in efx_ef10_udp_tnl_del_port()
[all …]
Defx.c2435 struct efx_udp_tunnel tnl; in efx_udp_tunnel_add() local
2442 tnl.type = (u16)efx_tunnel_type; in efx_udp_tunnel_add()
2443 tnl.port = ti->port; in efx_udp_tunnel_add()
2446 (void)efx->type->udp_tnl_add_port(efx, tnl); in efx_udp_tunnel_add()
2452 struct efx_udp_tunnel tnl; in efx_udp_tunnel_del() local
2459 tnl.type = (u16)efx_tunnel_type; in efx_udp_tunnel_del()
2460 tnl.port = ti->port; in efx_udp_tunnel_del()
2463 (void)efx->type->udp_tnl_del_port(efx, tnl); in efx_udp_tunnel_del()
Dnet_driver.h1416 int (*udp_tnl_add_port)(struct efx_nic *efx, struct efx_udp_tunnel tnl);
1418 int (*udp_tnl_del_port)(struct efx_nic *efx, struct efx_udp_tunnel tnl);
/Linux-v4.19/net/ipv6/
Dip6_tunnel.c1701 struct ip6_tnl *tnl = netdev_priv(dev); in ip6_tnl_change_mtu() local
1703 if (tnl->parms.proto == IPPROTO_IPV6) { in ip6_tnl_change_mtu()
1710 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) { in ip6_tnl_change_mtu()