Lines Matching refs:macoff
2102 unsigned short macoff, netoff, hdrlen; in tpacket_rcv() local
2149 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2156 macoff = netoff - maclen; in tpacket_rcv()
2159 if (macoff + snaplen > po->rx_ring.frame_size) { in tpacket_rcv()
2171 snaplen = po->rx_ring.frame_size - macoff; in tpacket_rcv()
2175 } else if (unlikely(macoff + snaplen > in tpacket_rcv()
2179 nval = GET_PBDQC_FROM_RB(&po->rx_ring)->max_frame_len - macoff; in tpacket_rcv()
2181 snaplen, nval, macoff); in tpacket_rcv()
2185 macoff = GET_PBDQC_FROM_RB(&po->rx_ring)->max_frame_len; in tpacket_rcv()
2190 TP_STATUS_KERNEL, (macoff+snaplen)); in tpacket_rcv()
2211 skb_copy_bits(skb, 0, h.raw + macoff, snaplen); in tpacket_rcv()
2222 h.h1->tp_mac = macoff; in tpacket_rcv()
2231 h.h2->tp_mac = macoff; in tpacket_rcv()
2253 h.h3->tp_mac = macoff; in tpacket_rcv()
2282 macoff + snaplen); in tpacket_rcv()