]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: validate ethtool port setting and explain the user validation
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sun, 7 Feb 2016 20:52:24 +0000 (21:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 16:55:38 +0000 (11:55 -0500)
commit99fc8217ea2b4137d1881df47da0e608d5281aff
tree461c6b81ea51b25e40d6f7b51ff520e9e1f134f4
parent49e37ed445c3e014f213cb3c5245261d23b6babc
virtio_net: validate ethtool port setting and explain the user validation

We should validate the port setting that we got from the user and check
if it's what we've set it to (PORT_OTHER), also add explanation that
ignoring advertising is good as long as we don't have autonegotiation.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c