From: Haiyang Zhang Date: Tue, 27 Mar 2012 13:20:45 +0000 (+0000) Subject: net/hyperv: Add flow control based on hi/low watermark X-Git-Tag: v3.5-rc1~109^2~660 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33be96e47cc27f2f1a753a0707b02a73df8c8d46;p=pandora-kernel.git net/hyperv: Add flow control based on hi/low watermark In the existing code, we only stop queue when the ringbuffer is full, so the current packet has to be dropped or retried from upper layer. This patch stops the tx queue when available ringbuffer is below the low watermark. So the ringbuffer still has small amount of space available for the current packet. This will reduce the overhead of retries on sending. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- Reading git-diff-tree failed