Re: Get MAC supported link modes for SFP port

2020-11-26 Thread Russell King - ARM Linux admin
On Thu, Nov 26, 2020 at 06:01:35PM +0200, Baruch Siach wrote: > Hi Andrew, > > On Thu, Nov 26 2020, Andrew Lunn wrote: > > On Thu, Nov 26, 2020 at 05:37:22PM +0200, Baruch Siach wrote: > >> I am trying to retrieve all MAC supported link modes > >> (ETHTOOL_LINK_MODE_*) for network interfaces with

Re: Get MAC supported link modes for SFP port

2020-11-26 Thread Baruch Siach
Hi Andrew, On Thu, Nov 26 2020, Andrew Lunn wrote: > On Thu, Nov 26, 2020 at 05:37:22PM +0200, Baruch Siach wrote: >> 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

Re: Get MAC supported link modes for SFP port

2020-11-26 Thread Andrew Lunn
On Thu, Nov 26, 2020 at 05:37:22PM +0200, Baruch Siach wrote: > 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 ma

Get MAC supported link modes for SFP port

2020-11-26 Thread Baruch Siach
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 pl

Re: Get MAC supported link modes for SFP port

2020-11-26 Thread Russell King - ARM Linux admin
On Thu, Nov 26, 2020 at 05:37:22PM +0200, Baruch Siach wrote: > 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 ma