diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-08-31 17:17:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-01 10:41:54 -0700 |
commit | da48e6c362d24d324f36a780d8566109e5f5a1d7 (patch) | |
tree | e135b5667ae6765abb3b6e4daaa06b0972a98b62 /drivers/net/qlcnic/qlcnic_hw.c | |
parent | 2cffcdbf7670980d4d74e2daea8a6cc0729902b8 (diff) |
qlcnic: fix mac addr read
o Mac addr was read from flash for every fw reset
for Non-priviledge function.It should be read only once.
o Remove unnecessary get_mac_addr callback
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_hw.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 5e6f4864df9..670a54a84ba 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c @@ -715,19 +715,6 @@ int qlcnic_change_mtu(struct net_device *netdev, int mtu) return rc; } -int qlcnic_get_mac_addr(struct qlcnic_adapter *adapter, u8 *mac) -{ - u32 crbaddr; - int pci_func = adapter->ahw.pci_func; - - crbaddr = CRB_MAC_BLOCK_START + - (4 * ((pci_func/2) * 3)) + (4 * (pci_func & 1)); - - qlcnic_fetch_mac(adapter, crbaddr, crbaddr+4, pci_func & 1, mac); - - return 0; -} - /* * Changes the CRB window to the specified window. */ |