qed: Prevent MF link notifications
authorSudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Wed, 9 Mar 2016 07:16:23 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2016 20:20:19 +0000 (15:20 -0500)
commitfc916ff2027760900f3b373c388a2098253f3c2a
tree3c6bcfd005285f06f2397c655122d11679f5a211
parent627caa9d319d2402f3d41ebd8dd0fde9d41a33a7
qed: Prevent MF link notifications

When device is configured for Multi-function mode, some older management
firmware might incorrectly notify interfaces of link changes while they
haven't requested the physical link configuration to be set.
This can create bizzare race conditions where unloading interfaces are
getting notified that the link is up.

Let the driver compensate - store the logical requested state of the link
and don't propagate notifications after protocol driver explicitly
requires the link to be unset.

Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_mcp.c
This page took 0.03769 seconds and 5 git commands to generate.