ethtool: add speed/duplex validation functions
BugLink: http://bugs.launchpad.net/bugs/1581132
Add functions which check if the speed/duplex are defined.
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>
(cherry picked from commit
103a8ad1fa3b261c78dfc842cb315defe9d40be0)
Signed-off-by: Andy Gospodarek <gospo@cumulusnetworks.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>