Patch "igb: fix netpoll exit with traffic" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    igb: fix netpoll exit with traffic

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     igb-fix-netpoll-exit-with-traffic.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1e3c1c2e38ff09aae90734231c7b0b206c7d36f8
Author: Jesse Brandeburg <jesse.brandeburg@xxxxxxxxx>
Date:   Tue Nov 23 12:40:00 2021 -0800

    igb: fix netpoll exit with traffic
    
    [ Upstream commit eaeace60778e524a2820d0c0ad60bf80289e292c ]
    
    Oleksandr brought a bug report where netpoll causes trace
    messages in the log on igb.
    
    Danielle brought this back up as still occurring, so we'll try
    again.
    
    [22038.710800] ------------[ cut here ]------------
    [22038.710801] igb_poll+0x0/0x1440 [igb] exceeded budget in poll
    [22038.710802] WARNING: CPU: 12 PID: 40362 at net/core/netpoll.c:155 netpoll_poll_dev+0x18a/0x1a0
    
    As Alex suggested, change the driver to return work_done at the
    exit of napi_poll, which should be safe to do in this driver
    because it is not polling multiple queues in this single napi
    context (multiple queues attached to one MSI-X vector). Several
    other drivers contain the same simple sequence, so I hope
    this will not create new problems.
    
    Fixes: 16eb8815c235 ("igb: Refactor clean_rx_irq to reduce overhead and improve performance")
    Reported-by: Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>
    Reported-by: Danielle Ratson <danieller@xxxxxxxxxx>
    Suggested-by: Alexander Duyck <alexander.duyck@xxxxxxxxx>
    Signed-off-by: Jesse Brandeburg <jesse.brandeburg@xxxxxxxxx>
    Tested-by: Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>
    Tested-by: Danielle Ratson <danieller@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20211123204000.1597971-1-jesse.brandeburg@xxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 158feb0ab2739..c11244a9b7e69 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -7752,7 +7752,7 @@ static int igb_poll(struct napi_struct *napi, int budget)
 	if (likely(napi_complete_done(napi, work_done)))
 		igb_ring_irq_enable(q_vector);
 
-	return min(work_done, budget - 1);
+	return work_done;
 }
 
 /**



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux