]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:29:19 +0000 (12:29 -0700)
commitc6d8ae600c660c5b338285e56ecc30a431e646ce
treeba9275a02908f57802b03ffab41527595a6c51f4
parentedab58589642bdc4777f3b3b1b7141fc2fae82ad
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>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_mcp.c