From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932548AbdJ0Uf1 convert rfc822-to-8bit (ORCPT ); Fri, 27 Oct 2017 16:35:27 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:30553 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbdJ0UfY (ORCPT ); Fri, 27 Oct 2017 16:35:24 -0400 MIME-Version: 1.0 Message-ID: <53352b34-d3eb-4698-a416-ca9465a4387e@default> Date: Fri, 27 Oct 2017 13:35:13 -0700 (PDT) From: Ghazale Hosseinabadi To: Cc: , , , , , , Subject: Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Content-Disposition: inline X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, ----- Original Message ----- From: hal@dev.mellanox.co.il To: parav@mellanox.com, tbogendoerfer@suse.de, matanb@mellanox.com, leonro@mellanox.com, dledford@redhat.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ghazale.hosseinabadi@oracle.com Sent: Friday, October 27, 2017 1:18:50 PM GMT -08:00 US/Canada Pacific Subject: Re: [PATCH] IB/mlx5: give back valid speed/width even without plugged in SFP module On 10/27/2017 2:32 PM, Parav Pandit wrote: > However I believe that ibstat tool should be enhanced to report unknown port speed instead of expecting drivers to supply some random number like this. ibstat gets the rate from libibumad via /sys/class/infiniband//ports//rate file which is supposed to be populated by the driver. Is there no rate file in this error case ? There is a rate file, but it is empty. Thanks, Ghazale -- Hal