]> asedeno.scripts.mit.edu Git - linux.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)
commita02917663112b3569fd01dd90c2502802c5ed3cf
tree82d986dbe37d5767a2dd8df75a51187e307655a0
parentee1e75915f4ff00e125adf98c9684c57cae4a88f
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