diff options
author | Roopa Prabhu <roprabhu@cisco.com> | 2012-02-11 16:37:37 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-13 00:47:41 -0500 |
commit | 9f1de88ddd5eac43c14ed20835b4c738be61e162 (patch) | |
tree | fb7b6ea947fc05ddfc5135e1108003359b3694fa /drivers/net/ethernet/cisco | |
parent | ee556fe5fcc1c4f67fc854865f3108cf17714128 (diff) |
enic: Fix address deregistration for sriov vf during port profile disassociate
This patch fixes erroneous PF address deregistration in cases where
a port profile disassociate is called on an already disassociated interface.
Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
Signed-off-by: Christian Benvenuti <benve@cisco.com>
Signed-off-by: sujith sankar <ssujith@cisco.com>
Signed-off-by: ChingWei Chang <cwchang@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic.h | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_pp.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h index 54fd9c314b3..e65d431d437 100644 --- a/drivers/net/ethernet/cisco/enic/enic.h +++ b/drivers/net/ethernet/cisco/enic/enic.h | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #define DRV_NAME "enic" | 33 | #define DRV_NAME "enic" |
34 | #define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver" | 34 | #define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver" |
35 | #define DRV_VERSION "2.1.1.33" | 35 | #define DRV_VERSION "2.1.1.34" |
36 | #define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc" | 36 | #define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc" |
37 | 37 | ||
38 | #define ENIC_BARS_MAX 6 | 38 | #define ENIC_BARS_MAX 6 |
diff --git a/drivers/net/ethernet/cisco/enic/enic_pp.c b/drivers/net/ethernet/cisco/enic/enic_pp.c index 22bf03a1829..c758674643c 100644 --- a/drivers/net/ethernet/cisco/enic/enic_pp.c +++ b/drivers/net/ethernet/cisco/enic/enic_pp.c | |||
@@ -207,7 +207,7 @@ static int enic_pp_disassociate(struct enic *enic, int vf, | |||
207 | if (!is_zero_ether_addr(pp->mac_addr)) | 207 | if (!is_zero_ether_addr(pp->mac_addr)) |
208 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr, | 208 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr, |
209 | pp->mac_addr); | 209 | pp->mac_addr); |
210 | else if (!is_zero_ether_addr(netdev->dev_addr)) | 210 | else if (vf == PORT_SELF_VF && !is_zero_ether_addr(netdev->dev_addr)) |
211 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr, | 211 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_del_addr, |
212 | netdev->dev_addr); | 212 | netdev->dev_addr); |
213 | 213 | ||
@@ -294,7 +294,7 @@ static int enic_pp_associate(struct enic *enic, int vf, | |||
294 | if (!is_zero_ether_addr(pp->mac_addr)) | 294 | if (!is_zero_ether_addr(pp->mac_addr)) |
295 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr, | 295 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr, |
296 | pp->mac_addr); | 296 | pp->mac_addr); |
297 | else if (!is_zero_ether_addr(netdev->dev_addr)) | 297 | else if (vf == PORT_SELF_VF && !is_zero_ether_addr(netdev->dev_addr)) |
298 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr, | 298 | ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_add_addr, |
299 | netdev->dev_addr); | 299 | netdev->dev_addr); |
300 | 300 | ||