From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 82CB62A58 for ; Tue, 14 Jul 2015 07:15:49 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 13 Jul 2015 22:15:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,469,1432623600"; d="scan'208";a="763935647" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 13 Jul 2015 22:15:48 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6E5FiqT031314; Tue, 14 Jul 2015 13:15:44 +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 t6E5FgWF013047; Tue, 14 Jul 2015 13:15:44 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6E5FgvM013043; Tue, 14 Jul 2015 13:15:42 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 14 Jul 2015 13:15:41 +0800 Message-Id: <1436850941-13011-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that after enable ipv6, ipv6 address still not appear on FVL 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, 14 Jul 2015 05:15:50 -0000 From: Marvin Liu With i40e driver version 1.2.38, sometimes need down and up the interface to make sure ipv6 address appear. Signed-off-by: Marvin Liu diff --git a/framework/dts.py b/framework/dts.py index 40a3c42..b9cd370 100644 --- a/framework/dts.py +++ b/framework/dts.py @@ -258,7 +258,7 @@ def dts_crbs_init(crbInst, skip_setup, read_cache, project, base_dir, nic, virtt def dts_crbs_exit(): """ - Remove logger handler when exit. + Call dut and tester exit function after execution finished """ dut.crb_exit() tester.crb_exit() diff --git a/framework/net_device.py b/framework/net_device.py index a2ccc30..6796269 100644 --- a/framework/net_device.py +++ b/framework/net_device.py @@ -367,6 +367,10 @@ class NetDevice(object): """ self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" % intf, "# ") + # FVL interface need down and up for re-enable ipv6 + if self.default_driver == 'i40e': + self.__send_expect("ifconfig %s down" % intf, "# ") + self.__send_expect("ifconfig %s up" % intf, "# ") def enable_ipv6_freebsd(self, intf): pass @@ -374,7 +378,7 @@ class NetDevice(object): @nic_has_driver def disable_ipv6(self): """ - Enable ipv6 address of specified pci device. + Disable ipv6 address of specified pci device. """ if self.current_driver != self.default_driver: return @@ -384,7 +388,7 @@ class NetDevice(object): def disable_ipv6_linux(self, intf): """ - Enable ipv6 address of specified pci device on linux. + Disable ipv6 address of specified pci device on linux. """ self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=1" % intf, "# ") -- 1.9.3