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)
commit0cf3ace9e7cb47e3173561a8fb2601a12d8f75d2
tree461c6b81ea51b25e40d6f7b51ff520e9e1f134f4
parente02564ee334a7ae46b71fc18576391cb9455433e
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