Browse Source

enic: fix rx napi poll return value

With the commit d75b1ade567ffab ("net: less interrupt masking in NAPI") napi repoll
is done only when work_done == budget. When we are in busy_poll we return 0 in
napi_poll. We should return budget.

Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Govindarajulu Varadarajan 10 năm trước cách đây
mục cha
commit
f104fedc0d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/net/ethernet/cisco/enic/enic_main.c

+ 1 - 1
drivers/net/ethernet/cisco/enic/enic_main.c

@@ -1335,7 +1335,7 @@ static int enic_poll_msix_rq(struct napi_struct *napi, int budget)
 	int err;
 
 	if (!enic_poll_lock_napi(&enic->rq[rq]))
-		return work_done;
+		return budget;
 	/* Service RQ
 	 */