enic: Flush driver cache of registered addr lists during port profile disassociate
authorRoopa Prabhu <roprabhu@cisco.com>
Wed, 23 Feb 2011 15:16:01 +0000 (15:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2011 20:42:18 +0000 (12:42 -0800)
During a port profile disassociate all address registrations for the interface
are blown away from the adapter. This patch resets the driver cache of
registered address lists to zero after a port profile disassociate.

Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: David Wang <dwang2@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enic/enic.h
drivers/net/enic/enic_main.c

index aee5256..e816bbb 100644 (file)
@@ -32,7 +32,7 @@
 
 #define DRV_NAME               "enic"
 #define DRV_DESCRIPTION                "Cisco VIC Ethernet NIC Driver"
-#define DRV_VERSION            "2.1.1.9"
+#define DRV_VERSION            "2.1.1.10"
 #define DRV_COPYRIGHT          "Copyright 2008-2011 Cisco Systems, Inc"
 
 #define ENIC_BARS_MAX          6
index 4f1710e..8b9cad5 100644 (file)
@@ -1126,6 +1126,8 @@ static int enic_set_port_profile(struct enic *enic, u8 *mac)
        if (err)
                return err;
 
+       enic_reset_addr_lists(enic);
+
        switch (enic->pp.request) {
 
        case PORT_REQUEST_ASSOCIATE: