igb: double increment nr_frags
Subsystems (2)
PATCH 1/2 igb: double increment nr_frags
From: Koki Sanagi <[email protected]>
There is no need to increment nr_frags because skb_fill_page_desc increments it.
---
drivers/net/igb/igb_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +1 -1
@@ -5248,7 +5248,7 @@ static bool igb_clean_rx_irq_adv(struct igb_q_vector *q_vector, PAGE_SIZE / 2, PCI_DMA_FROMDEVICE); buffer_info->page_dma =0 ; -skb_fill_page_desc (skb,skb_shinfo (skb)->nr_frags++, +skb_fill_page_desc (skb,skb_shinfo (skb)->nr_frags, buffer_info->page, buffer_info->page_offset, length);
PATCH 2/2 igbvf: double increment nr_frags
From: Koki Sanagi <[email protected]>
There is no need to increment nr_frags because skb_fill_page_desc increments it.
---
drivers/net/igbvf/netdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/igbvf/netdev.c +1 -1
@@ -289,7 +289,7 @@ static bool igbvf_clean_rx_irq(struct igbvf_adapter *adapter, PCI_DMA_FROMDEVICE); buffer_info->page_dma =0 ; -skb_fill_page_desc (skb,skb_shinfo (skb)->nr_frags++, +skb_fill_page_desc (skb,skb_shinfo (skb)->nr_frags, buffer_info->page, buffer_info->page_offset, length);
Re: [net-next-2.6 PATCH 2/2] igbvf: double increment nr_frags
From: Jeff Kirsher <[email protected]>
Date: Tue, 27 Apr 2010 04:01:39 -0700
Quoted 7 lines
From: Koki Sanagi <[email protected]>
There is no need to increment
nr_fragsbecauseskb_fill_page_descincrements it.Signed-off-by Koki Sanagi <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.
From: Jeff Kirsher <[email protected]>
Date: Tue, 27 Apr 2010 04:01:19 -0700
Quoted 7 lines
From: Koki Sanagi <[email protected]>
There is no need to increment
nr_fragsbecauseskb_fill_page_descincrements it.Signed-off-by Koki Sanagi <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.