mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
qede: add netpoll support for qede driver
[ Upstream commit961aa71623] handle netpoll case when qede_poll is called by netpoll layer with budget 0 Signed-off-by: Bhaskar Upadhaya <bupadhaya@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: Ariel Elior <aelior@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of:2ccce20d51("qede: execute xdp_do_flush() before napi_complete_done()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
87d4ff1873
commit
8aba483f70
@@ -1456,7 +1456,8 @@ int qede_poll(struct napi_struct *napi, int budget)
|
|||||||
rx_work_done = (likely(fp->type & QEDE_FASTPATH_RX) &&
|
rx_work_done = (likely(fp->type & QEDE_FASTPATH_RX) &&
|
||||||
qede_has_rx_work(fp->rxq)) ?
|
qede_has_rx_work(fp->rxq)) ?
|
||||||
qede_rx_int(fp, budget) : 0;
|
qede_rx_int(fp, budget) : 0;
|
||||||
if (rx_work_done < budget) {
|
/* Handle case where we are called by netpoll with a budget of 0 */
|
||||||
|
if (rx_work_done < budget || !budget) {
|
||||||
if (!qede_poll_is_more_work(fp)) {
|
if (!qede_poll_is_more_work(fp)) {
|
||||||
napi_complete_done(napi, rx_work_done);
|
napi_complete_done(napi, rx_work_done);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user