e1000: Fix filling skb descriptors while using packet split
- Simplified by calling skb_fill_page_desc(), which is more efficient. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: John Ronciak <john.ronciak@intel.com>
This commit is contained in:
parent
7e6c9861bb
commit
329bfd0b6d
1 changed files with 2 additions and 5 deletions
|
@ -3686,12 +3686,9 @@ e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
|
|||
pci_unmap_page(pdev, ps_page_dma->ps_page_dma[j],
|
||||
PAGE_SIZE, PCI_DMA_FROMDEVICE);
|
||||
ps_page_dma->ps_page_dma[j] = 0;
|
||||
skb_shinfo(skb)->frags[j].page =
|
||||
ps_page->ps_page[j];
|
||||
skb_fill_page_desc(skb, j, ps_page->ps_page[j], 0,
|
||||
length);
|
||||
ps_page->ps_page[j] = NULL;
|
||||
skb_shinfo(skb)->frags[j].page_offset = 0;
|
||||
skb_shinfo(skb)->frags[j].size = length;
|
||||
skb_shinfo(skb)->nr_frags++;
|
||||
skb->len += length;
|
||||
skb->data_len += length;
|
||||
}
|
||||
|
|
Reference in a new issue