]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/ibmvnic: Update carrier state after link state change
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 10 May 2019 04:13:44 +0000 (23:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 May 2019 22:12:09 +0000 (15:12 -0700)
commit0655f9943df2f2d71f406fd77b51d05548134fc2
treed27b2082305fe60cb06361073b097b525a98ab86
parent62740e97881c78b45a117a358a866fb32975def6
net/ibmvnic: Update carrier state after link state change

Only set the device carrier state to on after receiving an up link
state indication from the underlying adapter. Likewise, if a down
link indication is receieved, update the carrier state accordingly.
This fix ensures that accurate carrier state is reported by the driver
following a link state update by the underlying adapter.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c