Lines Matching refs:pi
1088 struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) }; in tun_get_user() local
1101 if (len < sizeof(pi)) in tun_get_user()
1103 len -= sizeof(pi); in tun_get_user()
1105 n = copy_from_iter(&pi, sizeof(pi), from); in tun_get_user()
1106 if (n != sizeof(pi)) in tun_get_user()
1198 pi.proto = htons(ETH_P_IP); in tun_get_user()
1201 pi.proto = htons(ETH_P_IPV6); in tun_get_user()
1211 skb->protocol = pi.proto; in tun_get_user()
1294 struct tun_pi pi = { 0, skb->protocol }; in tun_put_user() local
1309 if (iov_iter_count(iter) < sizeof(pi)) in tun_put_user()
1312 total += sizeof(pi); in tun_put_user()
1315 pi.flags |= TUN_PKT_STRIP; in tun_put_user()
1318 if (copy_to_iter(&pi, sizeof(pi), iter) != sizeof(pi)) in tun_put_user()