All of lore.kernel.org
 help / color / mirror / Atom feed
* virtio_net: ethtool supported link modes
@ 2017-08-31 17:04 Radu Rendec
  2017-09-01  3:36   ` Jason Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Radu Rendec @ 2017-08-31 17:04 UTC (permalink / raw)
  To: virtualization, netdev, linux-kernel; +Cc: Michael S. Tsirkin, Jason Wang

Hello,

Looking at the code in virtnet_set_link_ksettings, it seems the speed
and duplex can be set to any valid value. The driver will "remember"
them and report them back in virtnet_get_link_ksettings.

However, the supported link modes (link_modes.supported in struct
ethtool_link_ksettings) is always 0, indicating that no speed/duplex
setting is supported.

Does it make more sense to set (at least a few of) the supported link
modes, such as 10baseT_Half ... 10000baseT_Full?

I would expect to see consistency between what is reported in
link_modes.supported and what can actually be set. Could you please
share your opinion on this?

Thank you,
Radu Rendec

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-09-04 14:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-31 17:04 virtio_net: ethtool supported link modes Radu Rendec
2017-09-01  3:36 ` Jason Wang
2017-09-01  3:36   ` Jason Wang
2017-09-01 12:01   ` Radu Rendec
2017-09-01 12:01   ` Radu Rendec via Virtualization
2017-09-01 15:43 ` [virtio-dev] " Michael S. Tsirkin
2017-09-01 15:43   ` Michael S. Tsirkin
2017-09-01 16:19   ` Radu Rendec via Virtualization
2017-09-01 16:19   ` Radu Rendec
2017-09-01 17:45     ` [virtio-dev] " Michael S. Tsirkin
2017-09-01 17:45       ` Michael S. Tsirkin
2017-09-04 14:59       ` Radu Rendec via Virtualization
2017-09-04 14:59       ` Radu Rendec
2017-09-01 17:45     ` Michael S. Tsirkin
2017-09-01 15:43 ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.