• Home
  • Raw
  • Download

Lines Matching refs:tunnel

824 static int __ip6_tnl_rcv(struct ip6_tnl *tunnel, struct sk_buff *skb,  in __ip6_tnl_rcv()  argument
837 (tunnel->parms.i_flags & TUNNEL_CSUM)) || in __ip6_tnl_rcv()
839 !(tunnel->parms.i_flags & TUNNEL_CSUM))) { in __ip6_tnl_rcv()
840 tunnel->dev->stats.rx_crc_errors++; in __ip6_tnl_rcv()
841 tunnel->dev->stats.rx_errors++; in __ip6_tnl_rcv()
845 if (tunnel->parms.i_flags & TUNNEL_SEQ) { in __ip6_tnl_rcv()
847 (tunnel->i_seqno && in __ip6_tnl_rcv()
848 (s32)(ntohl(tpi->seq) - tunnel->i_seqno) < 0)) { in __ip6_tnl_rcv()
849 tunnel->dev->stats.rx_fifo_errors++; in __ip6_tnl_rcv()
850 tunnel->dev->stats.rx_errors++; in __ip6_tnl_rcv()
853 tunnel->i_seqno = ntohl(tpi->seq) + 1; in __ip6_tnl_rcv()
859 if (tunnel->dev->type == ARPHRD_ETHER) { in __ip6_tnl_rcv()
861 tunnel->dev->stats.rx_length_errors++; in __ip6_tnl_rcv()
862 tunnel->dev->stats.rx_errors++; in __ip6_tnl_rcv()
867 skb->protocol = eth_type_trans(skb, tunnel->dev); in __ip6_tnl_rcv()
870 skb->dev = tunnel->dev; in __ip6_tnl_rcv()
876 __skb_tunnel_rx(skb, tunnel->dev, tunnel->net); in __ip6_tnl_rcv()
878 err = dscp_ecn_decapsulate(tunnel, ipv6h, skb); in __ip6_tnl_rcv()
885 ++tunnel->dev->stats.rx_frame_errors; in __ip6_tnl_rcv()
886 ++tunnel->dev->stats.rx_errors; in __ip6_tnl_rcv()
891 tstats = this_cpu_ptr(tunnel->dev->tstats); in __ip6_tnl_rcv()
897 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(tunnel->dev))); in __ip6_tnl_rcv()
902 gro_cells_receive(&tunnel->gro_cells, skb); in __ip6_tnl_rcv()
2168 struct ip6_tnl *tunnel = netdev_priv(dev); in ip6_tnl_fill_info() local
2169 struct __ip6_tnl_parm *parm = &tunnel->parms; in ip6_tnl_fill_info()
2182 if (nla_put_u16(skb, IFLA_IPTUN_ENCAP_TYPE, tunnel->encap.type) || in ip6_tnl_fill_info()
2183 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, tunnel->encap.sport) || in ip6_tnl_fill_info()
2184 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, tunnel->encap.dport) || in ip6_tnl_fill_info()
2185 nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS, tunnel->encap.flags)) in ip6_tnl_fill_info()
2200 struct ip6_tnl *tunnel = netdev_priv(dev); in ip6_tnl_get_link_net() local
2202 return tunnel->net; in ip6_tnl_get_link_net()