net/qede/base: optimize cache-line access
authorRasesh Mody <rasesh.mody@cavium.com>
Wed, 29 Mar 2017 20:36:29 +0000 (13:36 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:52 +0000 (19:02 +0200)
commit6a0f9f5c62e01b8f3e5641f4134a359b323a47c6
tree3133132d50aafd2aee7947f237be9fdb6f3f9de2
parent43ef668c18a59ad61af81bae91b527db07f8a750
net/qede/base: optimize cache-line access

Optimize cache-line access in ecore_chain -
re-arrange fields so that fields that are needed for fastpath
[mostly produce/consume and their derivatives] are in the first cache
line, and the rest are in the second.

This is true for both PBL and NEXT_PTR kind of chains.
Advancing a page in a SINGLE_PAGE chain would still require the 2nd
cacheline as well, but afaik only SPQ uses it and so it isn't
considered as 'fastpath'.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_chain.h
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_sp_commands.c