]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4d5090e2e82136b0fb7bdb96191302a49785b42
tree81ba4d3d9f3cef71b073903fab04eef72b93518b
parent150269645b7273b701d13e16d7b74548aef957d2
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