From: Alexander Duyck Date: Fri, 20 Jul 2012 08:08:39 +0000 (+0000) Subject: ixgbe: Copybreak sooner to avoid get_page/put_page and offset change overhead X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~303^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3fe7aca03e14db107d649c5699a48bec054583;p=pandora-kernel.git ixgbe: Copybreak sooner to avoid get_page/put_page and offset change overhead This change makes it so that if only the first 256 bytes of a buffer are used we just copy the data out and leave the offset and page count unchanged. There are multiple advantages to this. First it allows us to reuse the page much more in the case of pages larger than 4K. It also allows us to avoid some expensive atomic operations in the form of get_page/put_page. In perf I have seen CPU utilization for put_page drop from 3.5% to 1.8% as a result of this patch when doing small packet routing, and packet rates increased by about 3%. Signed-off-by: Alexander Duyck Tested-by: Phil Schmitt Signed-off-by: Peter P Waskiewicz Jr --- Reading git-diff-tree failed