]> git.karo-electronics.de Git - mv-sheeva.git/commit
sfc: Reorder struct efx_nic to separate fields by volatility
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 6 Dec 2010 22:53:15 +0000 (22:53 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 6 Dec 2010 22:53:42 +0000 (22:53 +0000)
commitab28c12a8e6fea875b6757052e211772f62fa771
tree69f71631156cd9bc40b7c3ed20547fbe8e7fc458
parent289700dbc40c78741f17e2304ed4ac0db3c3afd3
sfc: Reorder struct efx_nic to separate fields by volatility

Place the regularly updated fields (locks, MAC stats, etc.) on a
separate cache-line from fields which are mostly constant.  This
should reduce cache misses for access to the latter on the data path.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/net_driver.h