diff options
author | Roopa Prabhu <roprabhu@cisco.com> | 2012-02-11 17:12:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-13 00:47:41 -0500 |
commit | 73c2ae763af0eaa1794dda68c63f97c2905722a8 (patch) | |
tree | 7d47354ab3ee8c4641097122a46a63f4ebb8601f /drivers | |
parent | 9f1de88ddd5eac43c14ed20835b4c738be61e162 (diff) |
enic: remove assignment of random mac on enic vf
This patch removes random mac assignment on vf's. The vf's will start with
a zero mac and with upcoming support in fw/driver, a vf mac can be set
via the pf. vf's also support ndo_set_mac_address. This decision was made
based on the fact that a random mac on a vf is not really needed. And this
will reduce some of the problems with the vf's getting a new mac on
every driver load/unload (one of them being udev renaming the device on ever
load/unload and reboot).
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')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic.h | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/cisco/enic/enic_main.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ethernet/cisco/enic/enic.h b/drivers/net/ethernet/cisco/enic/enic.h index e65d431d4378..f7c3067d4485 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.34" | 35 | #define DRV_VERSION "2.1.1.35" |
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_main.c b/drivers/net/ethernet/cisco/enic/enic_main.c index 2838891a94ee..dd7e24b9ffbb 100644 --- a/drivers/net/ethernet/cisco/enic/enic_main.c +++ b/drivers/net/ethernet/cisco/enic/enic_main.c | |||
@@ -2463,11 +2463,6 @@ static int __devinit enic_probe(struct pci_dev *pdev, | |||
2463 | enic->port_mtu = enic->config.mtu; | 2463 | enic->port_mtu = enic->config.mtu; |
2464 | (void)enic_change_mtu(netdev, enic->port_mtu); | 2464 | (void)enic_change_mtu(netdev, enic->port_mtu); |
2465 | 2465 | ||
2466 | #ifdef CONFIG_PCI_IOV | ||
2467 | if (enic_is_sriov_vf(enic) && is_zero_ether_addr(enic->mac_addr)) | ||
2468 | random_ether_addr(enic->mac_addr); | ||
2469 | #endif | ||
2470 | |||
2471 | err = enic_set_mac_addr(netdev, enic->mac_addr); | 2466 | err = enic_set_mac_addr(netdev, enic->mac_addr); |
2472 | if (err) { | 2467 | if (err) { |
2473 | dev_err(dev, "Invalid MAC address, aborting\n"); | 2468 | dev_err(dev, "Invalid MAC address, aborting\n"); |