diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:49:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:49:40 -0500 |
commit | 0191b625ca5a46206d2fb862bb08f36f2fcb3b31 (patch) | |
tree | 454d1842b1833d976da62abcbd5c47521ebe9bd7 /drivers/net/korina.c | |
parent | 54a696bd07c14d3b1192d03ce7269bc59b45209a (diff) | |
parent | eb56092fc168bf5af199d47af50c0d84a96db898 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1429 commits)
net: Allow dependancies of FDDI & Tokenring to be modular.
igb: Fix build warning when DCA is disabled.
net: Fix warning fallout from recent NAPI interface changes.
gro: Fix potential use after free
sfc: If AN is enabled, always read speed/duplex from the AN advertising bits
sfc: When disabling the NIC, close the device rather than unregistering it
sfc: SFT9001: Add cable diagnostics
sfc: Add support for multiple PHY self-tests
sfc: Merge top-level functions for self-tests
sfc: Clean up PHY mode management in loopback self-test
sfc: Fix unreliable link detection in some loopback modes
sfc: Generate unique names for per-NIC workqueues
802.3ad: use standard ethhdr instead of ad_header
802.3ad: generalize out mac address initializer
802.3ad: initialize ports LACPDU from const initializer
802.3ad: remove typedef around ad_system
802.3ad: turn ports is_individual into a bool
802.3ad: turn ports is_enabled into a bool
802.3ad: make ntt bool
ixgbe: Fix set_ringparam in ixgbe to use the same memory pools.
...
Fixed trivial IPv4/6 address printing conflicts in fs/cifs/connect.c due
to the conversion to %pI (in this networking merge) and the addition of
doing IPv6 addresses (from the earlier merge of CIFS).
Diffstat (limited to 'drivers/net/korina.c')
-rw-r--r-- | drivers/net/korina.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/korina.c b/drivers/net/korina.c index e18576316bda..4a5580c1126a 100644 --- a/drivers/net/korina.c +++ b/drivers/net/korina.c | |||
@@ -327,7 +327,7 @@ static irqreturn_t korina_rx_dma_interrupt(int irq, void *dev_id) | |||
327 | 327 | ||
328 | dmas = readl(&lp->rx_dma_regs->dmas); | 328 | dmas = readl(&lp->rx_dma_regs->dmas); |
329 | if (dmas & (DMA_STAT_DONE | DMA_STAT_HALT | DMA_STAT_ERR)) { | 329 | if (dmas & (DMA_STAT_DONE | DMA_STAT_HALT | DMA_STAT_ERR)) { |
330 | netif_rx_schedule_prep(dev, &lp->napi); | 330 | netif_rx_schedule_prep(&lp->napi); |
331 | 331 | ||
332 | dmasm = readl(&lp->rx_dma_regs->dmasm); | 332 | dmasm = readl(&lp->rx_dma_regs->dmasm); |
333 | writel(dmasm | (DMA_STAT_DONE | | 333 | writel(dmasm | (DMA_STAT_DONE | |
@@ -409,7 +409,6 @@ static int korina_rx(struct net_device *dev, int limit) | |||
409 | 409 | ||
410 | /* Pass the packet to upper layers */ | 410 | /* Pass the packet to upper layers */ |
411 | netif_receive_skb(skb); | 411 | netif_receive_skb(skb); |
412 | dev->last_rx = jiffies; | ||
413 | dev->stats.rx_packets++; | 412 | dev->stats.rx_packets++; |
414 | dev->stats.rx_bytes += pkt_len; | 413 | dev->stats.rx_bytes += pkt_len; |
415 | 414 | ||
@@ -467,7 +466,7 @@ static int korina_poll(struct napi_struct *napi, int budget) | |||
467 | 466 | ||
468 | work_done = korina_rx(dev, budget); | 467 | work_done = korina_rx(dev, budget); |
469 | if (work_done < budget) { | 468 | if (work_done < budget) { |
470 | netif_rx_complete(dev, napi); | 469 | netif_rx_complete(napi); |
471 | 470 | ||
472 | writel(readl(&lp->rx_dma_regs->dmasm) & | 471 | writel(readl(&lp->rx_dma_regs->dmasm) & |
473 | ~(DMA_STAT_DONE | DMA_STAT_HALT | DMA_STAT_ERR), | 472 | ~(DMA_STAT_DONE | DMA_STAT_HALT | DMA_STAT_ERR), |