diff options
author | Koki Sanagi <sanagi.koki@jp.fujitsu.com> | 2010-04-26 21:01:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-27 15:53:27 -0400 |
commit | ec857fd40da41d7c50d9a97e07e364c93b8b8e05 (patch) | |
tree | f6373ad1e31f82dec3e8e4da32f69ff36cafdf6d /drivers/net/igbvf | |
parent | aa913403fe76d463eff55ee9aa20605bfc7051a4 (diff) |
igbvf: double increment nr_frags
There is no need to increment nr_frags because skb_fill_page_desc increments
it.
Signed-off-by: Koki Sanagi <sanagi.koki@jp.fujitsu.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igbvf')
-rw-r--r-- | drivers/net/igbvf/netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index cc2309027e6a..9ac3f9428195 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c | |||
@@ -289,7 +289,7 @@ static bool igbvf_clean_rx_irq(struct igbvf_adapter *adapter, | |||
289 | PCI_DMA_FROMDEVICE); | 289 | PCI_DMA_FROMDEVICE); |
290 | buffer_info->page_dma = 0; | 290 | buffer_info->page_dma = 0; |
291 | 291 | ||
292 | skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags++, | 292 | skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags, |
293 | buffer_info->page, | 293 | buffer_info->page, |
294 | buffer_info->page_offset, | 294 | buffer_info->page_offset, |
295 | length); | 295 | length); |