]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Stop polling when napi_disable() is pending.
authorDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2008 05:00:40 +0000 (21:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:30:13 +0000 (23:30 -0800)
commitcf1e6c1d57424c532b29fde62b1dd4d9d6b72e31
treec4ee0aa07a23fef95768056655cd30a437dd59e0
parent03c3edb657615b2664b44129ce4f2be8cf925e71
[NET]: Stop polling when napi_disable() is pending.

This finally adds the code in net_rx_action() to break out of the
->poll()'ing loop when a napi_disable() is found to be pending.

Now, even if a device is being flooded with packets it can be cleanly
brought down.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c