aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBjørn Mork <[email protected]>2013-01-28 23:51:28 +0000
committerDavid S. Miller <[email protected]>2013-01-30 17:35:44 -0500
commit70c37bf97f2a91accba76080db69144f3b69f736 (patch)
tree2c5b72a06bba90a0cfbf4b1ae93c4ba5d41278ef /tools/perf/scripts/python
parent6cdd20c380eb62eab757c5a6ccc90dac7ecd774b (diff)
net: usbnet: prevent buggy devices from killing us
A device sending 0 length frames as fast as it can has been observed killing the host system due to the resulting memory pressure. Temporarily disable RX skb allocation and URB submission when the current error ratio is high, preventing us from trying to allocate an infinite number of skbs. Reenable as soon as we are finished processing the done queue, allowing the device to continue working after short error bursts. Signed-off-by: Bjørn Mork <[email protected]> Acked-by: Oliver Neukum <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions