qed: Fix link flap issue due to mismatching EEE capabilities.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Thu, 19 Jul 2018 05:50:02 +0000 (22:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 23:19:04 +0000 (16:19 -0700)
commit4ad95a93a702ec4f4fb5159b822797ba67b8cbbe
treef1cd7e10fbbd2952dcc1c70ca313429b04527896
parent64119e05f7b31e83e2555f6782e6cdc8f81c63f4
qed: Fix link flap issue due to mismatching EEE capabilities.

Apparently, MFW publishes EEE capabilities even for Fiber-boards that don't
support them, and later since qed internally sets adv_caps it would cause
link-flap avoidance (LFA) to fail when driver would initiate the link.
This in turn delays the link, causing traffic to fail.

Driver has been modified to not to ask MFW for any EEE config if EEE isn't
to be enabled.

Fixes: 645874e5 ("qed: Add support for Energy efficient ethernet.")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_mcp.c