bnx2x: Fix potential incorrect link speed provision
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 31 Oct 2012 05:46:55 +0000 (05:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 15:31:54 +0000 (11:31 -0400)
commit4978140c38958b15b3b95a49bda688723fa014eb
tree32630f26c70ebb0f370a3c91e4ae7cc47e9a29f3
parentcd1a26a3bbc797100c55594bac0546204ccb1107
bnx2x: Fix potential incorrect link speed provision

Fix possible incorrect link speed provision following rapid link speed change.
Clear link speed mask after each link change, and not only after link down.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Barak Witkowski <barak@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c