Lines Matching refs:tp_len

2333 		h.h1->tp_len = skb->len;  in tpacket_rcv()
2342 h.h2->tp_len = skb->len; in tpacket_rcv()
2364 h.h3->tp_len = skb->len; in tpacket_rcv()
2486 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2509 to_write = tp_len; in tpacket_fill_skb()
2513 NULL, tp_len); in tpacket_fill_skb()
2517 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2562 return tp_len; in tpacket_fill_skb()
2569 int tp_len, off; in tpacket_parse_header() local
2579 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2582 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2585 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2588 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2589 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2597 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2630 return tp_len; in tpacket_parse_header()
2645 int tp_len, size_max; in tpacket_snd() local
2723 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2724 if (tp_len < 0) in tpacket_snd()
2733 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2734 if (tp_len < 0 || in tpacket_snd()
2735 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2736 tp_len = -EINVAL; in tpacket_snd()
2754 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2756 if (likely(tp_len >= 0) && in tpacket_snd()
2757 tp_len > dev->mtu + reserve && in tpacket_snd()
2760 tp_len = -EMSGSIZE; in tpacket_snd()
2762 if (unlikely(tp_len < 0)) { in tpacket_snd()
2772 err = tp_len; in tpacket_snd()
2779 tp_len = -EINVAL; in tpacket_snd()
2806 len_sum += tp_len; in tpacket_snd()
3443 aux.tp_len = origlen; in packet_recvmsg()