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 91D75A057C for ; Thu, 26 Mar 2020 22:34:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E0971C0BC; Thu, 26 Mar 2020 22:33:48 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150050.outbound.protection.outlook.com [40.107.15.50]) by dpdk.org (Postfix) with ESMTP id 11877374C for ; Thu, 26 Mar 2020 21:10:08 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XamoIzxRotaMmI8CVFNqKVuU7ezDimHCJG83RxXotkRuB5TF39rzM5OfkbVjPtuuNhkMujdWMv9tzghq2CfXEpDxWjL39V+UAsg954hGp7IZDc58I4SEEhvYJdoZYV1pJSGJRARuRyDkL/R1Ceeut/qmxfOBuec1nimyANO5y50plWhNEQFz7tsZr+1Jv7CBLsBf+C2H5unNcn7SdtGy9ABWQ5CD0puaN1lsCZTG239gkb60QKJjA0K5O59UbpvxA0LZn+8l3A50wT2np9UFFZo1DeOGtDlSZFoYWUf3IPB8Vr+ko/6oxjYBAIpMIo2JHis5MPDfGm+oGonuoEfl/A== 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=ERKq9py7DqGnhj2DyG0lmQRB7YluZu6pGB9SptYyvoI=; b=TNEGrlyaivZmh5id5gykd2MlBEEA+vMs2zz59fWRhdo+kKPoWJzy6ZI/52s/bpcaWKYk/l89oTaKZIzTamN3hVrQLSTP2UiI8cBdN4Oe7xllZo0CXEdvOTMvdyJBzfpXzZ1rvIFybXbGQj69c9h+coQOuvs1v3hmWVa6Ct/yXKpr3NwseMHLaoRwi/7dpr9dF0JBxggAdl+lKc/cTFPzWOSH5q/V5CkbamtCX0+TvYigdzaSkYFFOk9oLmfi2lQhxnarruIFACI/q83kMCFuCfZltdEgghuvtAiAHH+7TZqHjdrIi9drpWpPvqkfIhDrY+mG5c1HjfHEj/Lef1p5lw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ERKq9py7DqGnhj2DyG0lmQRB7YluZu6pGB9SptYyvoI=; b=sIQxGDyO2Cyo92W6S5zLZLQbmQ7VWzvcO2+CI86Ia5JXkdpsCh7hA0WXL3xlIhyYqcZzqz5TAlVEbYga22D7V5yt5EniBt4m9RpfXekkWFRVN7ju0dnDcDonjqtVTpQiik49hi3NXdmL9G1UdpXhC+m/EON+Tc2JS5Mb6nhkPqk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=markb@mellanox.com; Received: from VI1PR05MB3342.eurprd05.prod.outlook.com (10.170.238.143) by VI1PR05MB5247.eurprd05.prod.outlook.com (20.178.11.138) 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 20:10:07 +0000 Received: from VI1PR05MB3342.eurprd05.prod.outlook.com ([fe80::4566:b84d:efdb:cb1a]) by VI1PR05MB3342.eurprd05.prod.outlook.com ([fe80::4566:b84d:efdb:cb1a%6]) with mapi id 15.20.2856.019; Thu, 26 Mar 2020 20:10:07 +0000 To: "Benoit Ganne (bganne)" , Thomas Monjalon Cc: Stephen Hemminger , "users@dpdk.org" , "viacheslavo@mellanox.com" , "matan@mellanox.com" , "rasland@mellanox.com" , "saeedm@mellanox.com" , "eranbe@mellanox.com" References: <20200326105753.5d1a7e05@hermes.lan> <9551713.0AQdONaE2F@xps> From: Mark Bloch Message-ID: <4c84d14c-e12f-298b-474b-0c1da812a6d2@mellanox.com> Date: Thu, 26 Mar 2020 13:09:57 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR02CA0016.namprd02.prod.outlook.com (2603:10b6:a02:ee::29) To VI1PR05MB3342.eurprd05.prod.outlook.com (2603:10a6:802:1d::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.33] (104.156.100.52) by BYAPR02CA0016.namprd02.prod.outlook.com (2603:10b6:a02:ee::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.21 via Frontend Transport; Thu, 26 Mar 2020 20:10:05 +0000 X-Originating-IP: [104.156.100.52] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 86fe0997-5f42-480e-88cc-08d7d1c1adb7 X-MS-TrafficTypeDiagnostic: VI1PR05MB5247:|VI1PR05MB5247: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-Forefront-PRVS: 0354B4BED2 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR05MB3342.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(86362001)(36756003)(6666004)(110136005)(5660300002)(4326008)(6486002)(107886003)(956004)(31696002)(53546011)(31686004)(16576012)(54906003)(2616005)(8936002)(2906002)(316002)(16526019)(8676002)(478600001)(81156014)(26005)(45080400002)(66946007)(966005)(66556008)(66476007)(52116002)(186003)(81166006); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KqD+b6lVa448u/0fz+KdBb9RaUGOJlNX3UZCAtgCVB8sO1U4HCUiPZslpXYD5ii4oof0eqx+VDq73CrOG3lF+WvXXeWzcDf9fD3EjnhjGl2QsQmkfD22IUzxJM/5qnhCrOBxqIdcbBZSaHTFfjEF/cj3YhM3H1xN4hjkJz0HnKJwxW5NU8RjFzgV2FHdBqAEIuL2nLQx0qsn5l5Upt2fIaZS31+ZcGar2nOykj4jYAB1+fH+4x9EZM6zh1Duw4WSSOVDOWrJRFJSnADYeNTQzD2oivgRl2y8amr01xOQu2jwhACo+0aEDBT4Fs3E8C9QWckRgWQmlNxePyP58uK9yDAFdCbTuGMEIaLQYE9AkDcoKUrClK3/KjjEkHJNLBRT4ZcmHdZED7P4Am3Az0j7O5jOTVu0JDS6rMGtRaz+Der8Rvinds+epDY72lpEEtL2f99r1+hyQlZJGNa5F/Uexbq7ZsCVX690eP8DZ5AgaLM3aq7DZPJ86YYeULLT0kNSXxgQgbDlE9cJCWfJ4sDQvw== X-MS-Exchange-AntiSpam-MessageData: LiwdZRXFYK2NIQ+ePlu3TXTIGBtNX8nr5QINUcQlPD8/5PucVUbPE0FZxuTpX/09jfMKxU7TAPCu/yZDEPd2fk1CCd6Q6x7uzoRnDLazZAh8Tyg8yrH+/epNwRRkYoxWlivPlLmYD2YY3Lgx+BWa2Q== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86fe0997-5f42-480e-88cc-08d7d1c1adb7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2020 20:10:07.1793 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jI2bU8DOhTlcNGDKTodU4zIXlK+SjIVpbm2ZgWtErlfYPJmV0geEyEG0/TKFNgyJjFzhAfnW2IU5L3ofBh4dbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5247 X-Mailman-Approved-At: Thu, 26 Mar 2020 22:33:47 +0100 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 3/26/2020 12:00, Benoit Ganne (bganne) wrote: >> Pasting back this important info: >> " >> Note that ethtool and '/sys/class/net//speed' also fails >> to report the link speed (but not the link status). >> " >> >> 26/03/2020 19:27, Benoit Ganne (bganne): >>> Yes everything is initialized correctly. The netdev itself is configured >> and usable from Linux (ping etc.). Just removing the over-strict check in >> mlx5 PMD is enough for everything to work fine: >> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.fd.io%2Fr%2Fc%2Fvpp%2F%2B%2F26152%2F1%2Fbuild%2Fexternal%2Fpatches%2Fdpdk_20.02%2F0&data=02%7C01%7Cmarkb%40mellanox.com%7Ccf7438ae7d924c03b03308d7d1b7fd83%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C637208460478847341&sdata=fV4wrAvzmHNM88mfCr6lxFXG0ANVOP0rBjfovZii84c%3D&reserved=0 >> 002-mlx5-azure-workaround.patch >>> The link speed is unknown but this is not issue, and link state and >> other link info are correctly reported. >>> Thomas, any input regarding this behavior in mlx5 PMD? >> >> I am not aware about the lack of link speed info. >> It is probably not specific to ConnectX-4 Lx. >> I guess it happens only with Hyper-V? Should be fixed by those 3 commits (last 1 one is just cosmetic): https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=dc392fc56f39a00a46d6db2d150571ccafe99734 https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=c268ca6087f553bfc0e16ffec412b983ffe32fd4 https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=2f5438ca0ee01a1b3a9c37e3f33d47c8122afe74 Mark > > For me there are 2 separate issues: > 1) Linux kernel driver does not report link speed in Azure for CX4-Lx in Ubuntu 18.04 > 2) mlx5 PMD enforce that both link speed is defined and link is up to update interface state > > If (1) is fixed, (2) should work, but to me (2) is too strict for no good reason: we do not really care about reported link speed, esp in a virtual environment it usually does not mean much, but we do care about link state. > > ben >