]> git.neil.brown.name Git - history.git/commit
[PATCH] r8169: IRQ races during change of mtu
authorFrançois Romieu <romieu@fr.zoreil.com>
Wed, 23 Feb 2005 13:19:19 +0000 (08:19 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 23 Feb 2005 13:19:19 +0000 (08:19 -0500)
commit35f2138b80dfad1d209c49cd49aa137f1a9f33e1
tree95d68ad2ac18db2d17ff1de9c33fd2ee715960e5
parentc2a201dd5bb3d7f175c2bf9ce26aeae2b171cd9e
[PATCH] r8169: IRQ races during change of mtu

IRQ races during change of mtu
- NAPI poll must be enabled prior to IRQ activation or the IRQ handler
  will not know what to do with an incoming packet;
- rtl8169_down() needs to try twice to sync with the IRQ handler when
  it is not issued under !netif_running() protection.

Both changes make it safe to request a change of mtu on a live device.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/r8169.c