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 80404A057C for ; Thu, 26 Mar 2020 15:27:02 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4EA182BAE; Thu, 26 Mar 2020 15:27:01 +0100 (CET) Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by dpdk.org (Postfix) with ESMTP id F1E461AFF for ; Thu, 26 Mar 2020 15:26:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1455; q=dns/txt; s=iport; t=1585232819; x=1586442419; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Kxr0HvQpKIS2hccHXk3H94TA0xmPz1ZFqGtqc29yfdI=; b=hoZsQ26Mp4sc9fFVXILhImzkI3TWoTiTvFFvsimcy7/yvJjLiqr27Em3 x1xI6ES7feHlA7fZx7NB2VhvV9b1Zwyjnc2jFJvQl/zm7HJdbYhbB73Fh p7lClg4/bxGfw/VF2gVr4bYrfVQWIbvypZbMWoDB+z9odV04JXiIrRGwA c=; IronPort-PHdr: =?us-ascii?q?9a23=3Aai/T0xcu6kS+z8SABU500JDQlGMj4e+mNxMJ6p?= =?us-ascii?q?chl7NFe7ii+JKnJkHE+PFxlwKYD57D5adCjOzb++D7VGoM7IzJkUhKcYcEFn?= =?us-ascii?q?pnwd4TgxRmBceEDUPhK/u/ZSMzGsJPfFRk5Hq8d0NSHZW2ag=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CwCgCXunxe/5xdJa1mHQEBOAUFAQI?= =?us-ascii?q?JAYFTAoFSUAVsWCAECyoKh1UDimeCX5gegS6BJANUCgEBAQwBASMKAgQBAYR?= =?us-ascii?q?EAoIvJDQJDgIDAQELAQEFAQEBAgEFBG2FVgyFYwEBAQECARIVEwYBATcBBAs?= =?us-ascii?q?CAQg2EDIlAQEEDg0TB4MFgksDDiABAwuiWAKBOYhigXQzgn8BAQWBQ0GDGxi?= =?us-ascii?q?CDAMGgTgBjC4agUE/gRFHgh8uPoRNg0GCLLBZCoI8h1+PR4JMmROQYYdAkmU?= =?us-ascii?q?CBAIEBQIOAQEFgVI5PoEacBWCP2hQGA2OKReDUIpVdIEpjGwBgQ8BAQ?= X-IronPort-AV: E=Sophos;i="5.72,308,1580774400"; d="scan'208";a="749065447" Received: from rcdn-core-5.cisco.com ([173.37.93.156]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Mar 2020 14:26:57 +0000 Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by rcdn-core-5.cisco.com (8.15.2/8.15.2) with ESMTPS id 02QEQvni012175 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 26 Mar 2020 14:26:57 GMT Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Mar 2020 09:26:57 -0500 Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Mar 2020 09:26:57 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 26 Mar 2020 09:26:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LdO2FlfttE2uUqd9uYRpfQeRThHt/iCes0K506dRQia1UhVlTXnsbpmNQbF3nDelzJpTVVagBmJpHylJMwFo2qm/D7mzJUwDrBRaRBxgRydPwwK499k2F1XJYNd93sQf2S/xV/0J5wlnuka0XOh6gDZSS2S0jqK30B383v35Bbe+cLCGVZx3fg7RBSCwvCYlvyKQXmlDjEfIjUO9VdDBq+l3Piy+EuqLsm/DW2kVyzFf2g1iBPPBLGzl1l2W8snHr9rh7EsxYfJtiuH2O0b2eBnnsbUHuvzri9+p5wCC4ZicBwEIp0b4gSxp+cc3KtWpwPIaRc7YdtDDmyAXl5eqHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kxr0HvQpKIS2hccHXk3H94TA0xmPz1ZFqGtqc29yfdI=; b=lVWu8+ZxTSo+0c/n/IRCsD+IAeWM8GqyUZ/M9WMivTww78UaLOFhIIvAsEY6w/VT44q5A/h9NMyQ0nDMDZxoPgSMDwl5erY+bfQSv5JoMM5hsQ49Ab+0IUIiDKHPErSQeuLDcom3y0Bpxop/ngRGaXkkTrrfgF7wTOamTUez5ws0NY+RAMz6c1EeL2WTCbihmzNH9gv7GhB6wm9BRgzgxwZqQKnFLGzfw+0b2CLaHyD1dmlD3ujBxioh1g821Y/UDieKkVPbkYTV4zxRjAfxYoGqu/P6nqvTiQiEA3tUkytTs07D8bHZUJGpXzxRbo6FkLMH+P2tJPnJLaaCVhqN5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kxr0HvQpKIS2hccHXk3H94TA0xmPz1ZFqGtqc29yfdI=; b=wYqb7nV1s6CSJ7aED405PxpXeyjv5GClTiHbfwRaJmagAI83shwihUZEWVTbcwuv54vNaYBviwMmYrmZKqkgew9AWeQ033fv+atx+tDgjUhWv6ZqtSM/Z7W3lY6aKN/Sp/th0C0pIYs4e3UuIm0+ztt4YMTvE9m4TzFMAe8cy9Q= Received: from CH2PR11MB4327.namprd11.prod.outlook.com (2603:10b6:610:43::30) by CH2PR11MB4296.namprd11.prod.outlook.com (2603:10b6:610:3c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19; Thu, 26 Mar 2020 14:26:56 +0000 Received: from CH2PR11MB4327.namprd11.prod.outlook.com ([fe80::2d84:413f:5702:c519]) by CH2PR11MB4327.namprd11.prod.outlook.com ([fe80::2d84:413f:5702:c519%5]) with mapi id 15.20.2835.023; Thu, 26 Mar 2020 14:26:56 +0000 From: "Benoit Ganne (bganne)" To: Stephen Hemminger CC: "users@dpdk.org" Thread-Topic: [dpdk-users] CX4-Lx VF link status in Azure Thread-Index: AdYC1mshRkrwi7+yQ7SC7hJxVHlhAgAIQ0GAAB6bQgA= Date: Thu, 26 Mar 2020 14:26:56 +0000 Message-ID: References: <20200325154815.13fc7a4e@hermes.lan> In-Reply-To: <20200325154815.13fc7a4e@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=bganne@cisco.com; x-originating-ip: [92.154.90.183] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ab78304-84fe-40f8-d03b-08d7d191bccf x-ms-traffictypediagnostic: CH2PR11MB4296: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0354B4BED2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(39860400002)(346002)(376002)(396003)(6506007)(52536014)(9686003)(81156014)(81166006)(33656002)(66946007)(66446008)(66556008)(66476007)(64756008)(478600001)(8936002)(86362001)(55016002)(2906002)(966005)(7696005)(76116006)(4326008)(71200400001)(5660300002)(316002)(8676002)(186003)(26005)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:CH2PR11MB4296; H:CH2PR11MB4327.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AWu7tmES1G35MvmCMd97YIAtF3sr0ZFUNJjAVn6ioyf/3ffAlsI7cwFnvSBH8y7HmlJ1SY0cPyBWgxist/5vYrxeMhiKGPEFtvraNZ90H694CRWDSwQ5HpQdeUeag2URNH2dxIzBhuE6/ML4UTaPWDo4AF+17wNfT9GYpp9Ag3QHmNQUdtiEqFmkOZFW62+svnjSESNs9akEIY6fFlheS5XZQ3FaIGU7B2f4QFRO2djNsOaBVv+lHSHZHFlwUxUmLQBCejv9/PAxqbEpGbhLJlw417NDcclOWwUSYu2e/Ln6R7CslMKNh+zQ8y9CwNRjer0Hak7WdwhyB5jBGhmHH3qivwwZoHGb2MQ9lmmaYGKA/mYSoaz4W/aWrWOaT1szaHq0fp9CuC7WdEygAQjCIT0beRZjapqvZvNGh4MCanbkWmoCDsrecY1nke+4lgwOYfpIJK+6yBVUB+imhzbDTr7xfbo8yimJN3DJf1Ogv6l6ewyHBe1yZxEsRXXSRrChG9jaAUBO0fUnfr7tNevSTg== x-ms-exchange-antispam-messagedata: h8EaFPOv6EeduM5gsFe2nbVPbu1pTdjRQVD6END6XFtXkZjX4yFJ3zqphlMoG5My9iyy0aFe2EnUQWeTRpW3t4RXxtKiKuW1b6J6uMjPl0+ODH383LnpqXsH3Fd9/FruAzDXAyjKoumw7HVs+vVY+w== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6ab78304-84fe-40f8-d03b-08d7d191bccf X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2020 14:26:56.3014 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jgNvFZD7Pp1OA6POvAAsABogS3vxiUkp69wJ+jvCN/V+akVMRI+1BCmvD+9KrPXE7x+siVHWJ2zLNHB+SUSqzA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB4296 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com X-Outbound-Node: rcdn-core-5.cisco.com 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" Hi Stephen, > Is this with netvsc PMD or failsafe PMD? I am using failsafe PMD using the string "--vdev net_vdev_netvsc0,iface=3De= th1" etc. as mentioned here: https://docs.microsoft.com/en-us/azure/virtual= -network/setup-dpdk I checked with gdb what are the underlying devices and there is 1 mlx5 and = 1 tap instance as expected. To get the link state, the call stack is rte_eth_link_get_nowait() -> fs_li= nk_update() -> mlx5_link_update() -> mlx5_link_update_unlocked_gs() which l= ooks good to me. The link state update fails in mlx5_link_update_unlocked_gs() because the l= ink speed retrieved from the Linux kernel driver is '0' (unknown). Note tha= t ethtool and '/sys/class/net//speed' also fails to report the link = speed (but not the link status). At the end of the day, maybe the Linux kernel driver should report a link s= peed, however I think it should not prevent DPDK to update the link state (= up/down).=20 Just removing the offending test makes everything working again but I do no= t think it is the correct solution: I do not know why this test was added f= or. > You maybe missing this patch, which is only in current development branch= . > Since it is tagged for stable, it should end up in later LTS versions as > well 18.11.X and 19.11.X. I tried the patch but it did not solve the issue. I think it is expected as= I am using failsafe with tap and not netvsc, correct? Best ben