netxen: Notify firmware of Flex-10 interface down
authorSony Chacko <sony.chacko@qlogic.com>
Thu, 10 Mar 2011 23:50:02 +0000 (23:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 22:12:19 +0000 (15:12 -0700)
Notify firmware when a Flex-10 interface is brought down
so that virtual connect manager can display the correct link status.

Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_main.c

index 33fac32e0d9fd9dce1333b6f2ad7a7d4d615121a..83348dc4b184c5f8afbafc892b0c91dccd0dce13 100644 (file)
@@ -1032,6 +1032,9 @@ __netxen_nic_down(struct netxen_adapter *adapter, struct net_device *netdev)
        netif_carrier_off(netdev);
        netif_tx_disable(netdev);
 
+       if (adapter->capabilities & NX_FW_CAPABILITY_LINK_NOTIFICATION)
+               netxen_linkevent_request(adapter, 0);
+
        if (adapter->stop_port)
                adapter->stop_port(adapter);