1 # SPDX-License-Identifier: GPL-2.0-only
3 # Microchip VCAP API configuration
6 if NET_VENDOR_MICROCHIP
9 bool "VCAP (Versatile Content-Aware Processor) library"
11 Provides the basic VCAP functionality for multiple Microchip switchcores
13 A VCAP is essentially a TCAM with rules consisting of
15 - Programmable key fields
16 - Programmable action fields
17 - A counter (which may be only one bit wide)
19 Besides this each VCAP has:
22 - A keyset configuration per port per lookup
24 The VCAP implementation provides switchcore independent handling of rules
27 - Creating and deleting rules
28 - Updating and getting rules
30 The platform specific configuration as well as the platform specific model
31 of the VCAP instances are attached to the VCAP API and a client can then
32 access rules via the API in a platform independent way, with the
33 limitations that each VCAP has in terms of its supported keys and actions.
35 Different switchcores will have different VCAP instances with different
36 characteristics. Look in the datasheet for the VCAP specifications for the
39 config VCAP_KUNIT_TEST
40 bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS
42 depends on KUNIT=y && VCAP=y && y
44 default KUNIT_ALL_TESTS
46 This builds unit tests for the VCAP library.
48 For more information on KUnit and unit tests in general, please refer
49 to the KUnit documentation in Documentation/dev-tools/kunit/.
53 endif # NET_VENDOR_MICROCHIP