From: Eric Dumazet Date: Tue, 3 Jul 2012 20:55:21 +0000 (+0000) Subject: netem: add limitation to reordered packets X-Git-Tag: v3.5~24^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=960fb66e520a405dde39ff883f17ff2669c13d85;p=pandora-kernel.git netem: add limitation to reordered packets Fix two netem bugs : 1) When a frame was dropped by tfifo_enqueue(), drop counter was incremented twice. 2) When reordering is triggered, we enqueue a packet without checking queue limit. This can OOM pretty fast when this is repeated enough, since skbs are orphaned, no socket limit can help in this situation. Signed-off-by: Eric Dumazet Cc: Mark Gordon Cc: Andreas Terzis Cc: Yuchung Cheng Cc: Hagen Paul Pfeifer Signed-off-by: David S. Miller --- Reading git-diff-tree failed