Patch "bnxt_en: Don't print "Link speed -1 no longer supported" messages." has been added to the 4.9-stable tree
This is a note to let you know that I've just added the patch titled
bnxt_en: Don't print "Link speed -1 no longer supported" messages.
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bnxt_en-don-t-print-link-speed-1-no-longer-supported-messages.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Sun Mar 18 16:55:33 CET 2018
From: Michael Chan <[email protected]>
Date: Wed, 6 Dec 2017 17:31:22 -0500
Subject: bnxt_en: Don't print "Link speed -1 no longer supported" messages.
From: Michael Chan <[email protected]>
[ Upstream commit a8168b6cee6e9334dfebb4b9108e8d73794f6088 ]
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.
--- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +7 -3
@@ -1498,12 +1498,16 @@ static int bnxt_async_event_process(struif (BNXT_VF (bp)) goto async_event_process_exit; -if (data1 &0x20000 ) { + +/* print unsupported speed warning in forced speed mode only */ +if (!(link_info->autoneg &BNXT_AUTONEG_SPEED ) && + (data1 &0x20000 )) {u16 fw_speed = link_info->force_link_speed;u32 speed =bnxt_fw_to_ethtool_speed (fw_speed); -netdev_warn (bp->dev,"Link speed %d no longer supported\n" , - speed); +if (speed !=SPEED_UNKNOWN ) +netdev_warn (bp->dev,"Link speed %d no longer supported\n" , + speed); }set_bit (BNXT_LINK_SPEED_CHNG_SP_EVENT , &bp->sp_event);/* fall thru */
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/bnxt_en-don-t-print-link-speed-1-no-longer-supported-messages.patch