diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-28 11:11:43 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-28 11:11:43 +0200 |
commit | 42274c193cc6f2562c1e1a31c4e47ade8bed97c4 (patch) | |
tree | 74dd40242875446ee54be72db2b24e40202aef12 /src | |
parent | 23532d37dd0f8e23ec59e36eb96dd766e65cb6b6 (diff) |
fix for up to 12 ports, fix error in case port_limit higher than number of interfaces
Diffstat (limited to 'src')
-rw-r--r-- | src/main_dpdk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 25c10e5d..c23e27d4 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -3225,8 +3225,8 @@ int CGlobalTRex::queues_prob_init(){ rte_exit(EXIT_FAILURE, "number of cores should be at least 3 \n"); } - if ( !( (m_max_ports == 4) || (m_max_ports == 2) || (m_max_ports == 8) || (m_max_ports == 6) ) ){ - rte_exit(EXIT_FAILURE, "supported number of ports are 2-8 you have %d \n",m_max_ports); + if ( !( (m_max_ports == 4) || (m_max_ports == 2) || (m_max_ports == 8) || (m_max_ports == 6) || (m_max_ports == 10) || (m_max_ports == 12) ) ){ + rte_exit(EXIT_FAILURE, "supported number of ports is 2-12, you have %d \n", m_max_ports); } assert((m_max_ports>>1) <= get_cores_tx() ); |