* [PATCH 1/2] igb: double increment nr_frags
@ 2010-04-15 7:20 Koki Sanagi
2010-04-15 7:28 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Koki Sanagi @ 2010-04-15 7:20 UTC (permalink / raw)
To: netdev, e1000-devel
Cc: davem, jeffrey.t.kirsher, jesse.brandeburg, bruce.w.allan,
peter.p.waskiewicz.jr, john.ronciak
There is no need to increment nr_frags becasue skb_fill_page_desc increments
it.
Signed-off-by: Koki Sanagi <sanagi.koki@jp.fujitsu.com>
---
drivers/net/igb/igb_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index 78cc742..8bde6c3 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -5254,7 +5254,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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] igb: double increment nr_frags
2010-04-15 7:20 [PATCH 1/2] igb: double increment nr_frags Koki Sanagi
@ 2010-04-15 7:28 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-04-15 7:28 UTC (permalink / raw)
To: sanagi.koki
Cc: netdev, e1000-devel, jeffrey.t.kirsher, jesse.brandeburg,
bruce.w.allan, peter.p.waskiewicz.jr, john.ronciak
Your email client corrupted your patch by applying text
formatting to it.
Please disable all text formatting in your email client
and resend your changes.
You can read Documentation/email-clients.txt for help in
this area.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-15 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-15 7:20 [PATCH 1/2] igb: double increment nr_frags Koki Sanagi
2010-04-15 7:28 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).