Lines Matching refs:macoff
2306 unsigned short macoff, hdrlen; in tpacket_rcv() local
2363 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2373 macoff = netoff - maclen; in tpacket_rcv()
2380 if (macoff + snaplen > po->rx_ring.frame_size) { in tpacket_rcv()
2395 snaplen = po->rx_ring.frame_size - macoff; in tpacket_rcv()
2401 } else if (unlikely(macoff + snaplen > in tpacket_rcv()
2405 nval = GET_PBDQC_FROM_RB(&po->rx_ring)->max_frame_len - macoff; in tpacket_rcv()
2407 snaplen, nval, macoff); in tpacket_rcv()
2411 macoff = GET_PBDQC_FROM_RB(&po->rx_ring)->max_frame_len; in tpacket_rcv()
2417 TP_STATUS_KERNEL, (macoff+snaplen)); in tpacket_rcv()
2429 virtio_net_hdr_from_skb(skb, h.raw + macoff - in tpacket_rcv()
2457 skb_copy_bits(skb, 0, h.raw + macoff, snaplen); in tpacket_rcv()
2474 h.h1->tp_mac = macoff; in tpacket_rcv()
2483 h.h2->tp_mac = macoff; in tpacket_rcv()
2509 h.h3->tp_mac = macoff; in tpacket_rcv()
2539 macoff + snaplen); in tpacket_rcv()