Advertisement
tomba2k

rte_config.h

Jun 11th, 2024
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.77 KB | None | 0 0
  1. /* SPDX-License-Identifier: BSD-3-Clause
  2.  * Copyright(c) 2017 Intel Corporation
  3.  */
  4.  
  5. /**
  6.  * @file Header file containing DPDK compilation parameters
  7.  *
  8.  * Header file containing DPDK compilation parameters. Also include the
  9.  * meson-generated header file containing the detected parameters that
  10.  * are variable across builds or build environments.
  11.  */
  12. #ifndef _RTE_CONFIG_H_
  13. #define _RTE_CONFIG_H_
  14.  
  15. #include <rte_build_config.h>
  16.  
  17. /* legacy defines */
  18. #ifdef RTE_EXEC_ENV_LINUX
  19. #define RTE_EXEC_ENV_LINUXAPP 1
  20. #endif
  21. #ifdef RTE_EXEC_ENV_FREEBSD
  22. #define RTE_EXEC_ENV_BSDAPP 1
  23. #endif
  24.  
  25. /* String that appears before the version number */
  26. #define RTE_VER_PREFIX "DPDK"
  27.  
  28. /****** library defines ********/
  29.  
  30. /* EAL defines */
  31. #define RTE_CACHE_GUARD_LINES 1
  32. #define RTE_MAX_HEAPS 32
  33. #define RTE_MAX_MEMSEG_LISTS 128
  34. #define RTE_MAX_MEMSEG_PER_LIST 8192
  35. #define RTE_MAX_MEM_MB_PER_LIST 32768
  36. #define RTE_MAX_MEMSEG_PER_TYPE 32768
  37. #define RTE_MAX_MEM_MB_PER_TYPE 65536
  38. #define RTE_MAX_TAILQ 32
  39. #define RTE_LOG_DP_LEVEL RTE_LOG_INFO
  40. #define RTE_MAX_VFIO_CONTAINERS 64
  41.  
  42. /* bsd module defines */
  43. #define RTE_CONTIGMEM_MAX_NUM_BUFS 64
  44. #define RTE_CONTIGMEM_DEFAULT_NUM_BUFS 1
  45. #define RTE_CONTIGMEM_DEFAULT_BUF_SIZE (512*1024*1024)
  46.  
  47. /* mempool defines */
  48. #define RTE_MEMPOOL_CACHE_MAX_SIZE 512
  49. /* RTE_LIBRTE_MEMPOOL_STATS is not set */
  50. /* RTE_LIBRTE_MEMPOOL_DEBUG is not set */
  51.  
  52. /* mbuf defines */
  53. #define RTE_MBUF_DEFAULT_MEMPOOL_OPS "ring_mp_mc"
  54. #define RTE_PKTMBUF_HEADROOM 128
  55.  
  56. /* ether defines */
  57. #define RTE_MAX_QUEUES_PER_PORT 1024
  58. #define RTE_ETHDEV_QUEUE_STAT_CNTRS 16 /* max 256 */
  59. #define RTE_ETHDEV_RXTX_CALLBACKS 1
  60. #define RTE_MAX_MULTI_HOST_CTRLS 4
  61.  
  62. /* cryptodev defines */
  63. #define RTE_CRYPTO_MAX_DEVS 64
  64. #define RTE_CRYPTODEV_NAME_LEN 64
  65. #define RTE_CRYPTO_CALLBACKS 1
  66.  
  67. /* compressdev defines */
  68. #define RTE_COMPRESS_MAX_DEVS 64
  69.  
  70. /* regexdev defines */
  71. #define RTE_MAX_REGEXDEV_DEVS 32
  72.  
  73. /* eventdev defines */
  74. #define RTE_EVENT_MAX_DEVS 16
  75. #define RTE_EVENT_MAX_PORTS_PER_DEV 255
  76. #define RTE_EVENT_MAX_QUEUES_PER_DEV 255
  77. #define RTE_EVENT_MAX_PROFILES_PER_PORT 8
  78. #define RTE_EVENT_TIMER_ADAPTER_NUM_MAX 32
  79. #define RTE_EVENT_ETH_INTR_RING_SIZE 1024
  80. #define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32
  81. #define RTE_EVENT_ETH_TX_ADAPTER_MAX_INSTANCE 32
  82. #define RTE_EVENT_DMA_ADAPTER_MAX_INSTANCE 32
  83.  
  84. /* rawdev defines */
  85. #define RTE_RAWDEV_MAX_DEVS 64
  86.  
  87. /* ip_fragmentation defines */
  88. #define RTE_LIBRTE_IP_FRAG_MAX_FRAG 8
  89. // RTE_LIBRTE_IP_FRAG_TBL_STAT is not set
  90.  
  91. /* rte_power defines */
  92. #define RTE_MAX_LCORE_FREQS 64
  93. #define RTE_MAX_UNCORE_FREQS 64
  94.  
  95. /* rte_graph defines */
  96. #define RTE_GRAPH_BURST_SIZE 256
  97. #define RTE_LIBRTE_GRAPH_STATS 1
  98.  
  99. /****** driver defines ********/
  100.  
  101. /* Packet prefetching in PMDs */
  102. #define RTE_PMD_PACKET_PREFETCH 1
  103.  
  104. /* QuickAssist device */
  105. /* Max. number of QuickAssist devices which can be attached */
  106. #define RTE_PMD_QAT_MAX_PCI_DEVICES 48
  107. #define RTE_PMD_QAT_COMP_SGL_MAX_SEGMENTS 16
  108. #define RTE_PMD_QAT_COMP_IM_BUFFER_SIZE 65536
  109.  
  110. /* virtio crypto defines */
  111. #define RTE_MAX_VIRTIO_CRYPTO 32
  112.  
  113. /* DPAA SEC max cryptodev devices*/
  114. #define RTE_LIBRTE_DPAA_MAX_CRYPTODEV   4
  115.  
  116. /* fm10k defines */
  117. #define RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE 1
  118.  
  119. /* hns3 defines */
  120. #define RTE_LIBRTE_HNS3_MAX_TQP_NUM_PER_PF 256
  121.  
  122. /* i40e defines */
  123. #define RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC 1
  124. // RTE_LIBRTE_I40E_16BYTE_RX_DESC is not set
  125. #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF 64
  126. #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF 4
  127. #define RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM 4
  128.  
  129. /* Ring net PMD settings */
  130. #define RTE_PMD_RING_MAX_RX_RINGS 16
  131. #define RTE_PMD_RING_MAX_TX_RINGS 16
  132.  
  133. /* QEDE PMD defines */
  134. #define RTE_LIBRTE_QEDE_FW ""
  135.  
  136. /* DLB2 defines */
  137. // RTE_LIBRTE_PMD_DLB2_QUELL_STATS is not set
  138.  
  139. #endif /* _RTE_CONFIG_H_ */
  140.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement