From: Eric Dumazet Date: Sun, 5 Oct 2014 09:35:13 +0000 (+0300) Subject: net/mlx4_en: Avoid a cache line miss in TX completion for single frag skb's X-Git-Tag: fixes-against-v3.18-rc2~144^2~30^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d03641cb4ea050f969dd3ab34113adb95287f36;p=pandora-kernel.git net/mlx4_en: Avoid a cache line miss in TX completion for single frag skb's Add frag0_dma/frag0_byte_count into mlx4_en_tx_info to avoid a cache line miss in TX completion for frames having one dma element. (We avoid reading back the tx descriptor) Note this could be extended to 2/3 dma elements later, as we have free room in mlx4_en_tx_info Also, mlx4_en_free_tx_desc() no longer accesses skb_shinfo(). We use a new nr_maps fields in mlx4_en_tx_info to avoid 2 or 3 cache misses. Signed-off-by: Eric Dumazet Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- Reading git-diff-tree failed