netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH, net-next, v3, 0/2] net/ethtool: Introduce link_ksettings API for virtual network devices
@ 2019-12-19 20:54 Cris Forno
  2019-12-19 20:54 ` [PATCH, net-next, v3, 1/2] ethtool: Factored out similar ethtool link settings for virtual devices to core Cris Forno
  2019-12-19 20:54 ` [PATCH, net-next, v3, 2/2] net: Enable virtual network devices to use ethtool's set/get link settings functions Cris Forno
  0 siblings, 2 replies; 11+ messages in thread
From: Cris Forno @ 2019-12-19 20:54 UTC (permalink / raw)
  To: netdev; +Cc: mst, jasowang, haiyangz, sthemmin, sashal, tlfalcon, Cris Forno

This series provides an API for drivers of virtual network devices that allows
users to alter initial device speed and duplex settings to reflect the actual
capabilities of underlying hardware. The changes made include two helper
functions ethtool_virtdev_get/set_link_ksettings, which are used to retrieve or
update alterable link settings, respectively. In addition, there is a new
ethtool operation defined to validate those settings provided by the user. This
operation can use either a generic validation function,
ethtool_virtdev_validate_cmd, or one defined by the driver. These changes
resolve code duplication for existing virtual network drivers that have already
implemented this behavior.  In the case of the ibmveth driver, this API is used
to provide this capability for the first time.

---
v3: Factored out duplicated code to core/ethtool to provide API to virtual
    drivers
    
v2: Updated default driver speed/duplex settings to avoid breaking existing
    setups
---

Cris Forno (2):
  net: Factored out similar ethtool link settings for virtual devices to
    core
  net: Enable virtual network devices to use ethtool's set/get link
    settings functions

 drivers/net/ethernet/ibm/ibmveth.c | 60 +++++++++++++++++++++-----------------
 drivers/net/ethernet/ibm/ibmveth.h |  3 ++
 drivers/net/hyperv/netvsc_drv.c    | 21 ++++---------
 drivers/net/virtio_net.c           | 45 ++++------------------------
 include/linux/ethtool.h            |  2 ++
 net/core/ethtool.c                 | 58 ++++++++++++++++++++++++++++++++++++
 6 files changed, 106 insertions(+), 83 deletions(-)

-- 
1.8.3.1


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

end of thread, other threads:[~2020-01-07 19:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-19 20:54 [PATCH, net-next, v3, 0/2] net/ethtool: Introduce link_ksettings API for virtual network devices Cris Forno
2019-12-19 20:54 ` [PATCH, net-next, v3, 1/2] ethtool: Factored out similar ethtool link settings for virtual devices to core Cris Forno
2019-12-20 10:18   ` Andrew Lunn
2019-12-20 10:23     ` Andrew Lunn
2019-12-20 10:38     ` Michal Kubecek
2019-12-22 21:19   ` Willem de Bruijn
2020-01-07 17:45     ` Cristobal Forno
2020-01-07 19:09       ` Willem de Bruijn
2020-01-07 17:55     ` Cristobal Forno
2019-12-19 20:54 ` [PATCH, net-next, v3, 2/2] net: Enable virtual network devices to use ethtool's set/get link settings functions Cris Forno
2019-12-22 21:26   ` Willem de Bruijn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).