]> git.baikalelectronics.ru Git - kernel.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)
commita9d3a0c9985767a04fa56b28ded4fb22570fb8a1
treed27b2082305fe60cb06361073b097b525a98ab86
parent5bbc25e1b3ab7945bcb10bc2c4cd61b462baec10
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