From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 42F661BBE for ; Wed, 8 Mar 2017 10:19:05 +0100 (CET) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2017 01:19:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,262,1486454400"; d="scan'208";a="74146223" Received: from stv-crb-08.sh.intel.com (HELO dpdk-test60.sh.intel.com) ([10.239.128.48]) by fmsmga006.fm.intel.com with ESMTP; 08 Mar 2017 01:19:03 -0800 From: Xueqin Lin To: dts@dpdk.org Cc: Xueqin Lin Date: Tue, 7 Mar 2017 22:15:15 -0500 Message-Id: <1488942915-8580-1-git-send-email-xueqin.lin@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dts] [PATCH v2] add crc-strip param to start 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: Wed, 08 Mar 2017 09:19:06 -0000 --- framework/pmd_output.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 13dcaef..1761595 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -31,6 +31,7 @@ import os import re +import settings from settings import TIMEOUT,PROTOCOL_PACKET_SIZE from utils import create_mask @@ -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,18 @@ class PmdOutput(): return self.command def start_testpmd(self, cores, param='', eal_param='', socket=0): + """ + add --crc-strip param to start i40evf driver testpmd in VM, which + fix bug introduced in commit "1bbcc5d2" as workaround. + """ + if "virt_dut" in self.NAME: + for (pci_bus, pci_id) in self.dut.pci_devices_info: + if pci_id != "8086:100e": + 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