From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id D76147CCC for ; Wed, 24 May 2017 15:26:50 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id j27so1159496wre.1 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=cxVWDOlzA864t2hbMxW0jD0Wx1PI05xeT2j9LFQGiDGnF5ruFT6zFjN0ghRE0CCRMM jPXe22SlV1n89NGSA5Be16ma33fSOYxbzso9iAgk4I9N41a5MpCylY57Sgy3DJVTn35G yT+PIl122qpSr1DAg77ElRHA7s94HAWYFoPFyo06CISe3acD2lA5iM2A4fe7CtUO3MGq bRGUGvNc0Na/7kte7TAU83UAh2HtuE93tG+JF7DyAj8wiPm8r3ok2X4Dg/HSSyl+Sv+W 8MQ6HiKlBj7mvq6K55wHDwY4SZtsOcXJRSreq0KRtwnBqdSEBUsTZ3b6kj2ajMR62gdD cFNA== X-Gm-Message-State: AODbwcDfsKCnkWiZz25d5w7V49KZTD2iPIiHcwc+dZtVggZIZyz3K3rC 3NWjSm29RDqeBl5Hgho= 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-users] [dpdk-dev] IXBGE VF: link state detection X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage 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