How to extract entire packet from skb including ethernet header, ip, and tcp plus pay load in poll method of device driver
问题 in r8169 driver from realtek it does rx_buf = page_address(tp->Rx_databuff[entry]); dma_sync_single_for_cpu(d, addr, pkt_size, DMA_FROM_DEVICE); prefetch(rx_buf); skb_copy_to_linear_data(skb, rx_buf, pkt_size);<----//Do I get packet at this???? skb->tail += pkt_size; skb->len = pkt_size; dma_sync_single_for_device(d, addr, pkt_size, DMA_FROM_DEVICE); //csum... skb->protocol = eth_type_trans(skb, dev); napi_gro_receive(&tp->napi, skb); this is inside rtl_rx function called from poll of driver.