From: Alexander Duyck Date: Tue, 13 Nov 2012 04:03:24 +0000 (+0000) Subject: igb: Improve performance and reduce size of igb_tx_map X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~368 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d0759e5e714cb738c50d32edf3364b713453ff;p=pandora-kernel.git igb: Improve performance and reduce size of igb_tx_map This change is meant to both improve the performance and reduce the size of igb_tx_map. To do this I have expanded the work done in the main loop by pushing first into tx_buffer. This allows us to pull in the dma_mapping_error check, the tx_buffer value assignment, and the initial DMA value assignment to the Tx descriptor. The net result is that the function reduces in size by a little over a 100 bytes and is about 1% or 2% faster. Signed-off-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed