dev->stats.rx_packets++;
dev->stats.rx_bytes += pktlen;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
- skb = build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag));
-#else
skb = napi_build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag));
-#endif
if (!skb) {
skb_free_frag(ring->buf[i].rx_buf);
goto next;