• Home
  • Raw
  • Download

Lines Matching refs:tpi

120 		     const struct tnl_ptk_info *tpi)  in ipgre_err()  argument
144 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_err()
146 else if (tpi->proto == htons(ETH_P_ERSPAN) || in ipgre_err()
147 tpi->proto == htons(ETH_P_ERSPAN2)) in ipgre_err()
153 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, in ipgre_err()
154 iph->daddr, iph->saddr, tpi->key); in ipgre_err()
190 if (tpi->proto == htons(ETH_P_IPV6) && in ipgre_err()
191 !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, in ipgre_err()
231 struct tnl_ptk_info tpi; in gre_err() local
233 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IP), in gre_err()
248 ipgre_err(skb, info, &tpi); in gre_err()
251 static int erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, in erspan_rcv() argument
271 tpi->flags | TUNNEL_KEY, in erspan_rcv()
272 iph->saddr, iph->daddr, tpi->key); in erspan_rcv()
292 tpi->flags |= TUNNEL_KEY; in erspan_rcv()
293 flags = tpi->flags; in erspan_rcv()
294 tun_id = key32_to_tunnel_id(tpi->key); in erspan_rcv()
321 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in erspan_rcv()
331 static int __ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, in __ipgre_rcv() argument
339 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, in __ipgre_rcv()
340 iph->saddr, iph->daddr, tpi->key); in __ipgre_rcv()
343 if (__iptunnel_pull_header(skb, hdr_len, tpi->proto, in __ipgre_rcv()
355 flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY); in __ipgre_rcv()
356 tun_id = key32_to_tunnel_id(tpi->key); in __ipgre_rcv()
362 ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in __ipgre_rcv()
372 static int ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, in ipgre_rcv() argument
379 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_rcv()
384 res = __ipgre_rcv(skb, tpi, itn, hdr_len, false); in ipgre_rcv()
385 if (res == PACKET_NEXT && tpi->proto == htons(ETH_P_TEB)) { in ipgre_rcv()
390 res = __ipgre_rcv(skb, tpi, itn, hdr_len, true); in ipgre_rcv()
397 struct tnl_ptk_info tpi; in gre_rcv() local
409 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IP), 0); in gre_rcv()
413 if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) || in gre_rcv()
414 tpi.proto == htons(ETH_P_ERSPAN2))) { in gre_rcv()
415 if (erspan_rcv(skb, &tpi, hdr_len) == PACKET_RCVD) in gre_rcv()
420 if (ipgre_rcv(skb, &tpi, hdr_len) == PACKET_RCVD) in gre_rcv()