Lines Matching refs:tp_len

2393 		h.h1->tp_len = skb->len;  in tpacket_rcv()
2402 h.h2->tp_len = skb->len; in tpacket_rcv()
2424 h.h3->tp_len = skb->len; in tpacket_rcv()
2546 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2569 to_write = tp_len; in tpacket_fill_skb()
2573 NULL, tp_len); in tpacket_fill_skb()
2577 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2622 return tp_len; in tpacket_fill_skb()
2629 int tp_len, off; in tpacket_parse_header() local
2639 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2642 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2645 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2648 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2649 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2657 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2690 return tp_len; in tpacket_parse_header()
2705 int tp_len, size_max; in tpacket_snd() local
2783 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2784 if (tp_len < 0) in tpacket_snd()
2793 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2794 if (tp_len < 0 || in tpacket_snd()
2795 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2796 tp_len = -EINVAL; in tpacket_snd()
2814 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2816 if (likely(tp_len >= 0) && in tpacket_snd()
2817 tp_len > dev->mtu + reserve && in tpacket_snd()
2820 tp_len = -EMSGSIZE; in tpacket_snd()
2822 if (unlikely(tp_len < 0)) { in tpacket_snd()
2832 err = tp_len; in tpacket_snd()
2839 tp_len = -EINVAL; in tpacket_snd()
2866 len_sum += tp_len; in tpacket_snd()
3503 aux.tp_len = origlen; in packet_recvmsg()