From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JEJlQxb5esus8TkssJdiOklkfbhqB/y6pfSnps2EnDY=; b=X1xfTAPyiVtv1+7CHIDpL24KDac925FKKjQLJlnH0lDyyQx4Eo9ypcolpmMrVFeuDq vCVNI8vrONuNEwObJgFdSPEWB4Y5DP6kvv9CTxt0CKf1JbJxzE0jXsl5wZgQsVwkiItF YMRIdbTOKlcI3RRg2gL8RNE06+o09XUzQPZC5fK9aIV/MqrCpeXvnhmRFdCuGVEBVEf4 F07mhz7D7ScIxcG0efYQbuNOk9+k0/SONmAsA2g2wqf0DcdEsNX++V19RyLeNdtO8Yl2 4N+RfmO04UvtvLGR41h/NAE6EyIVCrh+aQjOlQgAekXWEKZO4Ute5VK2HYVGPPfiUbEe 0F1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JEJlQxb5esus8TkssJdiOklkfbhqB/y6pfSnps2EnDY=; b=mxTGJ55NqAywT6ysyoR3ve/vdfCaTcHKJXNbcziuXQK4iGI7jxmbv8mm814HGwgzdR 8z86eLzhytM3y5vX8/MMJLJHYs/98tWrx8OUErM3yvEbRWNwGAFEDivBg1GlBoqQJBzb 7PHxSDO46X3LdVxPE2VqhLP/AuIH0Ls2Eih58bxt5KlFVIsVk+k5Ecpnr85cN0f4XRn1 B1ZQ1OWP26mGd0isVpw0NT3V2DWayo1WmssLICZKJGo6LqHC2S9PmwNE72F+u+nf/VZB hwS4rf6nMdqpnjcs/B7gbyDZz8fLFGhOmR8LAK2I0Q4h3UoststD2flm+4plN6bniARY qIhw== X-Gm-Message-State: AODbwcAwCnoPwoTwy8+xmdHbD0/avkYMqaBVTyHhpLxvLVyy0JWzPr0x MDqehww6bJDlT2Tm X-Received: by 10.223.133.181 with SMTP id 50mr23928492wrt.4.1495632410537; Wed, 24 May 2017 06:26:50 -0700 (PDT) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id q29sm5549843wrc.42.2017.05.24.06.26.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2017 06:26:50 -0700 (PDT) Date: Wed, 24 May 2017 15:26:47 +0200 From: Olivier Matz To: Gregory Etelson Cc: dev@dpdk.org, users@dpdk.org, Ferruh Yigit , wenzhuo.lu@intel.com, "Dai, Wei" Message-ID: <20170524152647.3499551d@platinum> In-Reply-To: <8509342.3MbcxIPMKs@polaris> References: <8509342.3MbcxIPMKs@polaris> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] IXBGE VF: link state detection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2017 13:26:51 -0000 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