linux/arch/um
Jeff Dike 605c1e5769 uml: correctly handle skb allocation failures
Handle memory allocation failures when reading packets.

We have to read something from the host, even if we can't allocate any
memory.  If we don't, the host side of the device may fill up and stop
delivering interrupts because no new packets can be queued.

A single sk_buff is allocated whenever an MTU is seen which is larger
than any seen earlier.  This is used to read packets if there is a
memory allocation failure.

The large MTU check is done from eth_configure, which is called when a
interface is added to the system.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:08 -07:00
..
drivers uml: correctly handle skb allocation failures 2007-10-16 09:43:08 -07:00
include uml: network driver MTU cleanups 2007-10-16 09:43:08 -07:00
kernel uml: use *SEC_PER_*SEC constants 2007-10-16 09:43:08 -07:00
os-Linux uml: network driver MTU cleanups 2007-10-16 09:43:08 -07:00
scripts uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
sys-i386 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
sys-ia64
sys-ppc
sys-x86_64 uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
defconfig uml: tickless support 2007-10-16 09:43:08 -07:00
Kconfig uml: tickless support 2007-10-16 09:43:08 -07:00
Kconfig.char uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.debug uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Kconfig.i386
Kconfig.net uml: add VDE networking support 2007-10-16 09:43:05 -07:00
Kconfig.x86_64
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
Makefile-i386 uml: throw out CONFIG_MODE_TT 2007-10-16 09:43:05 -07:00
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-tt
Makefile-x86_64 minimal build fixes for uml (fallout from x86 merge) 2007-10-13 09:57:15 -07:00