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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys-ppc uml: remove user_util.h 2007-05-07 12:13:01 -07:00
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 [PATCH] fix indentation-related breakage in Kconfig.i386 2007-01-30 08:39:21 -08:00
Kconfig.net uml: add VDE networking support 2007-10-16 09:43:05 -07:00
Kconfig.x86_64 [PATCH] um: fix undefined reference to hweight32 2006-03-26 08:57:09 -08:00
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 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile-os-Linux Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile-ppc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile-skas [PATCH] uml makefiles sanitized 2005-09-29 08:46:26 -07:00
Makefile-tt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile-x86_64 minimal build fixes for uml (fallout from x86 merge) 2007-10-13 09:57:15 -07:00