From: Yevgeny Petrilin Date: Tue, 6 Mar 2012 04:03:34 +0000 (+0000) Subject: net/mlx4_en: Saving mem access on data path X-Git-Tag: v3.4-rc1~177^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf8c9aa032f03343b91c91951b0705021b02eb0;p=pandora-kernel.git net/mlx4_en: Saving mem access on data path Localized the pdev->dev, and using dma_map instead of pci_map There are multiple map/unmap operations on data path, optimizing those by saving redundant pointer access. Those places were identified as hot-spots when running kernel profiling during some benchmarks. The fixes had most impact when testing packet rate with small packets, reducing several % from CPU load, and in some case being the difference between reaching wire speed or being CPU bound. Signed-off-by: Yevgeny Petrilin Signed-off-by: David S. Miller --- Reading git-diff-tree failed