Home
last modified time | relevance | path

Searched hist:"70 c37bf97f2a91accba76080db69144f3b69f736" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/usb/
H A Dusbnet.hdiff 70c37bf97f2a91accba76080db69144f3b69f736 Mon Jan 28 17:51:28 CST 2013 Bjørn Mork <bjorn@mork.no> 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 <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/drivers/net/usb/
H A Dusbnet.cdiff 70c37bf97f2a91accba76080db69144f3b69f736 Mon Jan 28 17:51:28 CST 2013 Bjørn Mork <bjorn@mork.no> 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 <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>