Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1725155
| From | "Michael S. Tsirkin" <mst@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: virtio_net: ethtool supported link modes |
| Date | 2017-09-01 17:50 +0200 |
| Message-ID | <ukWmK-71s-7@gated-at.bofh.it> (permalink) |
| References | <ukB8C-8op-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 31, 2017 at 06:04:04PM +0100, Radu Rendec wrote: > 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 I would like to know more about why this is desirable. We used not to support the modes at all, but it turned out some tools are confused by this: e.g. people would try to bond virtio with a hardware device, tools would see a mismatch in speed and features between bonded devices and get confused. See commit 16032be56c1f66770da15cb94f0eb366c37aff6e Author: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Date: Wed Feb 3 04:04:37 2016 +0100 virtio_net: add ethtool support for set and get of settings as well as the discussion around it https://www.spinics.net/lists/netdev/msg362111.html If you think we need to add more hacks like this, a stronger motivation than "to see consistency" would be needed. -- MST
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
virtio_net: ethtool supported link modes Radu Rendec <rrendec@arista.com> - 2017-08-31 19:10 +0200
Re: virtio_net: ethtool supported link modes Jason Wang <jasowang@redhat.com> - 2017-09-01 05:40 +0200
Re: virtio_net: ethtool supported link modes Radu Rendec <rrendec@arista.com> - 2017-09-01 14:10 +0200
Re: virtio_net: ethtool supported link modes "Michael S. Tsirkin" <mst@redhat.com> - 2017-09-01 17:50 +0200
Re: virtio_net: ethtool supported link modes Radu Rendec <rrendec@arista.com> - 2017-09-01 18:30 +0200
Re: virtio_net: ethtool supported link modes "Michael S. Tsirkin" <mst@redhat.com> - 2017-09-01 19:50 +0200
Re: virtio_net: ethtool supported link modes Radu Rendec <rrendec@arista.com> - 2017-09-04 17:00 +0200
csiph-web