minor fixes
authorIdo Barnea <[email protected]>
Mon, 31 Oct 2016 15:34:19 +0000 (17:34 +0200)
committerIdo Barnea <[email protected]>
Mon, 31 Oct 2016 15:34:19 +0000 (17:34 +0200)
Signed-off-by: Ido Barnea <[email protected]>
src/bp_sim.cpp
src/main_dpdk.cpp
src/trex_client_config.cpp

index db273b1..24959b7 100755 (executable)
@@ -4669,7 +4669,7 @@ void CFlowGenList::Dump(FILE *fd){
     int i;
     for (i=0; i<(int)m_cap_gen.size(); i++) {
         CFlowGeneratorRec * lp=m_cap_gen[i];
-        lp->Dump(stdout);
+        lp->Dump(fd);
     }
 }
 
index fbd5517..de0f232 100644 (file)
@@ -6218,8 +6218,10 @@ int CTRexExtendedDriverBase40G::verify_fw_ver(int port_id) {
     ret = rte_eth_get_fw_ver(port_id, &version);
 
     if (ret == 0) {
-        printf("port %d: FW ver %02d.%02d.%02d\n", port_id, ((version >> 12) & 0xf), ((version >> 4) & 0xff)
-               ,(version & 0xf));
+        if (CGlobalInfo::m_options.preview.getVMode() >= 1) {
+            printf("port %d: FW ver %02d.%02d.%02d\n", port_id, ((version >> 12) & 0xf), ((version >> 4) & 0xff)
+                   ,(version & 0xf));
+        }
 
         if ((((version >> 12) & 0xf) < 5)  || ((((version >> 12) & 0xf) == 5) && ((version >> 4 & 0xff) == 0)
                                                && ((version & 0xf) < 4))) {
index b56037e..ad71d38 100644 (file)
@@ -127,7 +127,7 @@ ClientCfgDB::parse_single_group(YAMLParserWrapper &parser, const YAML::Node &nod
 void 
 ClientCfgDB::parse_dir(YAMLParserWrapper &parser, const YAML::Node &node, ClientCfgDir &dir) {
     if (node.FindValue("src_mac")) {
-        dir.set_dst_mac_addr(parser.parse_mac_addr(node, "src_mac"));
+        dir.set_src_mac_addr(parser.parse_mac_addr(node, "src_mac"));
     }
     
     if (node.FindValue("dst_mac")) {