]> git.baikalelectronics.ru Git - kernel.git/commit
via-rhine: Fix bugs in NAPI support.
authorDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2013 03:58:04 +0000 (22:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2013 03:58:25 +0000 (22:58 -0500)
commitb5052a266eb82040237eb1b2f8caf45b2417ff3d
treea575a9c9014943a1cab0fc3dcb8a3d0f87202175
parent2d405238c2dfe14eac968219e1841b1e2376c7e7
via-rhine: Fix bugs in NAPI support.

1) rhine_tx() should use dev_kfree_skb() not dev_kfree_skb_irq()

2) rhine_slow_event_task's NAPI triggering logic is racey, it
   should just hit the interrupt mask register.  This is the
   same as commit 5c5c1ccbc331529680db40eab080fd058ef4af90
   ("r8169: avoid NAPI scheduling delay.") made to fix the same
   problem in the r8169 driver.  From Francois Romieu.

Reported-by: Jamie Gloudon <jamie.gloudon@gmail.com>
Tested-by: Jamie Gloudon <jamie.gloudon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/via/via-rhine.c