From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: IXBGE VF: link state detection Date: Wed, 24 May 2017 15:26:47 +0200 Message-ID: <20170524152647.3499551d@platinum> References: <8509342.3MbcxIPMKs@polaris> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, users@dpdk.org, Ferruh Yigit , wenzhuo.lu@intel.com, "Dai, Wei" To: Gregory Etelson Return-path: Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) by dpdk.org (Postfix) with ESMTP id DFA767CCE for ; Wed, 24 May 2017 15:26:50 +0200 (CEST) Received: by mail-wr0-f171.google.com with SMTP id l50so54857318wrc.3 for ; Wed, 24 May 2017 06:26:50 -0700 (PDT) In-Reply-To: <8509342.3MbcxIPMKs@polaris> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Gregory, On Wed, 24 May 2017 12:50:19 +0300, Gregory Etelson wrote: > Hello, > > In my tests DPDK-17.05.0 process queries link state with rte_eth_link_get() each 50 msec > during 5-20 MB/sec IOs flow. > I turn Ethernet switch port down and up and check IXGBE VF PMD reaction to link state changes. > VF PMD correctly recognize link down events but may miss link up. > When the fault occurs, subsequent calls to rte_eth_link_get will return link_status == 0 forever. > I need to reset DPDK process to get correct link state value. > My debugging shows that in case of the fault, mbx->ops.read(hw, &in_msg, 1, 0) in ixgbe_check_mac_link_vf > keeps returning non-zero value It looks there is at least one issue with commit c12d22f65b13 ("net/ixgbe: ensure link status is updated") Someone already complained about a problem related to the link status on ixgbe (which is probably different than yours): http://dpdk.org/ml/archives/dev/2017-May/066238.html Anyway, maybe you can try to revert this patch and see if it solves your issue? Thanks Olivier