]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Add option to disable dynamic entry caching in NDC
authorSunil Goutham <sgoutham@marvell.com>
Thu, 14 Nov 2019 05:26:32 +0000 (10:56 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:09:16 +0000 (18:09 -0800)
commit8d9ea3a9d0075ec261c4c6090b01a1f05b3e29f0
tree82d986dbe37d5767a2dd8df75a51187e307655a0
parente211d20dae42e4a6f464ebe1ac4e4d6ee29deb07
octeontx2-af: Add option to disable dynamic entry caching in NDC

A config option is added to disable caching of dynamic entries
like SQEs and stack pages. Also locks down all HW contexts in NDC,
preventing them from being evicted.

This option is useful when the queue count is large and there are
huge NDC cache misses. It's trade off between SQ context misses and
dynamically changing entries like SQE and stack page pointers.

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/Kconfig
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c