From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6AC697D0B for ; Fri, 25 Aug 2017 07:35:55 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Aug 2017 22:35:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,424,1498546800"; d="scan'208";a="1187985014" Received: from dpdk-test32.sh.intel.com (HELO [10.67.119.120]) ([10.67.119.120]) by fmsmga001.fm.intel.com with ESMTP; 24 Aug 2017 22:35:53 -0700 Message-ID: <59A031F0.5060609@intel.com> Date: Fri, 25 Aug 2017 22:19:28 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,gang" , dts@dpdk.org References: <1503557776-87872-1-git-send-email-gangx.xu@intel.com> <59A03044.7040501@intel.com> In-Reply-To: <59A03044.7040501@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1] fix enable ipv6 no work 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: Fri, 25 Aug 2017 05:35:55 -0000 Sorry gang, I remembered that Fortville driver need restart interface. Your patch is applied. Thanks, Marvin On 08/25/2017 10:12 PM, Liu, Yong wrote: > Gang, > Could you please give the OS type and kernel driver version? > As I known, there's no need to up interface after enable ipv6. > > Thanks. > Marvin > > On 08/24/2017 02:56 PM, xu,gang wrote: >> sometimes enable ipv6 no working, need restart interface >> >> Signed-off-by: xu,gang >> --- >> framework/crb.py | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> diff --git a/framework/crb.py b/framework/crb.py >> index 00f418d..facf319 100644 >> --- a/framework/crb.py >> +++ b/framework/crb.py >> @@ -412,6 +412,15 @@ class Crb(object): >> self.send_expect("sysctl >> net.ipv6.conf.%s.disable_ipv6=0" % >> intf, "# ", alt_session=True) >> + out = self.send_expect( >> + "ifconfig %s" % intf, "# ", alt_session=True) >> + if "inet6" not in out: >> + self.send_expect("ifconfig %s down" % >> + intf, "# ", alt_session=True) >> + self.send_expect( >> + "ifconfig %s up" % intf, "# ", alt_session=True) >> + >> + >> def create_file(self, contents, fileName): >> """ >> Create file with contents and copy it to CRB. >