gve: Use link status register to report link status
authorPatricio Noyola <patricion@google.com>
Fri, 11 Sep 2020 17:38:50 +0000 (10:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Sep 2020 21:31:54 +0000 (14:31 -0700)
commit3b7cc73628ff7a545c3ae0762706d2039a1a6446
tree81ba4d3d9f3cef71b073903fab04eef72b93518b
parent5cdad90de62c27c6af53edb1b4b91712622b892b
gve: Use link status register to report link status

This makes the driver better aware of the connectivity status of the
device. Based on the device's status register, the driver can call
netif_carrier_{on,off}.

Reviewed-by: Yangchun Fu <yangchun@google.com>
Signed-off-by: Patricio Noyola <patricion@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_main.c