From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9189E5A9B for ; Wed, 20 Jan 2016 07:15:01 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 19 Jan 2016 22:15:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,319,1449561600"; d="scan'208";a="636728846" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jan 2016 22:14:59 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u0K6EvVZ001301; Wed, 20 Jan 2016 14:14:57 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u0K6EsJQ013919; Wed, 20 Jan 2016 14:14:56 +0800 Received: (from hengdinx@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u0K6EslF013915; Wed, 20 Jan 2016 14:14:54 +0800 From: Ding Heng To: dts@dpdk.org Date: Wed, 20 Jan 2016 14:14:53 +0800 Message-Id: <1453270493-13884-1-git-send-email-hengx.ding@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Ding Heng Subject: [dts] [PATCH 2/2] fm10k_perf: optimize command and add some sample command for nic configuration. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2016 06:15:02 -0000 Signed-off-by: Ding Heng diff --git a/nics/fm10k.cfg b/nics/fm10k.cfg index 447badf..ad5e5e5 100644 --- a/nics/fm10k.cfg +++ b/nics/fm10k.cfg @@ -7,3 +7,9 @@ cmd = reg dbg set 0 CM_SHARED_WM 0x5f00 0 0, add mac 02:00:00:00:00:00 1 locked port 1, add mac 02:00:00:00:00:01 1 locked port 5, + set port config 20,22 tx_cut_through off, +# create vlan 51, +# add vlan port 51 1,5,20,22, +# set vlan tagging 51 1,5 tag, +# set port config 1 eth_mode 100GBase-SR4, +# set port config 5 eth_mode 100GBase-SR4, diff --git a/tests/TestSuite_fm10k_perf.py b/tests/TestSuite_fm10k_perf.py index e33f4bd..ffb259c 100644 --- a/tests/TestSuite_fm10k_perf.py +++ b/tests/TestSuite_fm10k_perf.py @@ -41,7 +41,7 @@ from test_case import TestCase from exception import VerifyFailure from settings import HEADER_SIZE from etgen import IxiaPacketGenerator -from utils import GREEN +from utils import * class TestFM10kL3fwd(TestCase, IxiaPacketGenerator): @@ -325,7 +325,7 @@ class TestFM10kL3fwd(TestCase, IxiaPacketGenerator): self.dut.get_memory_channels(), dts.create_mask(valports[:2])) if frame_size > 1518: - cmdline = cmdline + " --enable-jumbo --max-pkt-len %d" % frame_size + cmdline = cmdline + " --max-pkt-len %d" % frame_size dts.report(cmdline + "\n", frame=True, annex=True) out = self.dut.send_expect(cmdline, "L3FWD:", 120) @@ -359,7 +359,8 @@ class TestFM10kL3fwd(TestCase, IxiaPacketGenerator): print latencys for latency in latencys: - data_row = [frame_size, mode, cores, str(pps), str(pct), str(latency['max']), str(latency['min']), str(latency['average'])] + if latency['max'] > 0: + data_row = [frame_size, mode, cores, str(pps), str(pct), str(latency['max']), str(latency['min']), str(latency['average'])] dts.results_table_add_row(data_row) self.l3fwd_test_results['data'].append(data_row) @@ -431,7 +432,7 @@ class TestFM10kL3fwd(TestCase, IxiaPacketGenerator): self.dut.get_memory_channels(), dts.create_mask(valports[:2])) if frame_size > 1518: - cmdline = cmdline + " --enable-jumbo --max-pkt-len %d" % frame_size + cmdline = cmdline + " --max-pkt-len %d" % frame_size dts.report(cmdline + "\n", frame=True, annex=True) out = self.dut.send_expect(cmdline, "L3FWD:", 120) @@ -459,7 +460,7 @@ class TestFM10kL3fwd(TestCase, IxiaPacketGenerator): rx_pkts = human_read_number(rx_pkts) loss_pkts = human_read_number(loss_pkts) - data_row = [frame_size, mode, cores, str(tx_pkts)+"M", str(rx_pkts)+"M", loss_pkts, zero_loss_rate] + data_row = [frame_size, mode, cores, str(tx_pkts), str(rx_pkts), loss_pkts, zero_loss_rate] dts.results_table_add_row(data_row) self.l3fwd_test_results['data'].append(data_row) else: -- 1.9.3