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 aee5256e522b4a7ab78b2887a40341f96c132700..e816bbb9fbf9b28d995a06cd308f893f62b200e1 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 4f1710e31eb415ddc627408f5aebadd43a278592..8b9cad5e9712524df44f305cd43cbceadaba5ec8 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: