From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4AD12379B for ; Wed, 8 Mar 2017 10:57:17 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP; 08 Mar 2017 01:57:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,262,1486454400"; d="scan'208";a="941935498" Received: from stv-crb-08.sh.intel.com (HELO dpdk-test60.sh.intel.com) ([10.239.128.48]) by orsmga003.jf.intel.com with ESMTP; 08 Mar 2017 01:57:15 -0800 From: Xueqin Lin To: dts@dpdk.org Cc: Xueqin Lin Date: Tue, 7 Mar 2017 22:53:26 -0500 Message-Id: <1488945206-5349-1-git-send-email-xueqin.lin@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dts] [PATCH v3] 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: Wed, 08 Mar 2017 09:57:18 -0000 --- framework/pmd_output.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index 13dcaef..208b5af 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 @@ -100,6 +101,17 @@ class PmdOutput(): return self.command def start_testpmd(self, cores, param='', eal_param='', socket=0): + """ + add --crc-strip param when starting i40evf driver testpmd, which + fix bug introduced in commit "1bbcc5d2" as workaround. + """ + for (pci_bus, pci_id) in self.dut.pci_devices_info: + driver = settings.get_nic_driver(pci_id) + if driver == "i40evf": + if "--crc-strip" not in param: + param += " --crc-strip" + break + # in dpdk2.0 need used --txqflags param to open hardware features if "--txqflags" not in param: param += " --txqflags=0" -- 2.5.5