ibmvnic: Warn unknown speed message only when carrier is present
authorMurilo Fossa Vicentini <muvic@linux.ibm.com>
Mon, 16 Sep 2019 14:50:37 +0000 (11:50 -0300)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 20 Sep 2019 00:36:49 +0000 (17:36 -0700)
commitdd0f9d896d167ab37732dd83986adc3a017a13b4
treebbf70cd4002b727d56f2fc9164c9023a46bd0736
parentb47bea2b5c3bf17270defe8529774dad114bcee5
ibmvnic: Warn unknown speed message only when carrier is present

With commit 0655f9943df2 ("net/ibmvnic: Update carrier state after link
state change") we are now able to detect when the carrier is properly
present in the device, so only report an unexpected unknown speed when it
is properly detected. Unknown speed is expected to be seen by the device
in case the backing device has no link detected.

Reported-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Tested-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Signed-off-by: Murilo Fossa Vicentini <muvic@linux.ibm.com>
Reviewed-by: Thomas Falcon <tlfalcon@linux.ibm.com>
drivers/net/ethernet/ibm/ibmvnic.c