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 5B331A058B for ; Wed, 25 Mar 2020 20:07:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 380E21C029; Wed, 25 Mar 2020 20:07:14 +0100 (CET) Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by dpdk.org (Postfix) with ESMTP id CF05D1C028 for ; Wed, 25 Mar 2020 20:07:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=971; q=dns/txt; s=iport; t=1585163232; x=1586372832; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=DmxY3dvknm9OWBCHpZBSJPlxEMdHMyL6cCCrHqyrubQ=; b=DdErZ5WxWM6pGtjkoluQvpuscw7Dmy1lLKuATbhoTy9RZcONJM/+xRyT 9HqXPGsyD9noKoYRNqAv1tCpYTA9/OmfqUqx5G2Ef2ZYQUfpkn/5EoWjO /45EgqEPp1ktVlpZTE3X8gK7mHk18ESDxGTcOdPblMGK0GJdLfATH15EI o=; IronPort-PHdr: =?us-ascii?q?9a23=3AKTCfnxeifNTE/Zpn4tTb+lKjlGMj4e+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?A0DEIgBHq3te/4YNJK1mHAEBATgBBAQ?= =?us-ascii?q?BAQIBBwEBgVMCgVIkLAWBRCAECyoKh1QDinROmi+BLoEkA1QKAQEBDAEBLQI?= =?us-ascii?q?EAQGERAKCKCQ1CA4CAwEBCwEBBQEBAQIBBQRthVYBC4V8KAYBATgRAT5CJgE?= =?us-ascii?q?EGxqFUAMuAQOjVwKBOYhigieCfwEBBYUuGIIMCYE4AYwuGoFBP4ERR4IfhTm?= =?us-ascii?q?DQYIssFkKgjyXJYJMmRKPEYFQmiQCBAIEBQIOAQEFgVQBNoFYcBWDJ1AYDZI?= =?us-ascii?q?QilV0gSmMbgGBDwEB?= X-IronPort-AV: E=Sophos;i="5.72,305,1580774400"; d="scan'208";a="742755180" Received: from alln-core-12.cisco.com ([173.36.13.134]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 25 Mar 2020 19:07:11 +0000 Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by alln-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 02PJ7B2J019707 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 25 Mar 2020 19:07:11 GMT Received: from xhs-aln-003.cisco.com (173.37.135.120) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 25 Mar 2020 14:07:10 -0500 Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 25 Mar 2020 14:07:10 -0500 Received: from NAM02-CY1-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; Wed, 25 Mar 2020 14:07:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c8u9P81DDYt7oDD/D7/F2X3yAkv/bvm0VqXrcFDvd1EzRAxF0PXZZMVezznz7nASyE5nxaBwJ9JwkViWGI2+LGEJHMQgIlh3dI/aNjRmoJfbGZMD99Rk1OKFQZKd/tlBlPZnkINYQ8j4NzQC1MlLJpq0A91QxZ6G8jI77gNWrxX6MKEkc4192LE7j+m/g6wcVXm9HDaM/UupMChU7zYDIysXYv2VbLKOBAGJtEkSHZez7rLz2VVVCpfU7eaPG1F9TWf/l9DHkYq1G8mFlinEkV3RHwov8B67MSt4B/58vwjCoIFeKjA7k9SgSdhtqtrjBc+gEap332eDEQuZPVZTFg== 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=GcXX2i7JDAeh3d0eKddI7SiWsryfhyNMPO+3WvVfR9c=; b=lFP91h8nRlXBq0EVJwOYKYP9gyrfOdOCy+2S380NVMCeYrhs/SBZic8PliJEg6Q/XNvtdaoJZaQZ2kcqNrAQy1E7WSutqw5favkSwJFxrw/oMMRQe+4gOnjhi3KN2+oi2qyC075kpmXm81M/n4MkvvQdubHT0jEIL3Ha4x31M6gQ6vmyrmZasDJzVeykrrxnIHD4vHNjwkiN7PQSo9Ut1R3OdbpQ2uYOC82/hrXCsk2M9d/riNR9ZygXe37I5S/xzGmlY0LtJ50vjw2OjBXJvdqhI9wMMCBvAM5b/Usc3awx6FNNipRpLJT1TZV+XYZ0vG8/SglySEGgDQY00uG/5g== 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=GcXX2i7JDAeh3d0eKddI7SiWsryfhyNMPO+3WvVfR9c=; b=ghzaNTmhGCWYa/ZPNEOLmqpJzdwsKLYy4UmyD0g1L8JWZckvn/T8rwersiV/CqJuFJfIP4KWqOd4+Yn2sbZain+msSYTKh25ydPCRQbX2RFUFVPmPwfZORZRjCtRs1LWTEh0afdxd/EUl0Z/SGGJNpwT8lcAN/YMzUqgPSK272Y= Received: from CH2PR11MB4327.namprd11.prod.outlook.com (2603:10b6:610:43::30) by CH2PR11MB4503.namprd11.prod.outlook.com (2603:10b6:610:46::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18; Wed, 25 Mar 2020 19:07:09 +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; Wed, 25 Mar 2020 19:07:09 +0000 From: "Benoit Ganne (bganne)" To: "users@dpdk.org" Thread-Topic: CX4-Lx VF link status in Azure Thread-Index: AdYC1mshRkrwi7+yQ7SC7hJxVHlhAg== Date: Wed, 25 Mar 2020 19:07:09 +0000 Message-ID: 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: 726cb718-b3b7-46c5-6c0c-08d7d0efb7aa x-ms-traffictypediagnostic: CH2PR11MB4503: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0353563E2B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(39860400002)(136003)(376002)(346002)(478600001)(7696005)(66476007)(4744005)(66556008)(64756008)(66446008)(66946007)(5660300002)(8676002)(76116006)(81156014)(81166006)(52536014)(6506007)(9686003)(55016002)(26005)(2906002)(316002)(186003)(6916009)(8936002)(71200400001)(33656002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CH2PR11MB4503; 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: 3VxYNylkLHinxFBykfmi5ULLizDVNJoJ7kCtru0V4a3iZlKo/vUGwhvGJ1BaRFasODsmCCxmILPWe11+KBYXZO9K7PAzXolaXAQh2f/5GnDnujfxItsdH3vq73Pa4CYTU16VX7tq/g9VhezlNBP6xGa8ljPHaYFSJ/7F2Lo9rk+SIRuEEJlsqMyKyTr3jRrXntB6ty5v14DzkBJWGxC4/69Y9v1rb3uHaC9LFHoKJycEa3IayGqRsE1XL5NxGL6vWIXxAFELShfMtDIsUfENs5m1oTP77wjjTuOP4QyQNnsteapmnxAXlwUUso+jV4lBaGmQswUxo8eE8x2dd4JzeMpWuSII75+RP8v+oTwXoKgfOQfS39mLKCUa4jKRbGDB8Mo/ukeTqCPywmBDC1wTOHBJ8nsWG+wFTG5stGzisGtxvcgsYcm+7qwAsVg2afjT x-ms-exchange-antispam-messagedata: x9O4EXdoCTqTACK6Ic43BrdK1iccSJZ/s1lbNqsZAoGYETE72cbAapj2eWhdlWb4n9Fqty69e8LbVlMxWG9kKc99YKI1Z6fLNWYuW7xyWJfLRwq2R1tDW6L/hK6FK8BbeEnHdatBsmfaz9YFldKkyQ== 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: 726cb718-b3b7-46c5-6c0c-08d7d0efb7aa X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2020 19:07:09.1945 (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: kHAxDGHP2N6jd87QHZrAz/GPPXkmDFShmIW7XbgfJYNw1pHqN+OJg7wQqYLsjRumvuQbIqO5UvSsyiCIDBxo2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB4503 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com X-Outbound-Node: alln-core-12.cisco.com Subject: [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 all, We noticed a problematic behavior when using DPDK in Azure with Mellanox CX= 4-Lx VFs on Ubuntu 18.04: the link status (link up or down) is never update= d - 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 sp= eed 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 beca= use 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 o= ther link status information to be correctly updated. Any thoughts? Thx ben