From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56988C56202 for ; Thu, 26 Nov 2020 15:47:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CFBE21D40 for ; Thu, 26 Nov 2020 15:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391304AbgKZPrO (ORCPT ); Thu, 26 Nov 2020 10:47:14 -0500 Received: from guitar.tcltek.co.il ([192.115.133.116]:42704 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730602AbgKZPrO (ORCPT ); Thu, 26 Nov 2020 10:47:14 -0500 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Thu, 26 Nov 2020 10:47:13 EST Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id BAE7A440439; Thu, 26 Nov 2020 17:37:22 +0200 (IST) User-agent: mu4e 1.4.13; emacs 27.1 From: Baruch Siach To: netdev@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King Subject: Get MAC supported link modes for SFP port Date: Thu, 26 Nov 2020 17:37:22 +0200 Message-ID: <87pn40uo25.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi netdev list, I am trying to retrieve all MAC supported link modes (ETHTOOL_LINK_MODE_*) for network interfaces with SFP port. The 'supported' bit mask that ETHTOOL_GLINKSETTINGS provides in link_mode_masks[] changes to match the SFP module that happens to be plugged in. When no SFP module is plugged, the bit mask looks meaningless. I understand that ETHTOOL_LINK_MODE_* bits are meant to describe PHY level capabilities. So I would settle for a MAC level "supported rates" list. Is there anything like that? Thanks, baruch -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -