From: David Daney Date: Mon, 15 Feb 2010 23:06:47 +0000 (-0800) Subject: Staging: Octeon: Free transmit SKBs in a timely manner X-Git-Tag: v2.6.34-rc1~269^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4898c560103fb8075c10a8e9d70e0ca26873075e;p=pandora-kernel.git Staging: Octeon: Free transmit SKBs in a timely manner If we wait for the once-per-second cleanup to free transmit SKBs, sockets with small transmit buffer sizes might spend most of their time blocked waiting for the cleanup. Normally we do a cleanup for each transmitted packet. We add a watchdog type timer so that we also schedule a timeout for 150uS after a packet is transmitted. The watchdog is reset for each transmitted packet, so for high packet rates, it never expires. At these high rates, the cleanups are done for each packet so the extra watchdog initiated cleanups are neither needed nor triggered. Signed-off-by: David Daney To: linux-mips@linux-mips.org To: netdev@vger.kernel.org To: gregkh@suse.de Cc: Eric Dumazet Patchwork: http://patchwork.linux-mips.org/patch/968/ Signed-off-by: Ralf Baechle This version has spelling and comment changes based on feedback from Eric Dumazet. --- Reading git-diff-tree failed