]> 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)
commit45f8ae92c1397f9f3da76340732a4c2d7a5ebfa5
treed27b2082305fe60cb06361073b097b525a98ab86
parent88520e9813f3966554b3588dd64a02b5dbc1b169
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