Lines Matching refs:tp_len
2415 h.h1->tp_len = skb->len; in tpacket_rcv()
2424 h.h2->tp_len = skb->len; in tpacket_rcv()
2446 h.h3->tp_len = skb->len; in tpacket_rcv()
2578 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2601 to_write = tp_len; in tpacket_fill_skb()
2605 NULL, tp_len); in tpacket_fill_skb()
2609 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2654 return tp_len; in tpacket_fill_skb()
2661 int tp_len, off; in tpacket_parse_header() local
2671 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2674 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2677 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2680 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2681 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2689 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2722 return tp_len; in tpacket_parse_header()
2738 int tp_len, size_max; in tpacket_snd() local
2816 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2817 if (tp_len < 0) in tpacket_snd()
2826 tp_len -= vnet_hdr_sz; in tpacket_snd()
2827 if (tp_len < 0 || in tpacket_snd()
2828 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2829 tp_len = -EINVAL; in tpacket_snd()
2847 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2849 if (likely(tp_len >= 0) && in tpacket_snd()
2850 tp_len > dev->mtu + reserve && in tpacket_snd()
2853 tp_len = -EMSGSIZE; in tpacket_snd()
2855 if (unlikely(tp_len < 0)) { in tpacket_snd()
2865 err = tp_len; in tpacket_snd()
2872 tp_len = -EINVAL; in tpacket_snd()
2900 len_sum += tp_len; in tpacket_snd()
3541 aux.tp_len = origlen; in packet_recvmsg()