From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58A58A2EEB for ; Wed, 11 Sep 2019 10:37:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3ED011BF87; Wed, 11 Sep 2019 10:37:27 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 40A142C08 for ; Wed, 11 Sep 2019 10:37:25 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2019 01:37:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="196825579" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.117.34]) by orsmga002.jf.intel.com with ESMTP; 11 Sep 2019 01:37:23 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Wed, 11 Sep 2019 08:29:41 +0800 Message-Id: <1568161781-19723-1-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] tests: fix device link down failed in pmd_bonded 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xinfeng Zhao --- tests/TestSuite_pmd_bonded.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/TestSuite_pmd_bonded.py b/tests/TestSuite_pmd_bonded.py index 9ae6d32..f0c39d8 100644 --- a/tests/TestSuite_pmd_bonded.py +++ b/tests/TestSuite_pmd_bonded.py @@ -806,6 +806,14 @@ UDP(sport=srcport, dport=destport)/Raw(load="\x50"*%s)], iface="%s", count=%d)' self.tester_bond = "bond0" + for port in self.dut_ports: + tester_port = self.tester.get_local_port(port) + intf = self.tester.get_interface(tester_port) + driver = self.tester.ports_info[tester_port]['port'].get_nic_driver() + if driver == "i40e": + self.tester.send_expect("ethtool --set-priv-flags %s link-down-on-close on" + % intf, "# ", 10) + def set_up(self): """ Run before each test case. -- 2.17.1