bnx2x: Prevent link flaps when booting from SAN.
authorBarak Witkowski <barak@broadcom.com>
Wed, 5 Dec 2012 23:04:03 +0000 (23:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2012 17:53:49 +0000 (12:53 -0500)
commitc63da990cd63153ce5203f96822638a7ef0f9bf7
treeff99d59bf8d08e978acc6aef42c0d684613689bc
parent6ded7cd605502eff7341bbd912ebc90c3674c764
bnx2x: Prevent link flaps when booting from SAN.

It is possible that the driver is configured to operate with a certain
link configuration which differs from the link's configuration during
boot from SAN - this would cause the driver to flap the link.

Said flap may be missed by specific switches, causing dcbx convergence
to be too long and boot sequence to fail. Convergence is longer because
switch ignores new dcbx packets due to counters mismatch, as only host
side reset the counters due to the link flap.

This patch causes the driver to ignore user's initial configuration during
boot from SAN, and continues with the existing link configuration.

Signed-off-by: Barak Witkowski <barak@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c