]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Fix incorrect link-up report
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 1 Jan 2014 09:06:44 +0000 (11:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:09:48 +0000 (22:09 -0500)
commitc7819cb90c674756c139d8cc4104ae473999388d
tree7751ab2dbbc040d0216f9202313fea94bc1c360b
parentfd9c6b78edeedca96214ff8b8f4041ff762efbb1
bnx2x: Fix incorrect link-up report

Fix a problem where link is reported to be up when SFP+ module is plugged in
without cable. This occurs with specific module types which may generate
temporary TX_FAULT indication. Solution is to avoid changing any link parameters
when checking TX_FAULT indication while physical link is down.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c