]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'netpoll-avoid-capture-effects-for-NAPI-drivers'
authorDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2018 04:55:26 +0000 (21:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2018 04:55:26 +0000 (21:55 -0700)
commit0786d6cf1e9aebf02ee91abaebe04a5df726ee09
tree45219d6edd985eda79fb0410017df520546c4ec1
parent85cbaee455e4050e62d75b41c96c28ed7e30498d
parent3d1b9fc860ba5397dc142b30652f42fbe6116f3e
Merge branch 'netpoll-avoid-capture-effects-for-NAPI-drivers'

Eric Dumazet says:

====================
netpoll: avoid capture effects for NAPI drivers

As diagnosed by Song Liu, ndo_poll_controller() can
be very dangerous on loaded hosts, since the cpu
calling ndo_poll_controller() might steal all NAPI
contexts (for all RX/TX queues of the NIC).

This capture, showing one ksoftirqd eating all cycles
can last for unlimited amount of time, since one
cpu is generally not able to drain all the queues under load.

It seems that all networking drivers that do use NAPI
for their TX completions, should not provide a ndo_poll_controller() :

Most NAPI drivers have netpoll support already handled
in core networking stack, since netpoll_poll_dev()
uses poll_napi(dev) to iterate through registered
NAPI contexts for a device.

This patch series take care of the first round, we will
handle other drivers in future rounds.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>