Lines Matching refs:tp_len
2361 h.h1->tp_len = skb->len; in tpacket_rcv()
2370 h.h2->tp_len = skb->len; in tpacket_rcv()
2392 h.h3->tp_len = skb->len; in tpacket_rcv()
2514 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2537 to_write = tp_len; in tpacket_fill_skb()
2541 NULL, tp_len); in tpacket_fill_skb()
2545 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2590 return tp_len; in tpacket_fill_skb()
2597 int tp_len, off; in tpacket_parse_header() local
2607 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2610 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2613 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2616 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2617 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2625 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2658 return tp_len; in tpacket_parse_header()
2673 int tp_len, size_max; in tpacket_snd() local
2751 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2752 if (tp_len < 0) in tpacket_snd()
2761 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2762 if (tp_len < 0 || in tpacket_snd()
2763 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2764 tp_len = -EINVAL; in tpacket_snd()
2782 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2784 if (likely(tp_len >= 0) && in tpacket_snd()
2785 tp_len > dev->mtu + reserve && in tpacket_snd()
2788 tp_len = -EMSGSIZE; in tpacket_snd()
2790 if (unlikely(tp_len < 0)) { in tpacket_snd()
2800 err = tp_len; in tpacket_snd()
2807 tp_len = -EINVAL; in tpacket_snd()
2835 len_sum += tp_len; in tpacket_snd()
3485 aux.tp_len = origlen; in packet_recvmsg()