brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · 97f43fd Raw
54 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2#3# Microchip VCAP API configuration4#5 6if NET_VENDOR_MICROCHIP7 8config VCAP9	bool "VCAP (Versatile Content-Aware Processor) library"10	help11	  Provides the basic VCAP functionality for multiple Microchip switchcores12 13	  A VCAP is essentially a TCAM with rules consisting of14 15	    - Programmable key fields16	    - Programmable action fields17	    - A counter (which may be only one bit wide)18 19	  Besides this each VCAP has:20 21	    - A number of lookups22	    - A keyset configuration per port per lookup23 24	  The VCAP implementation provides switchcore independent handling of rules25	  and supports:26 27	    - Creating and deleting rules28	    - Updating and getting rules29 30	  The platform specific configuration as well as the platform specific model31	  of the VCAP instances are attached to the VCAP API and a client can then32	  access rules via the API in a platform independent way, with the33	  limitations that each VCAP has in terms of its supported keys and actions.34 35	  Different switchcores will have different VCAP instances with different36	  characteristics. Look in the datasheet for the VCAP specifications for the37	  specific switchcore.38 39config VCAP_KUNIT_TEST40	bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS41	depends on KUNIT42	depends on KUNIT=y && VCAP=y && y43	select DEBUG_FS44	default KUNIT_ALL_TESTS45	help46	  This builds unit tests for the VCAP library.47 48	  For more information on KUnit and unit tests in general, please refer49	  to the KUnit documentation in Documentation/dev-tools/kunit/.50 51	  If unsure, say N.52 53endif # NET_VENDOR_MICROCHIP54