Lines Matching refs:tp_len
2412 h.h1->tp_len = skb->len; in tpacket_rcv()
2421 h.h2->tp_len = skb->len; in tpacket_rcv()
2443 h.h3->tp_len = skb->len; in tpacket_rcv()
2565 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2588 to_write = tp_len; in tpacket_fill_skb()
2592 NULL, tp_len); in tpacket_fill_skb()
2596 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2641 return tp_len; in tpacket_fill_skb()
2648 int tp_len, off; in tpacket_parse_header() local
2658 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2661 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2664 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2667 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2668 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2676 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2709 return tp_len; in tpacket_parse_header()
2724 int tp_len, size_max; in tpacket_snd() local
2802 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2803 if (tp_len < 0) in tpacket_snd()
2812 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2813 if (tp_len < 0 || in tpacket_snd()
2814 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2815 tp_len = -EINVAL; in tpacket_snd()
2833 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2835 if (likely(tp_len >= 0) && in tpacket_snd()
2836 tp_len > dev->mtu + reserve && in tpacket_snd()
2839 tp_len = -EMSGSIZE; in tpacket_snd()
2841 if (unlikely(tp_len < 0)) { in tpacket_snd()
2851 err = tp_len; in tpacket_snd()
2858 tp_len = -EINVAL; in tpacket_snd()
2886 len_sum += tp_len; in tpacket_snd()
3525 aux.tp_len = origlen; in packet_recvmsg()