From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A3C3E108A for ; Tue, 7 Mar 2017 10:44:41 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2017 01:44:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,258,1484035200"; d="scan'208";a="72520507" Received: from stv-crb-08.sh.intel.com (HELO dpdk-test60.sh.intel.com) ([10.239.128.48]) by orsmga005.jf.intel.com with ESMTP; 07 Mar 2017 01:44:37 -0800 From: Xueqin Lin To: dts@dpdk.org Cc: Xueqin Lin Date: Mon, 6 Mar 2017 22:40:49 -0500 Message-Id: <1488858049-5412-1-git-send-email-xueqin.lin@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dts] [PATCH] add --crc-strip param when starting i40evf driver testpmd 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: Tue, 07 Mar 2017 09:44:42 -0000 --- framework/pmd_output.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 13dcaef..7585088 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -31,9 +31,10 @@ import os import re +import settings from settings import TIMEOUT,PROTOCOL_PACKET_SIZE from utils import create_mask - +from serializer import Serializer class PmdOutput(): @@ -43,6 +44,7 @@ class PmdOutput(): def __init__(self, dut): self.dut = dut + self.NAME = '%s' %dut self.dut.testpmd = self self.rx_pkts_prefix = "RX-packets:" self.rx_missed_prefix = "RX-missed:" @@ -100,6 +102,16 @@ class PmdOutput(): return self.command def start_testpmd(self, cores, param='', eal_param='', socket=0): + # add --crc-strip param to start testpmd for i40evf driver in VM + if "virt_dut" in self.NAME: + serializer = Serializer() + ports_info = serializer.load('dut_port_info') + for port in ports_info: + pci_id = port['type'] + driver = settings.get_nic_driver(pci_id) + if driver == "i40evf": + if "--crc-strip" not in param: + param += " --crc-strip" # in dpdk2.0 need used --txqflags param to open hardware features if "--txqflags" not in param: param += " --txqflags=0" -- 2.5.5