Lines Matching refs:tp_len
2459 h.h1->tp_len = skb->len; in tpacket_rcv()
2468 h.h2->tp_len = skb->len; in tpacket_rcv()
2494 h.h3->tp_len = skb->len; in tpacket_rcv()
2623 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2646 to_write = tp_len; in tpacket_fill_skb()
2650 NULL, tp_len); in tpacket_fill_skb()
2654 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2699 return tp_len; in tpacket_fill_skb()
2706 int tp_len, off; in tpacket_parse_header() local
2716 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2719 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2722 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2725 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2726 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2734 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2767 return tp_len; in tpacket_parse_header()
2783 int tp_len, size_max; in tpacket_snd() local
2861 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2862 if (tp_len < 0) in tpacket_snd()
2871 tp_len -= vnet_hdr_sz; in tpacket_snd()
2872 if (tp_len < 0 || in tpacket_snd()
2873 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2874 tp_len = -EINVAL; in tpacket_snd()
2892 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2894 if (likely(tp_len >= 0) && in tpacket_snd()
2895 tp_len > dev->mtu + reserve && in tpacket_snd()
2898 tp_len = -EMSGSIZE; in tpacket_snd()
2900 if (unlikely(tp_len < 0)) { in tpacket_snd()
2910 err = tp_len; in tpacket_snd()
2917 tp_len = -EINVAL; in tpacket_snd()
2945 len_sum += tp_len; in tpacket_snd()
3587 aux.tp_len = origlen; in packet_recvmsg()