]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e30e5007256734622733483537139978a55ea6b
tree3c6bcfd005285f06f2397c655122d11679f5a211
parentd300ff6cdde705c6e54924406ed375b2e3ef3bea
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