igb: double increment nr_frags
Subsystems (2)
PATCH 1/2 igb: double increment nr_frags
There is no need to increment nr_frags becasue skb_fill_page_desc increments it.
Signed-off-by Koki Sanagi <[email protected]>
--- drivers/net/igb/igb_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/igb/igb_main.c +1 -1
@@ -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);
David Miller
maintainerYour 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.