Lines Matching refs:tp_len

2358 		h.h1->tp_len = skb->len;  in tpacket_rcv()
2367 h.h2->tp_len = skb->len; in tpacket_rcv()
2389 h.h3->tp_len = skb->len; in tpacket_rcv()
2511 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2534 to_write = tp_len; in tpacket_fill_skb()
2538 NULL, tp_len); in tpacket_fill_skb()
2542 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2587 return tp_len; in tpacket_fill_skb()
2594 int tp_len, off; in tpacket_parse_header() local
2604 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2607 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2610 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2613 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2614 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2622 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2655 return tp_len; in tpacket_parse_header()
2670 int tp_len, size_max; in tpacket_snd() local
2748 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2749 if (tp_len < 0) in tpacket_snd()
2758 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2759 if (tp_len < 0 || in tpacket_snd()
2760 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2761 tp_len = -EINVAL; in tpacket_snd()
2779 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2781 if (likely(tp_len >= 0) && in tpacket_snd()
2782 tp_len > dev->mtu + reserve && in tpacket_snd()
2785 tp_len = -EMSGSIZE; in tpacket_snd()
2787 if (unlikely(tp_len < 0)) { in tpacket_snd()
2797 err = tp_len; in tpacket_snd()
2804 tp_len = -EINVAL; in tpacket_snd()
2831 len_sum += tp_len; in tpacket_snd()
3468 aux.tp_len = origlen; in packet_recvmsg()