summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/octeontx2/Kconfig
diff options
context:
space:
mode:
authorSunil Goutham <sgoutham@marvell.com>2019-11-14 08:26:32 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-15 05:09:16 +0300
commita02917663112b3569fd01dd90c2502802c5ed3cf (patch)
tree82d986dbe37d5767a2dd8df75a51187e307655a0 /drivers/net/ethernet/marvell/octeontx2/Kconfig
parentee1e75915f4ff00e125adf98c9684c57cae4a88f (diff)
downloadlinux-a02917663112b3569fd01dd90c2502802c5ed3cf.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/Kconfig')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/Kconfig b/drivers/net/ethernet/marvell/octeontx2/Kconfig
index 711ada7139d3..fb34fbd62088 100644
--- a/drivers/net/ethernet/marvell/octeontx2/Kconfig
+++ b/drivers/net/ethernet/marvell/octeontx2/Kconfig
@@ -16,3 +16,12 @@ config OCTEONTX2_AF
Unit's admin function manager which manages all RVU HW resources
and provides a medium to other PF/VFs to configure HW. Should be
enabled for other RVU device drivers to work.
+
+config NDC_DIS_DYNAMIC_CACHING
+ bool "Disable caching of dynamic entries in NDC"
+ depends on OCTEONTX2_AF
+ default n
+ ---help---
+ This config option disables caching of dynamic entries such as NIX SQEs
+ , NPA stack pages etc in NDC. Also locks down NIX SQ/CQ/RQ/RSS and
+ NPA Aura/Pool contexts.