Kconfig 1.6 KB

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