From: Jesper Dangaard Brouer Date: Mon, 28 Jan 2013 23:44:37 +0000 (+0000) Subject: net: cacheline adjust struct inet_frags for better frag performance X-Git-Tag: v3.9-rc1~139^2~232^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f8e1e8b767bdb8e471d4f49612b88c606f8811e;p=pandora-kernel.git net: cacheline adjust struct inet_frags for better frag performance The globally shared rwlock, of struct inet_frags, shares cacheline with the 'rnd' number, which is used by the hash calculations. Fix this, as this obviously is a bad idea, as unnecessary cache-misses will occur when accessing the 'rnd' number. Also small note that, moving function ptr (*match) up in struct, is to avoid it lands on the next cacheline (on 64-bit). Signed-off-by: Jesper Dangaard Brouer Signed-off-by: David S. Miller --- Reading git-diff-tree failed