gve: Enable Link Speed Reporting in the driver.
authorDavid Awogbemila <awogbemila@google.com>
Fri, 11 Sep 2020 17:38:51 +0000 (10:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Sep 2020 21:31:54 +0000 (14:31 -0700)
commit7e074d5a76caffac4da8acdd65e0d1144a347e45
tree6d0e593a6395c2067631528fc0df729787584695
parent3b7cc73628ff7a545c3ae0762706d2039a1a6446
gve: Enable Link Speed Reporting in the driver.

This change allows the driver to report the device link speed
when the ethtool command:
ethtool <nic name>
is run.
Getting the link speed is done via a new admin queue command:
ReportLinkSpeed.

Reviewed-by: Yangchun Fu <yangchun@google.com>
Signed-off-by: David Awogbemila <awogbemila@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_adminq.c
drivers/net/ethernet/google/gve/gve_adminq.h
drivers/net/ethernet/google/gve/gve_ethtool.c