mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 01:30:55 +07:00
cxgb - fix NAPI
netif_rx_complete() should be called only when work_done < budget. Signed-off-by: Divy Le ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
7832ee034b
commit
445cf803ca
6
drivers/net/chelsio/sge.c
Executable file → Normal file
6
drivers/net/chelsio/sge.c
Executable file → Normal file
@ -1625,11 +1625,9 @@ int t1_poll(struct napi_struct *napi, int budget)
|
||||
{
|
||||
struct adapter *adapter = container_of(napi, struct adapter, napi);
|
||||
struct net_device *dev = adapter->port[0].dev;
|
||||
int work_done;
|
||||
int work_done = process_responses(adapter, budget);
|
||||
|
||||
work_done = process_responses(adapter, budget);
|
||||
|
||||
if (likely(!responses_pending(adapter))) {
|
||||
if (likely(work_done < budget)) {
|
||||
netif_rx_complete(dev, napi);
|
||||
writel(adapter->sge->respQ.cidx,
|
||||
adapter->regs + A_SG_SLEEPING);
|
||||
|
Loading…
Reference in New Issue
Block a user