summaryrefslogtreecommitdiffstats
path: root/src/main_dpdk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_dpdk.cpp')
-rwxr-xr-xsrc/main_dpdk.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp
index 7cbe7f2b..7c25b2e2 100755
--- a/src/main_dpdk.cpp
+++ b/src/main_dpdk.cpp
@@ -121,8 +121,6 @@ static inline int get_is_latency_thread_enable(){
}
struct port_cfg_t;
-//class CPhyEthIF;
-//class CPhyEthIFStats ;
class CTRexExtendedDriverBase {
public:
@@ -808,7 +806,10 @@ static int parse_options(int argc, char *argv[], CParserOption* po, bool first_t
break;
case OPT_LEARN_VERIFY :
- po->m_learn_mode = CParserOption::LEARN_MODE_IP_OPTION;
+ // must configure learn_mode for learn verify to work. If different learn mode will be given later, it will be set instead.
+ if (po->m_learn_mode == 0) {
+ po->m_learn_mode = CParserOption::LEARN_MODE_IP_OPTION;
+ }
po->preview.set_learn_and_verify_mode_enable(true);
break;