drivers/net: enic: Generate notification of hardware crash
authorNeel Patel <neepatel@cisco.com>
Fri, 16 Aug 2013 22:47:41 +0000 (15:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 20:41:01 +0000 (13:41 -0700)
This patch generates a hardware crash notification (NETDEV_REBOOT)
during reset. After a hardware crash, ENIC resets all its resources
including queue pair filters programmed by USNIC. USNIC registers for
this notification, and on receiving it, reprograms the queue pair
filters.

Signed-off-by: Neel Patel <neepatel@cisco.com>
Signed-off-by: Nishank Trivedi <nistrive@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c

index cacca29a7efcb23077fbe9cf59769d445150f256..be167318015a47aa63c09164293cc64f0939c387 100644 (file)
@@ -32,7 +32,7 @@
 
 #define DRV_NAME               "enic"
 #define DRV_DESCRIPTION                "Cisco VIC Ethernet NIC Driver"
-#define DRV_VERSION            "2.1.1.39"
+#define DRV_VERSION            "2.1.1.43"
 #define DRV_COPYRIGHT          "Copyright 2008-2013 Cisco Systems, Inc"
 
 #define ENIC_BARS_MAX          6
index 7f8891b36bf79bc706ac44bacfeeeb486bf0956a..bcf15b176f4147da05431b037354e2bfa9dc5734 100644 (file)
@@ -1743,6 +1743,7 @@ static void enic_reset(struct work_struct *work)
        enic_dev_set_ig_vlan_rewrite_mode(enic);
        enic_open(enic->netdev);
        spin_unlock(&enic->enic_api_lock);
+       call_netdevice_notifiers(NETDEV_REBOOT, enic->netdev);
 
        rtnl_unlock();
 }