aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2006-03-02 21:20:02 -0500
committerroot <root@jk-desktop.jf.intel.com>2006-03-02 21:20:02 -0500
commit329bfd0b6d5ffec00b787f1d0e68eef63d8b1d56 (patch)
tree1aff4ad4e26ca01c6203869a5477850e7c1c23a2 /drivers/net/e1000
parent7e6c9861bbc2fcd2438da910c006781784968a7c (diff)
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>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r--drivers/net/e1000/e1000_main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 6ee8ed5606f1..9e58419c8729 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -3686,12 +3686,9 @@ e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
3686 pci_unmap_page(pdev, ps_page_dma->ps_page_dma[j], 3686 pci_unmap_page(pdev, ps_page_dma->ps_page_dma[j],
3687 PAGE_SIZE, PCI_DMA_FROMDEVICE); 3687 PAGE_SIZE, PCI_DMA_FROMDEVICE);
3688 ps_page_dma->ps_page_dma[j] = 0; 3688 ps_page_dma->ps_page_dma[j] = 0;
3689 skb_shinfo(skb)->frags[j].page = 3689 skb_fill_page_desc(skb, j, ps_page->ps_page[j], 0,
3690 ps_page->ps_page[j]; 3690 length);
3691 ps_page->ps_page[j] = NULL; 3691 ps_page->ps_page[j] = NULL;
3692 skb_shinfo(skb)->frags[j].page_offset = 0;
3693 skb_shinfo(skb)->frags[j].size = length;
3694 skb_shinfo(skb)->nr_frags++;
3695 skb->len += length; 3692 skb->len += length;
3696 skb->data_len += length; 3693 skb->data_len += length;
3697 } 3694 }