Lines Matching refs:tp_len

2290 		h.h1->tp_len = skb->len;  in tpacket_rcv()
2299 h.h2->tp_len = skb->len; in tpacket_rcv()
2321 h.h3->tp_len = skb->len; in tpacket_rcv()
2446 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2469 to_write = tp_len; in tpacket_fill_skb()
2473 NULL, tp_len); in tpacket_fill_skb()
2477 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2524 return tp_len; in tpacket_fill_skb()
2531 int tp_len, off; in tpacket_parse_header() local
2541 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2544 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2547 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2550 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2551 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2559 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2592 return tp_len; in tpacket_parse_header()
2606 int tp_len, size_max; in tpacket_snd() local
2664 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2665 if (tp_len < 0) in tpacket_snd()
2674 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2675 if (tp_len < 0 || in tpacket_snd()
2676 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2677 tp_len = -EINVAL; in tpacket_snd()
2695 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2697 if (likely(tp_len >= 0) && in tpacket_snd()
2698 tp_len > dev->mtu + reserve && in tpacket_snd()
2701 tp_len = -EMSGSIZE; in tpacket_snd()
2703 if (unlikely(tp_len < 0)) { in tpacket_snd()
2713 err = tp_len; in tpacket_snd()
2720 tp_len = -EINVAL; in tpacket_snd()
2747 len_sum += tp_len; in tpacket_snd()
3370 aux.tp_len = origlen; in packet_recvmsg()