Home
last modified time | relevance | path

Searched refs:tpi (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/net/ipv4/
H A Dgre_demux.c59 /* Fills in tpi and returns header length to be pulled.
62 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, in gre_parse_header() argument
76 tpi->flags = gre_flags_to_tnl_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 in gre_parse_header()
[all...]
H A Dip_gre.c120 const struct tnl_ptk_info *tpi) in ipgre_err()
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, NUL in gre_err()
119 ipgre_err(struct sk_buff *skb, u32 info, const struct tnl_ptk_info *tpi) ipgre_err() argument
260 erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, int gre_hdr_len) erspan_rcv() argument
349 __ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) __ipgre_rcv() argument
394 ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, int hdr_len) ipgre_rcv() argument
419 struct tnl_ptk_info tpi; gre_rcv() local
[all...]
H A Dipip.c224 const struct tnl_ptk_info *tpi; in ipip_tunnel_rcv() local
234 tpi = &mplsip_tpi; in ipip_tunnel_rcv()
237 tpi = &ipip_tpi; in ipip_tunnel_rcv()
238 if (iptunnel_pull_header(skb, 0, tpi->proto, false)) in ipip_tunnel_rcv()
245 return ip_tunnel_rcv(tunnel, skb, tpi, tun_dst, log_ecn_error); in ipip_tunnel_rcv()
H A Dip_tunnel.c363 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, in ip_tunnel_rcv()
376 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
377 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
384 if (!(tpi->flags&TUNNEL_SEQ) || in ip_tunnel_rcv()
385 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in ip_tunnel_rcv()
390 tunnel->i_seqno = ntohl(tpi->seq) + 1; in ip_tunnel_rcv()
362 ip_tunnel_rcv(struct ip_tunnel *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_error) ip_tunnel_rcv() argument
/kernel/linux/linux-6.6/net/ipv4/
H A Dgre_demux.c59 /* Fills in tpi and returns header length to be pulled.
62 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, in gre_parse_header() argument
76 tpi->flags = gre_flags_to_tnl_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 in gre_parse_header()
[all...]
H A Dip_gre.c122 const struct tnl_ptk_info *tpi) in ipgre_err()
146 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_err()
148 else if (tpi->proto == htons(ETH_P_ERSPAN) || in ipgre_err()
149 tpi->proto == htons(ETH_P_ERSPAN2)) in ipgre_err()
155 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, in ipgre_err()
156 iph->daddr, iph->saddr, tpi->key); in ipgre_err()
192 if (tpi->proto == htons(ETH_P_IPV6) && in ipgre_err()
193 !ip6_err_gen_icmpv6_unreach(skb, iph->ihl * 4 + tpi->hdr_len, in ipgre_err()
233 struct tnl_ptk_info tpi; in gre_err() local
235 if (gre_parse_header(skb, &tpi, NUL in gre_err()
121 ipgre_err(struct sk_buff *skb, u32 info, const struct tnl_ptk_info *tpi) ipgre_err() argument
262 erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, int gre_hdr_len) erspan_rcv() argument
351 __ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct ip_tunnel_net *itn, int hdr_len, bool raw_proto) __ipgre_rcv() argument
399 ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi, int hdr_len) ipgre_rcv() argument
424 struct tnl_ptk_info tpi; gre_rcv() local
[all...]
H A Dipip.c224 const struct tnl_ptk_info *tpi; in ipip_tunnel_rcv() local
234 tpi = &mplsip_tpi; in ipip_tunnel_rcv()
237 tpi = &ipip_tpi; in ipip_tunnel_rcv()
238 if (iptunnel_pull_header(skb, 0, tpi->proto, false)) in ipip_tunnel_rcv()
248 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()
390 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
391 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
398 if (!(tpi->flags&TUNNEL_SEQ) || 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()
376 ip_tunnel_rcv(struct ip_tunnel *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_error) ip_tunnel_rcv() argument
/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_gre.c428 struct tnl_ptk_info tpi; in ip6gre_err() local
431 if (gre_parse_header(skb, &tpi, NULL, htons(ETH_P_IPV6), in ip6gre_err()
437 tpi.key, tpi.proto); in ip6gre_err()
493 static int ip6gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi) in ip6gre_rcv() argument
500 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv()
501 tpi->proto); in ip6gre_rcv()
508 flags = tpi->flags; in ip6gre_rcv()
509 tun_id = key32_to_tunnel_id(tpi->key); in ip6gre_rcv()
515 ip6_tnl_rcv(tunnel, skb, tpi, tun_ds in ip6gre_rcv()
526 ip6erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, int gre_hdr_len) ip6erspan_rcv() argument
602 struct tnl_ptk_info tpi; gre_rcv() local
[all...]
H A Dip6_tunnel.c825 const struct tnl_ptk_info *tpi, in __ip6_tnl_rcv()
835 if ((!(tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
837 ((tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
845 if (!(tpi->flags & TUNNEL_SEQ) || in __ip6_tnl_rcv()
847 (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in __ip6_tnl_rcv()
852 tunnel->i_seqno = ntohl(tpi->seq) + 1; in __ip6_tnl_rcv()
855 skb->protocol = tpi->proto; in __ip6_tnl_rcv()
923 const struct tnl_ptk_info *tpi, in ip6_tnl_rcv()
932 if (tpi->proto == htons(ETH_P_IP)) in ip6_tnl_rcv()
935 return __ip6_tnl_rcv(t, skb, tpi, tun_ds in ip6_tnl_rcv()
824 __ip6_tnl_rcv(struct ip6_tnl *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb), bool log_ecn_err) __ip6_tnl_rcv() argument
922 ip6_tnl_rcv(struct ip6_tnl *t, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_err) ip6_tnl_rcv() argument
955 ipxip6_rcv(struct sk_buff *skb, u8 ipproto, const struct tnl_ptk_info *tpi, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb)) ipxip6_rcv() argument
[all...]
/kernel/linux/linux-6.6/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 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_ds in ip6gre_rcv()
521 ip6erspan_rcv(struct sk_buff *skb, struct tnl_ptk_info *tpi, int gre_hdr_len) ip6erspan_rcv() argument
597 struct tnl_ptk_info tpi; gre_rcv() local
[all...]
H A Dip6_tunnel.c792 const struct tnl_ptk_info *tpi, in __ip6_tnl_rcv()
802 if ((!(tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
804 ((tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
812 if (!(tpi->flags & TUNNEL_SEQ) || 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()
900 if (tpi->proto == htons(ETH_P_IP)) in ip6_tnl_rcv()
903 return __ip6_tnl_rcv(t, skb, tpi, tun_ds in ip6_tnl_rcv()
791 __ip6_tnl_rcv(struct ip6_tnl *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb), bool log_ecn_err) __ip6_tnl_rcv() argument
890 ip6_tnl_rcv(struct ip6_tnl *t, struct sk_buff *skb, const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst, bool log_ecn_err) ip6_tnl_rcv() argument
923 ipxip6_rcv(struct sk_buff *skb, u8 ipproto, const struct tnl_ptk_info *tpi, int (*dscp_ecn_decapsulate)(const struct ip6_tnl *t, const struct ipv6hdr *ipv6h, struct sk_buff *skb)) ipxip6_rcv() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/cio/
H A Dioasm.h21 int tpi(struct tpi_info *addr);
H A Dioasm.c150 int tpi(struct tpi_info *addr) in tpi() function
155 " tpi 0(%2)\n" in tpi()
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Dioasm.h21 int tpi(struct tpi_info *addr);
H A Dcio.h12 #include <asm/tpi.h>
H A Dioasm.c157 int tpi(struct tpi_info *addr) in tpi() function
162 " tpi %[addr]\n" in tpi()
H A Dqdio_thinint.c18 #include <asm/tpi.h>
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dairq.h15 #include <asm/tpi.h>
H A Dptrace.h12 #include <asm/tpi.h>
H A Dcio.h11 #include <asm/tpi.h>
/kernel/linux/linux-5.10/include/net/
H A Dgre.h37 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
H A Dip6_tunnel.h140 const struct tnl_ptk_info *tpi, struct metadata_dst *tun_dst,
/kernel/linux/linux-6.6/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,

Completed in 20 milliseconds

12