Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72733
b: refs/heads/master
c: 93dd79e
h: refs/heads/master
i:
  72731: 752f0e8
v: v3
  • Loading branch information
Stephen Hemminger authored and Francois Romieu committed Oct 28, 2007
1 parent ec079bb commit 3316562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 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: 7fab06c0ca89d99442a4baeddf417add585e2672
refs/heads/master: 93dd79e87bbc98ef02610d54fe72d4a1931ee15e
12 changes: 4 additions & 8 deletions trunk/drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -2991,13 +2991,16 @@ static void rtl8169_down(struct net_device *dev)
{
struct rtl8169_private *tp = netdev_priv(dev);
void __iomem *ioaddr = tp->mmio_addr;
unsigned int poll_locked = 0;
unsigned int intrmask;

rtl8169_delete_timer(dev);

netif_stop_queue(dev);

#ifdef CONFIG_R8169_NAPI
napi_disable(&tp->napi);
#endif

core_down:
spin_lock_irq(&tp->lock);

Expand All @@ -3011,13 +3014,6 @@ static void rtl8169_down(struct net_device *dev)

synchronize_irq(dev->irq);

if (!poll_locked) {
#ifdef CONFIG_R8169_NAPI
napi_disable(&tp->napi);
#endif
poll_locked++;
}

/* Give a racing hard_start_xmit a few cycles to complete. */
synchronize_sched(); /* FIXME: should this be synchronize_irq()? */

Expand Down

0 comments on commit 3316562

Please sign in to comment.