netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] virtio_net: add ethtool get/set settings support
@ 2016-02-02 16:21 Nikolay Aleksandrov
  2016-02-02 16:21 ` [PATCH net-next v3 1/2] ethtool: add speed/duplex validation functions Nikolay Aleksandrov
  2016-02-02 16:21 ` [PATCH net-next v3 2/2] virtio_net: add ethtool support for set and get of settings Nikolay Aleksandrov
  0 siblings, 2 replies; 3+ messages in thread
From: Nikolay Aleksandrov @ 2016-02-02 16:21 UTC (permalink / raw)
  To: netdev; +Cc: mst, roopa, davem, Nikolay Aleksandrov

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

Hi,
Patch 1 adds ethtool speed/duplex validation functions which check if the
value is defined. Patch 2 adds support for ethtool (get|set)_settings and
uses the validation functions to check the user-supplied values.

v2: split in 2 patches to allow everyone to make use of the validation
functions and allow virtio_net devices to be half duplex
v3: added a check to return error if the user tries to change anything else
besides duplex/speed as per Michael's comment

Cheers,
 Nik


Nikolay Aleksandrov (2):
  ethtool: add speed/duplex validation functions
  virtio_net: add ethtool support for set and get of settings

 drivers/net/virtio_net.c     | 58 ++++++++++++++++++++++++++++++++++++++++++++
 include/uapi/linux/ethtool.h | 34 ++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

-- 
2.4.3

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

end of thread, other threads:[~2016-02-02 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 16:21 [PATCH net-next v3 0/2] virtio_net: add ethtool get/set settings support Nikolay Aleksandrov
2016-02-02 16:21 ` [PATCH net-next v3 1/2] ethtool: add speed/duplex validation functions Nikolay Aleksandrov
2016-02-02 16:21 ` [PATCH net-next v3 2/2] virtio_net: add ethtool support for set and get of settings Nikolay Aleksandrov

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).