diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-04-10 17:23:07 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-04-10 17:23:07 +0300 |
commit | 392f47fb7956b108c36d45c37b52cb4b2c91091f (patch) | |
tree | fcd7cbd2e0601209438559591cd39d7dc90582bb /src/platform_cfg.h | |
parent | 3c9c5ad0310f30b77565a7a5b8532fd83313ae57 (diff) |
fix trex-197
Diffstat (limited to 'src/platform_cfg.h')
-rwxr-xr-x | src/platform_cfg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platform_cfg.h b/src/platform_cfg.h index 682f33e8..1b56aad2 100755 --- a/src/platform_cfg.h +++ b/src/platform_cfg.h @@ -29,7 +29,7 @@ limitations under the License. #include <string> -#define CONST_NB_MBUF_2_10G (16380/4) +#define CONST_NB_MBUF_2_10G (16380/2) typedef enum { MBUF_64 , // per dual port, per NUMA @@ -55,7 +55,7 @@ typedef enum { MBUF_64 , // per dual port, per NUMA MBUF_DP_FLOWS , MBUF_GLOBAL_FLOWS , - MBUF_SIZE + MBUF_ELM_SIZE } mbuf_sizes_t; const std::string * get_mbuf_names(void); @@ -157,7 +157,7 @@ public: CPlatformMemoryYamlInfo(){ reset(); } - uint32_t m_mbuf[MBUF_SIZE]; // relative to traffic norm to 2x10G ports + uint32_t m_mbuf[MBUF_ELM_SIZE]; // relative to traffic norm to 2x10G ports public: void Dump(FILE *fd); |