Skip to contentSkip to conversation

enic: Fix address deregistration for sriov vf during port profile disassociate

PATCH Applied Roopa Prabhu 2 participants 2 messages Feb 12, 2012 – Feb 13, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 enic: Fix address deregistration for sriov vf during port profile disassociate

From: Roopa Prabhu <[email protected]>

This patch fixes erroneous PF address deregistration in cases where a port profile disassociate is called on an already disassociated interface.

---
 drivers/net/ethernet/cisco/enic/enic.h    |    2 +-
 drivers/net/ethernet/cisco/enic/enic_pp.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/cisco/enic/enic.h +1 -1
index 54fd9c3..e65d431 100644
@@ -32,7 +32,7 @@
 
 #define DRV_NAME		"enic"
 #define DRV_DESCRIPTION		"Cisco VIC Ethernet NIC Driver"
-#define DRV_VERSION		"2.1.1.33"
+#define DRV_VERSION		"2.1.1.34"
 #define DRV_COPYRIGHT		"Copyright 2008-2011 Cisco Systems, Inc"
 
 #define ENIC_BARS_MAX		6
drivers/net/ethernet/cisco/enic/enic_pp.c +2 -2
index 22bf03a..c758674 100644
@@ -207,7 +207,7 @@ static int enic_pp_disassociate(struct enic *enic, int vf,
 	if (!is_zero_ether_addr(pp->mac_addr))
 		ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr,
 			pp->mac_addr);
-	else if (!is_zero_ether_addr(netdev->dev_addr))
+	else if (vf == PORT_SELF_VF && !is_zero_ether_addr(netdev->dev_addr))
 		ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr,
 			netdev->dev_addr);
 
@@ -294,7 +294,7 @@ static int enic_pp_associate(struct enic *enic, int vf,
 	if (!is_zero_ether_addr(pp->mac_addr))
 		ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr,
 			pp->mac_addr);
-	else if (!is_zero_ether_addr(netdev->dev_addr))
+	else if (vf == PORT_SELF_VF && !is_zero_ether_addr(netdev->dev_addr))
 		ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr,
 			netdev->dev_addr);
 
maintainer Applied
#1 lore raw

From: Roopa Prabhu <[email protected]>
Date: Sat, 11 Feb 2012 23:37:37 -0800

Quoted 9 lines

From: Roopa Prabhu <[email protected]>

This patch fixes erroneous PF address deregistration in cases where a port profile disassociate is called on an already disassociated interface.

Applied.