]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Don't print "Link speed -1 no longer supported" messages.
authorMichael Chan <michael.chan@broadcom.com>
Wed, 6 Dec 2017 22:31:22 +0000 (17:31 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 18:35:56 +0000 (13:35 -0500)
commit8de638a1e5a877a1717125f8e477a6e6da84d516
tree3d8172e789b2d0959a4c7b64c3baff63fdd4f944
parent4f6a41168bd8ae5189c2709d13d8ad119edf708f
bnxt_en: Don't print "Link speed -1 no longer supported" messages.

On some dual port NICs, the 2 ports have to be configured with compatible
link speeds.  Under some conditions, a port's configured speed may no
longer be supported.  The firmware will send a message to the driver
when this happens.

Improve this logic that prints out the warning by only printing it if
we can determine the link speed that is no longer supported.  If the
speed is unknown or it is in autoneg mode, skip the warning message.

Reported-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Tested-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c