Lines Matching refs:tp_len
2220 h.h1->tp_len = skb->len; in tpacket_rcv()
2229 h.h2->tp_len = skb->len; in tpacket_rcv()
2251 h.h3->tp_len = skb->len; in tpacket_rcv()
2347 int to_write, offset, len, tp_len, nr_frags, len_max; in tpacket_fill_skb() local
2364 tp_len = ph.h2->tp_len; in tpacket_fill_skb()
2367 tp_len = ph.h1->tp_len; in tpacket_fill_skb()
2370 if (unlikely(tp_len > size_max)) { in tpacket_fill_skb()
2371 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_fill_skb()
2381 off_max = po->tx_ring.frame_size - tp_len; in tpacket_fill_skb()
2407 to_write = tp_len; in tpacket_fill_skb()
2411 NULL, tp_len); in tpacket_fill_skb()
2415 int hdrlen = min_t(int, dev->hard_header_len, tp_len); in tpacket_fill_skb()
2461 return tp_len; in tpacket_fill_skb()
2473 int tp_len, size_max; in tpacket_snd() local
2535 tp_len = tpacket_fill_skb(po, skb, ph, dev, size_max, proto, in tpacket_snd()
2537 if (likely(tp_len >= 0) && in tpacket_snd()
2538 tp_len > dev->mtu + reserve && in tpacket_snd()
2540 tp_len = -EMSGSIZE; in tpacket_snd()
2542 if (unlikely(tp_len < 0)) { in tpacket_snd()
2551 err = tp_len; in tpacket_snd()
2579 len_sum += tp_len; in tpacket_snd()
3275 aux.tp_len = origlen; in packet_recvmsg()