Lines Matching refs:tpi
428 struct tnl_ptk_info tpi;
431 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6),
437 tpi.key, tpi.proto);
493 static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi)
500 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
501 tpi->proto);
508 flags = tpi->flags;
509 tun_id = key32_to_tunnel_id(tpi->key);
515 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error);
517 ip6_tnl_rcv(tunnel, skb, tpi, NULL, log_ecn_error);
527 struct tnl_ptk_info *tpi,
541 &ipv6h->saddr, &ipv6h->daddr, tpi->key,
542 tpi->proto);
562 tpi->flags |= TUNNEL_KEY;
563 flags = tpi->flags;
564 tun_id = key32_to_tunnel_id(tpi->key);
588 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error);
591 ip6_tnl_rcv(tunnel, skb, tpi, NULL, log_ecn_error);
602 struct tnl_ptk_info tpi;
606 hdr_len = gre_parse_header(skb, &tpi, &csum_err, htons(ETH_P_IPV6), 0);
610 if (iptunnel_pull_header(skb, hdr_len, tpi.proto, false))
613 if (unlikely(tpi.proto == htons(ETH_P_ERSPAN) ||
614 tpi.proto == htons(ETH_P_ERSPAN2))) {
615 if (ip6erspan_rcv(skb, &tpi, hdr_len) == PACKET_RCVD)
620 if (ip6gre_rcv(skb, &tpi) == PACKET_RCVD)