Lines Matching refs:tp_len
1999 h.h1->tp_len = skb->len; in tpacket_rcv()
2008 h.h2->tp_len = skb->len; in tpacket_rcv()
2030 h.h3->tp_len = skb->len; in tpacket_rcv()
2138 int to_write, offset, len, tp_len, nr_frags, len_max; in tpacket_fill_skb() local
2155 tp_len = ph.h2->tp_len; in tpacket_fill_skb()
2158 tp_len = ph.h1->tp_len; in tpacket_fill_skb()
2161 if (unlikely(tp_len > size_max)) { in tpacket_fill_skb()
2162 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_fill_skb()
2172 off_max = po->tx_ring.frame_size - tp_len; in tpacket_fill_skb()
2198 to_write = tp_len; in tpacket_fill_skb()
2202 NULL, tp_len); in tpacket_fill_skb()
2206 if (ll_header_truncated(dev, tp_len)) in tpacket_fill_skb()
2252 return tp_len; in tpacket_fill_skb()
2264 int tp_len, size_max; in tpacket_snd() local
2326 tp_len = tpacket_fill_skb(po, skb, ph, dev, size_max, proto, in tpacket_snd()
2328 if (likely(tp_len >= 0) && in tpacket_snd()
2329 tp_len > dev->mtu + reserve && in tpacket_snd()
2331 tp_len = -EMSGSIZE; in tpacket_snd()
2333 if (unlikely(tp_len < 0)) { in tpacket_snd()
2342 err = tp_len; in tpacket_snd()
2370 len_sum += tp_len; in tpacket_snd()
3051 aux.tp_len = origlen; in packet_recvmsg()