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

/linux-4.1.27/net/ipv4/
H A Dgre_demux.c64 void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, gre_build_header() argument
73 greh->flags = tnl_flags_to_gre_flags(tpi->flags); gre_build_header()
74 greh->protocol = tpi->proto; gre_build_header()
76 if (tpi->flags&(TUNNEL_KEY|TUNNEL_CSUM|TUNNEL_SEQ)) { gre_build_header()
79 if (tpi->flags&TUNNEL_SEQ) { gre_build_header()
80 *ptr = tpi->seq; gre_build_header()
83 if (tpi->flags&TUNNEL_KEY) { gre_build_header()
84 *ptr = tpi->key; gre_build_header()
87 if (tpi->flags&TUNNEL_CSUM && gre_build_header()
98 static int parse_gre_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, parse_gre_header() argument
112 tpi->flags = gre_flags_to_tnl_flags(greh->flags); parse_gre_header()
113 hdr_len = ip_gre_calc_hlen(tpi->flags); parse_gre_header()
119 tpi->proto = greh->protocol; parse_gre_header()
135 tpi->key = *options; parse_gre_header()
138 tpi->key = 0; parse_gre_header()
141 tpi->seq = *options; parse_gre_header()
144 tpi->seq = 0; parse_gre_header()
150 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { parse_gre_header()
151 tpi->proto = htons(ETH_P_IP); parse_gre_header()
159 return iptunnel_pull_header(skb, hdr_len, tpi->proto); parse_gre_header()
164 struct tnl_ptk_info tpi; gre_cisco_rcv() local
176 if (parse_gre_header(skb, &tpi, &csum_err) < 0) gre_cisco_rcv()
187 ret = proto->handler(skb, &tpi); gre_cisco_rcv()
219 struct tnl_ptk_info tpi; gre_cisco_err() local
223 if (parse_gre_header(skb, &tpi, &csum_err)) { gre_cisco_err()
247 if (proto->err_handler(skb, info, &tpi) == PACKET_RCVD) gre_cisco_err()
H A Dip_gre.c125 const struct tnl_ptk_info *tpi) ipgre_err()
176 if (tpi->proto == htons(ETH_P_TEB)) ipgre_err()
182 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, ipgre_err()
183 iph->daddr, iph->saddr, tpi->key); ipgre_err()
203 static int ipgre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi) ipgre_rcv() argument
210 if (tpi->proto == htons(ETH_P_TEB)) ipgre_rcv()
216 tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags, ipgre_rcv()
217 iph->saddr, iph->daddr, tpi->key); ipgre_rcv()
221 ip_tunnel_rcv(tunnel, skb, tpi, log_ecn_error); ipgre_rcv()
232 struct tnl_ptk_info tpi; __gre_xmit() local
234 tpi.flags = tunnel->parms.o_flags; __gre_xmit()
235 tpi.proto = proto; __gre_xmit()
236 tpi.key = tunnel->parms.o_key; __gre_xmit()
239 tpi.seq = htonl(tunnel->o_seqno); __gre_xmit()
242 gre_build_header(skb, &tpi, tunnel->tun_hlen); __gre_xmit()
244 skb_set_inner_protocol(skb, tpi.proto); __gre_xmit()
124 ipgre_err(struct sk_buff *skb, u32 info, const struct tnl_ptk_info *tpi) ipgre_err() argument
H A Dipip.c181 static const struct tnl_ptk_info tpi = { variable in typeref:struct:tnl_ptk_info
199 if (iptunnel_pull_header(skb, 0, tpi.proto)) ipip_rcv()
201 return ip_tunnel_rcv(tunnel, skb, &tpi, log_ecn_error); ipip_rcv()
H A Dip_tunnel.c422 const struct tnl_ptk_info *tpi, bool log_ecn_error) ip_tunnel_rcv()
435 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || ip_tunnel_rcv()
436 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { ip_tunnel_rcv()
443 if (!(tpi->flags&TUNNEL_SEQ) || ip_tunnel_rcv()
444 (tunnel->i_seqno && (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { ip_tunnel_rcv()
449 tunnel->i_seqno = ntohl(tpi->seq) + 1; ip_tunnel_rcv()
421 ip_tunnel_rcv(struct ip_tunnel *tunnel, struct sk_buff *skb, const struct tnl_ptk_info *tpi, bool log_ecn_error) ip_tunnel_rcv() argument
/linux-4.1.27/include/net/
H A Dgre.h27 int (*handler)(struct sk_buff *skb, const struct tnl_ptk_info *tpi);
29 const struct tnl_ptk_info *tpi);
36 void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi,
H A Dip_tunnels.h166 const struct tnl_ptk_info *tpi, bool log_ecn_error);
/linux-4.1.27/net/openvswitch/
H A Dvport-gre.c69 struct tnl_ptk_info tpi; __build_header() local
78 tpi.flags = filter_tnl_flags(tun_key->tun_flags); __build_header()
79 tpi.proto = htons(ETH_P_TEB); __build_header()
80 tpi.key = be64_get_low32(tun_key->tun_id); __build_header()
81 tpi.seq = 0; __build_header()
82 gre_build_header(skb, &tpi, tunnel_hlen); __build_header()
98 const struct tnl_ptk_info *tpi) gre_rcv()
110 key = key_to_tunnel_id(tpi->key, tpi->seq); gre_rcv()
112 filter_tnl_flags(tpi->flags), NULL, 0); gre_rcv()
120 const struct tnl_ptk_info *tpi) gre_err()
97 gre_rcv(struct sk_buff *skb, const struct tnl_ptk_info *tpi) gre_rcv() argument
119 gre_err(struct sk_buff *skb, u32 info, const struct tnl_ptk_info *tpi) gre_err() argument
/linux-4.1.27/drivers/s390/cio/
H A Dioasm.h124 static inline int tpi(struct tpi_info *addr) tpi() function
129 " tpi 0(%2)\n" tpi()
H A Dcio.c751 if (tpi(&ti)) { __clear_io_subchannel_easy()
/linux-4.1.27/net/bridge/netfilter/
H A Debt_arp.c6 * Tim Gardner <timg@tpi.com>
/linux-4.1.27/drivers/media/platform/s5p-tv/
H A Dsii9234_drv.c260 /* enable tpi */ sii9234_runtime_resume()
/linux-4.1.27/net/ipv6/
H A Dsit.c723 static const struct tnl_ptk_info tpi = { variable in typeref:struct:tnl_ptk_info
743 if (iptunnel_pull_header(skb, 0, tpi.proto)) ipip_rcv()
745 return ip_tunnel_rcv(tunnel, skb, &tpi, log_ecn_error); ipip_rcv()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Dvsc7326.c51 pr_err("Invalid tpi read from MAC, breaking loop.\n"); vsc_read()
/linux-4.1.27/arch/s390/kernel/
H A Dentry.S507 tpi 0
H A Ddis.c844 { "tpi", 0x36, INSTR_S_RD },
/linux-4.1.27/arch/s390/kvm/
H A Dpriv.c336 * Exceptions are tpi and the interrupt portion of tsch. handle_io_inst()

Completed in 384 milliseconds