Lines Matching refs:tp_len

2303 		h.h1->tp_len = skb->len;  in tpacket_rcv()
2312 h.h2->tp_len = skb->len; in tpacket_rcv()
2334 h.h3->tp_len = skb->len; in tpacket_rcv()
2453 void *frame, struct net_device *dev, void *data, int tp_len, in tpacket_fill_skb() argument
2476 to_write = tp_len; in tpacket_fill_skb()
2480 NULL, tp_len); in tpacket_fill_skb()
2484 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2529 return tp_len; in tpacket_fill_skb()
2536 int tp_len, off; in tpacket_parse_header() local
2546 tp_len = ph.h3->tp_len; in tpacket_parse_header()
2549 tp_len = ph.h2->tp_len; in tpacket_parse_header()
2552 tp_len = ph.h1->tp_len; in tpacket_parse_header()
2555 if (unlikely(tp_len > size_max)) { in tpacket_parse_header()
2556 pr_err("packet size is too long (%d > %d)\n", tp_len, size_max); in tpacket_parse_header()
2564 off_max = po->tx_ring.frame_size - tp_len; in tpacket_parse_header()
2597 return tp_len; in tpacket_parse_header()
2612 int tp_len, size_max; in tpacket_snd() local
2690 tp_len = tpacket_parse_header(po, ph, size_max, &data); in tpacket_snd()
2691 if (tp_len < 0) in tpacket_snd()
2700 tp_len -= sizeof(*vnet_hdr); in tpacket_snd()
2701 if (tp_len < 0 || in tpacket_snd()
2702 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd()
2703 tp_len = -EINVAL; in tpacket_snd()
2721 tp_len = tpacket_fill_skb(po, skb, ph, dev, data, tp_len, proto, in tpacket_snd()
2723 if (likely(tp_len >= 0) && in tpacket_snd()
2724 tp_len > dev->mtu + reserve && in tpacket_snd()
2727 tp_len = -EMSGSIZE; in tpacket_snd()
2729 if (unlikely(tp_len < 0)) { in tpacket_snd()
2739 err = tp_len; in tpacket_snd()
2746 tp_len = -EINVAL; in tpacket_snd()
2773 len_sum += tp_len; in tpacket_snd()
3410 aux.tp_len = origlen; in packet_recvmsg()