From: Sony Chacko Date: Thu, 10 Mar 2011 23:50:02 +0000 (+0000) Subject: netxen: Notify firmware of Flex-10 interface down X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d478af0d6bb38c971d1172e99c5046025a9167c9;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git netxen: Notify firmware of Flex-10 interface down 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 Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller --- diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 33fac32e0d9..83348dc4b18 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c @@ -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);