/linux-master/samples/bpf/ |
H A D | xdp_tx_iptunnel_kern.c | 69 const struct iptnl_info *tnl, 73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 81 struct iptnl_info *tnl; local 105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); 107 if (!tnl || tnl->family != AF_INET) 127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP)); 136 iph->daddr = tnl->daddr.v4; 137 iph->saddr = tnl->saddr.v4; 156 struct iptnl_info *tnl; local 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
H A D | xdp_tx_iptunnel_user.c | 160 struct iptnl_info tnl = {}; local 168 tnl.family = AF_UNSPEC; 200 v6 = tnl.saddr.v6; 202 v6 = tnl.daddr.v6; 207 if (tnl.family == AF_UNSPEC) { 208 tnl.family = family; 209 } else if (tnl.family != family) { 217 (struct ether_addr *)tnl.dmac)) { 286 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl,
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp.c | 71 const struct iptnl_info *tnl, 75 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 83 struct iptnl_info *tnl; local 107 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); 109 if (!tnl || tnl->family != AF_INET) 127 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 136 iph->daddr = tnl->daddr.v4; 137 iph->saddr = tnl->saddr.v4; 156 struct iptnl_info *tnl; local 69 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
H A D | test_xdp_loop.c | 67 const struct iptnl_info *tnl, 71 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 79 struct iptnl_info *tnl; local 103 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); 105 if (!tnl || tnl->family != AF_INET) 123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 132 iph->daddr = tnl->daddr.v4; 133 iph->saddr = tnl->saddr.v4; 152 struct iptnl_info *tnl; local 65 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
H A D | test_xdp_dynptr.c | 69 const struct iptnl_info *tnl, 73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 83 struct iptnl_info *tnl; local 116 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); 118 if (!tnl || tnl->family != AF_INET) 132 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP)); 144 iph->daddr = tnl->daddr.v4; 145 iph->saddr = tnl->saddr.v4; 165 struct iptnl_info *tnl; local 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument [all...] |
/linux-master/net/tipc/ |
H A D | link.h | 89 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 D | link.c | 1958 void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl, argument 1961 struct sk_buff_head *fdefq = &tnl->failover_deferdq; 1971 if (!tnl) 1980 if (mtyp == SYNCH_MSG && (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { 1996 tipc_link_xmit(tnl, &tnlq, xmitq); 2024 tnl: 2040 if (pktlen > tnl->mtu - INT_H_SIZE) { 2042 (tnl->peer_caps & TIPC_TUNNEL_ENHANCED)) { 2043 rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, 2076 goto tnl; 2112 tipc_link_failover_prepare(struct tipc_link *l, struct tipc_link *tnl, struct sk_buff_head *xmitq) argument [all...] |
H A D | node.c | 955 * @tnl: tunnel link 956 * @xmitq: queue for messages to be xmited on tnl link later 959 struct tipc_link *tnl, 963 if (!tipc_link_is_up(tnl)) 970 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EVT); 973 n->sync_point = tipc_link_rcv_nxt(tnl) + (U16_MAX / 2 - 1); 974 tipc_link_failover_prepare(l, tnl, xmitq); 996 struct tipc_link *l, *_l, *tnl; local 1049 tnl = n->links[*bearer_id].link; 1050 tipc_link_fsm_evt(tnl, LINK_SYNCH_END_EV 958 tipc_node_link_failover(struct tipc_node *n, struct tipc_link *l, struct tipc_link *tnl, struct sk_buff_head *xmitq) argument 1940 struct tipc_link *l, *tnl, *pl = NULL; local [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_ddp.c | 508 if (hw->tnl.count < ICE_TUNNEL_MAX_ENTRIES) { 523 hw->tnl.tbl[hw->tnl.count].type = tnls[i].type; 524 hw->tnl.tbl[hw->tnl.count].valid = false; 525 hw->tnl.tbl[hw->tnl.count].boost_addr = val; 526 hw->tnl.tbl[hw->tnl.count].port = 0; 527 hw->tnl [all...] |
H A D | ice_flex_pipe.c | 310 for (i = 0; i < hw->tnl.count && i < ICE_TUNNEL_MAX_ENTRIES; i++) 311 if (hw->tnl.tbl[i].valid && hw->tnl.tbl[i].port && 312 (type == TNL_LAST || type == hw->tnl.tbl[i].type)) { 313 *port = hw->tnl.tbl[i].port; 422 for (i = 0; i < hw->tnl.count && i < ICE_TUNNEL_MAX_ENTRIES; i++) 423 if (hw->tnl.tbl[i].valid && 424 hw->tnl.tbl[i].type == type && 476 memcpy(sect_rx->tcam, hw->tnl.tbl[index].boost_entry, 492 hw->tnl [all...] |
H A D | ice_type.h | 942 struct ice_tunnel_table tnl; member in struct:ice_hw
|
H A D | ice_main.c | 4653 if (pf->hw.tnl.valid_count[TNL_VXLAN]) { 4655 pf->hw.tnl.valid_count[TNL_VXLAN]; 4659 if (pf->hw.tnl.valid_count[TNL_GENEVE]) { 4661 pf->hw.tnl.valid_count[TNL_GENEVE];
|
/linux-master/net/ipv6/ |
H A D | ip6_tunnel.c | 1733 struct ip6_tnl *tnl = netdev_priv(dev); local 1735 if (tnl->parms.proto == IPPROTO_IPV6) { 1742 if (tnl->parms.proto == IPPROTO_IPV6 || tnl->parms.proto == 0) {
|