From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 81AE9A058B for ; Wed, 25 Mar 2020 22:32:33 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E4FB51C0CD; Wed, 25 Mar 2020 22:32:32 +0100 (CET) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 95F341C0CC for ; Wed, 25 Mar 2020 22:32:30 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id u12so1787238pgb.10 for ; Wed, 25 Mar 2020 14:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QdlyNO9KygJn6L07+6mFldSiMaHvnpVj0Sl3YFxP+AE=; b=ZCSXnH6LyFmjJh8LTCQl46UQ8Ei0yExLeC0ksexo+AMmEBH/1jGmCxUxcgkzWEnalS LjRH6TX9Bsp6vr88yFc77kq825gCg9RPHxGrwSFP+7jY5WwWf+I7kal3GreQAKcA0NCI wwvQO4n8uzjgIXTZSBPcxWgsnNQcseKlL+g5Nhy3E6svt6MT5WOaETxd32K6FEMtnpR8 jh/XhfsPHqIb1CSemjQkYhME0VdzY1r/Ix2KqB3ASuRBKJY9agWAo/6NFI53DBEEmjZy 9dnNHKJYfrSbT3OEEW1VXqovsAGVZSEe3XY0n9nHNyBtKfXddr+DADJgF5F0+9Z8G/xJ NojQ== 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=QdlyNO9KygJn6L07+6mFldSiMaHvnpVj0Sl3YFxP+AE=; b=IQzVCqYHFhd47WRaPUuSAMC/TRLEV3nK4MBq9f3xBh6Mi534sZ3JccGVVzACFCZNq1 YqeOzu/KyVcnkvTQRXpzCQSniUUEVz99AC+t6XwSh2FU+tRsAKpRL4RciNrPN6KM6uW/ /vJQQzpzqciHzzXzEmsxPfPa9DvTD+gjSNywakqL4eG+5WGMZmf6eCMgS0xOEk7WVji5 ngspPNA0NLPEqC6cI8XTQ5AtcfflDEDdhxreA7jzCZ7VcDZQRXE+/1U+g8Zw76E6PSbZ JzqziYw37e5UGRyPsrqDYCTk1PRr9pMagGAfi0xbgeWFW/tuSVtHTfpiBVZ5ufJjrkna CEvw== X-Gm-Message-State: ANhLgQ1Z1zVfn2bdNgA8ajlMn81jLhAaUoy3mHvJoa0t+K73Aa0icA2A joqR7VzYr51C9Qb3f8Wb15q2mg== X-Google-Smtp-Source: ADFU+vvY9YM9Hvqx/PAMcW2qePgTVTBhPERzHLPK6lU4Ueluud4bKRkpTiBKhpKIaH0/lv14AW5X0A== X-Received: by 2002:a63:2166:: with SMTP id s38mr4810265pgm.83.1585171949658; Wed, 25 Mar 2020 14:32:29 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id f45sm165050pjg.29.2020.03.25.14.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 14:32:29 -0700 (PDT) Date: Wed, 25 Mar 2020 14:32:20 -0700 From: Stephen Hemminger To: "Benoit Ganne (bganne)" Cc: "users@dpdk.org" Message-ID: <20200325143220.26221e6b@hermes.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] CX4-Lx VF link status in Azure 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: , Errors-To: users-bounces@dpdk.org Sender: "users" On Wed, 25 Mar 2020 19:07:09 +0000 "Benoit Ganne (bganne)" wrote: > Hi all, > > We noticed a problematic behavior when using DPDK in Azure with Mellanox CX4-Lx VFs on Ubuntu 18.04: the link status (link up or down) is never updated - and so for an application trusting the link state reported by DPDK, the link looks unavailable. > The root cause is mlx5_link_update_unlocked_gs() failing to get the link speed from the Linux driver and always returning EAGAIN because of this test at the end of the function: > > if (((dev_link.link_speed && !dev_link.link_status) || > (!dev_link.link_speed && dev_link.link_status))) > > Here, dev_link.link_status is correctly set but not dev_link.link_speed. > The Linux kernel driver does not seem to be able to get the link speed because ethtool also fails to retrieve it from the kernel so the DPDK cannot do any miracle here, but I wonder whether this should prevent to update the other link status information to be correctly updated. > > Any thoughts? > > Thx > ben Is this with netvsc PMD or failsafe PMD?