Lines Matching refs:tpi
423 struct tnl_ptk_info tpi;
426 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6),
432 tpi.key, tpi.proto);
488 static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi)
495 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
496 tpi->proto);
503 flags = tpi->flags;
504 tun_id = key32_to_tunnel_id(tpi->key);
510 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error);
512 ip6_tnl_rcv(tunnel, skb, tpi, NULL, log_ecn_error);
522 struct tnl_ptk_info *tpi,
536 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
537 tpi->proto);
557 tpi->flags |= TUNNEL_KEY;
558 flags = tpi->flags;
559 tun_id = key32_to_tunnel_id(tpi->key);
583 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error);
586 ip6_tnl_rcv(tunnel, skb, tpi, NULL, log_ecn_error);
597 struct tnl_ptk_info tpi;
601 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IPV6), 0);
605 if (iptunnel_pull_header(skb, hdr_len, tpi.proto, false))
608 if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) ||
609 tpi.proto == htons(ETH_P_ERSPAN2))) {
610 if (ip6erspan_rcv(skb, &tpi, hdr_len) == PACKET_RCVD)
615 if (ip6gre_rcv(skb, &tpi) == PACKET_RCVD)