Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273537
b: refs/heads/master
c: 9372cac
h: refs/heads/master
i:
  273535: 4a84f9c
v: v3
  • Loading branch information
Padmanabh Ratnakar authored and David S. Miller committed Nov 4, 2011
1 parent 40262f7 commit 9a70447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1610c79f1e9545d0a64dc6bb4f9affdfcf1d5726
refs/heads/master: 9372cacb300df3ee0a8be8a25bea15d16a95c583
8 changes: 4 additions & 4 deletions trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1905,17 +1905,17 @@ static int be_poll_rx(struct napi_struct *napi, int budget)
be_rx_stats_update(rxo, rxcp);
}

be_cq_notify(adapter, rx_cq->id, false, work_done);

/* Refill the queue */
if (work_done && atomic_read(&rxo->q.used) < RX_FRAGS_REFILL_WM)
be_post_rx_frags(rxo, GFP_ATOMIC);

/* All consumed */
if (work_done < budget) {
napi_complete(napi);
be_cq_notify(adapter, rx_cq->id, true, work_done);
} else {
/* More to be consumed; continue with interrupts disabled */
be_cq_notify(adapter, rx_cq->id, false, work_done);
/* Arm CQ */
be_cq_notify(adapter, rx_cq->id, true, 0);
}
return work_done;
}
Expand Down

0 comments on commit 9a70447

Please sign in to comment.