Home
last modified time | relevance | path

Searched refs:tpi (Results 1 – 16 of 16) sorted by relevance

/linux/net/ipv4/
H A Dgre_demux.c62 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, in gre_parse_header() argument
76 gre_flags_to_tnl_flags(tpi->flags, greh->flags); in gre_parse_header()
77 hdr_len = gre_calc_hlen(tpi->flags); in gre_parse_header()
83 tpi->proto = greh->protocol; in gre_parse_header()
99 tpi->key = *options; in gre_parse_header()
102 tpi->key = 0; in gre_parse_header()
105 tpi->seq = *options; in gre_parse_header()
108 tpi->seq = 0; in gre_parse_header()
114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { in gre_parse_header()
121 tpi->proto = proto; in gre_parse_header()
[all …]
H A Dip_gre.c123 const struct tnl_ptk_info *tpi) in ipgre_err() argument
147 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_err()
149 else if (tpi->proto == htons(ETH_P_ERSPAN) || in ipgre_err()
150 tpi->proto == htons(ETH_P_ERSPAN2)) in ipgre_err()
156 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, in ipgre_err()
157 iph->daddr, iph->saddr, tpi->key); in ipgre_err()
193 if (tpi->proto == htons(ETH_P_IPV6) && in ipgre_err()
194 !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, in ipgre_err()
234 struct tnl_ptk_info tpi; in gre_err() local
236 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IP), in gre_err()
[all …]
H A Dipip.c230 const struct tnl_ptk_info *tpi; in ipip_tunnel_rcv() local
240 tpi = &mplsip_tpi; in ipip_tunnel_rcv()
243 tpi = &ipip_tpi; in ipip_tunnel_rcv()
244 if (iptunnel_pull_header(skb, 0, tpi->proto, false)) in ipip_tunnel_rcv()
256 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
H A Dip_tunnel.c377 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv() argument
391 test_bit(IP_TUNNEL_CSUM_BIT, tpi->flags)) { in ip_tunnel_rcv()
398 if (!test_bit(IP_TUNNEL_SEQ_BIT, tpi->flags) || in ip_tunnel_rcv()
399 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
404 tunnel->i_seqno = ntohl(tpi->seq) + 1; in ip_tunnel_rcv()
/linux/net/ipv6/
H A Dip6_gre.c423 struct tnl_ptk_info tpi; in ip6gre_err() local
426 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6), in ip6gre_err()
432 tpi.key, tpi.proto); in ip6gre_err()
488 static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi) in ip6gre_rcv() argument
495 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv()
496 tpi->proto); in ip6gre_rcv()
503 ip_tunnel_flags_copy(flags, tpi->flags); in ip6gre_rcv()
504 tun_id = key32_to_tunnel_id(tpi->key); in ip6gre_rcv()
510 ip6_tnl_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ip6gre_rcv()
512 ip6_tnl_rcv(tunnel, skb, tpi, NULL, log_ecn_error); in ip6gre_rcv()
[all …]
H A Dip6_tunnel.c794 const struct tnl_ptk_info *tpi, in __ip6_tnl_rcv() argument
805 test_bit(IP_TUNNEL_CSUM_BIT, tpi->flags)) { in __ip6_tnl_rcv()
812 if (!test_bit(IP_TUNNEL_SEQ_BIT, tpi->flags) || in __ip6_tnl_rcv()
814 (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in __ip6_tnl_rcv()
819 tunnel->i_seqno = ntohl(tpi->seq) + 1; in __ip6_tnl_rcv()
822 skb->protocol = tpi->proto; in __ip6_tnl_rcv()
891 const struct tnl_ptk_info *tpi, in ip6_tnl_rcv() argument
900 if (tpi->proto == htons(ETH_P_IP)) in ip6_tnl_rcv()
903 return __ip6_tnl_rcv(t, skb, tpi, tun_dst, dscp_ecn_decapsulate, in ip6_tnl_rcv()
924 const struct tnl_ptk_info *tpi, in ipxip6_rcv() argument
[all …]
H A Dsit.c763 const struct tnl_ptk_info *tpi; in sit_tunnel_rcv() local
773 tpi = &mplsip_tpi; in sit_tunnel_rcv()
776 tpi = &ipip_tpi; in sit_tunnel_rcv()
777 if (iptunnel_pull_header(skb, 0, tpi->proto, false)) in sit_tunnel_rcv()
781 return ip_tunnel_rcv(tunnel, skb, tpi, NULL, log_ecn_error); in sit_tunnel_rcv()
/linux/drivers/s390/cio/
H A Dioasm.h21 int tpi(struct tpi_info *addr);
H A Dioasm.c157 int tpi(struct tpi_info *addr) in tpi() function
/linux/include/net/
H A Dgre.h37 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
H A Dip6_tunnel.h141 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
H A Dip_tunnels.h405 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/linux/drivers/infiniband/ulp/srp/
H A Dib_srp.c805 char *ipi, *tpi; in srp_send_req() local
853 tpi = req->rdma_req.target_port_id; in srp_send_req()
872 tpi = req->ib_req.target_port_id; in srp_send_req()
887 memcpy(tpi, &target->ioc_guid, 8); in srp_send_req()
888 memcpy(tpi + 8, &target->id_ext, 8); in srp_send_req()
892 memcpy(tpi, &target->id_ext, 8); in srp_send_req()
893 memcpy(tpi + 8, &target->ioc_guid, 8); in srp_send_req()
/linux/arch/arm/boot/dts/arm/
H A Dvexpress-v2m-rs1.dtsi363 compatible = "sil,sii9022-tpi", "sil,sii9022";
H A Dvexpress-v2m.dtsi283 compatible = "sil,sii9022-tpi", "sil,sii9022";
/linux/arch/s390/tools/
H A Dopcodes.txt233 b236 tpi S_RD