mempool/octeontx2: optimize for L1D cache architecture
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 31 Jan 2020 17:23:36 +0000 (22:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 Feb 2020 20:54:15 +0000 (21:54 +0100)
commit9ed8e95cc7400e31a5c9a7fcc7262f3ff1f3be33
tree76fd10b1ee13245c2db909f1dedf64b5a25f8d76
parent16f80fd11567442a20848494278002a866eb5773
mempool/octeontx2: optimize for L1D cache architecture

OCTEON TX2 has 8 sets, 41 ways L1D cache, VA<9:7> bits dictate
the set selection.
Add additional padding to ensure that the element size always
occupies odd number of cachelines to ensure even distribution
of elements among L1D cache sets.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
drivers/mempool/octeontx2/otx2_mempool_ops.c