Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132391
b: refs/heads/master
c: 9fae6c3
h: refs/heads/master
i:
  132389: de85d74
  132387: a23b311
  132383: 62ebf40
v: v3
  • Loading branch information
Ilya Yanok authored and David S. Miller committed Mar 13, 2009
1 parent 44e5ca2 commit c6b43bc
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: 6b7c5b947c671a96e39f9526a5fd70c178b8dfd1
refs/heads/master: 9fae6c3f648e38f023b99b5f5a5280907b2e796e
8 changes: 4 additions & 4 deletions trunk/drivers/net/dnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static int dnet_poll(struct napi_struct *napi, int budget)
* packets waiting
*/
if (!(dnet_readl(bp, RX_FIFO_WCNT) >> 16)) {
netif_rx_complete(napi);
napi_complete(napi);
int_enable = dnet_readl(bp, INTR_ENB);
int_enable |= DNET_INTR_SRC_RX_CMDFIFOAF;
dnet_writel(bp, int_enable, INTR_ENB);
Expand Down Expand Up @@ -447,7 +447,7 @@ static int dnet_poll(struct napi_struct *napi, int budget)
if (npackets < budget) {
/* We processed all packets available. Tell NAPI it can
* stop polling then re-enable rx interrupts */
netif_rx_complete(napi);
napi_complete(napi);
int_enable = dnet_readl(bp, INTR_ENB);
int_enable |= DNET_INTR_SRC_RX_CMDFIFOAF;
dnet_writel(bp, int_enable, INTR_ENB);
Expand Down Expand Up @@ -507,7 +507,7 @@ static irqreturn_t dnet_interrupt(int irq, void *dev_id)
}

if (int_current & DNET_INTR_SRC_RX_CMDFIFOAF) {
if (netif_rx_schedule_prep(&bp->napi)) {
if (napi_schedule_prep(&bp->napi)) {
/*
* There's no point taking any more interrupts
* until we have processed the buffers
Expand All @@ -516,7 +516,7 @@ static irqreturn_t dnet_interrupt(int irq, void *dev_id)
int_enable = dnet_readl(bp, INTR_ENB);
int_enable &= ~DNET_INTR_SRC_RX_CMDFIFOAF;
dnet_writel(bp, int_enable, INTR_ENB);
__netif_rx_schedule(&bp->napi);
__napi_schedule(&bp->napi);
}
handled = 1;
}
Expand Down

0 comments on commit c6b43bc

Please sign in to comment.