diff options
author | Rajesh Borundia <rajesh.borundia@qlogic.com> | 2010-08-31 13:17:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-01 13:41:54 -0400 |
commit | da48e6c362d24d324f36a780d8566109e5f5a1d7 (patch) | |
tree | e135b5667ae6765abb3b6e4daaa06b0972a98b62 /drivers/net/qlcnic/qlcnic.h | |
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.h')
-rw-r--r-- | drivers/net/qlcnic/qlcnic.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h index 74eff18fc1ec..220370fac726 100644 --- a/drivers/net/qlcnic/qlcnic.h +++ b/drivers/net/qlcnic/qlcnic.h | |||
@@ -1259,7 +1259,6 @@ int qlcnic_config_bridged_mode(struct qlcnic_adapter *adapter, u32 enable); | |||
1259 | int qlcnic_send_lro_cleanup(struct qlcnic_adapter *adapter); | 1259 | int qlcnic_send_lro_cleanup(struct qlcnic_adapter *adapter); |
1260 | void qlcnic_update_cmd_producer(struct qlcnic_adapter *adapter, | 1260 | void qlcnic_update_cmd_producer(struct qlcnic_adapter *adapter, |
1261 | struct qlcnic_host_tx_ring *tx_ring); | 1261 | struct qlcnic_host_tx_ring *tx_ring); |
1262 | int qlcnic_get_mac_addr(struct qlcnic_adapter *adapter, u8 *mac); | ||
1263 | void qlcnic_clear_ilb_mode(struct qlcnic_adapter *adapter); | 1262 | void qlcnic_clear_ilb_mode(struct qlcnic_adapter *adapter); |
1264 | int qlcnic_set_ilb_mode(struct qlcnic_adapter *adapter); | 1263 | int qlcnic_set_ilb_mode(struct qlcnic_adapter *adapter); |
1265 | void qlcnic_fetch_mac(struct qlcnic_adapter *, u32, u32, u8, u8 *); | 1264 | void qlcnic_fetch_mac(struct qlcnic_adapter *, u32, u32, u8, u8 *); |
@@ -1346,7 +1345,6 @@ static inline u32 qlcnic_tx_avail(struct qlcnic_host_tx_ring *tx_ring) | |||
1346 | extern const struct ethtool_ops qlcnic_ethtool_ops; | 1345 | extern const struct ethtool_ops qlcnic_ethtool_ops; |
1347 | 1346 | ||
1348 | struct qlcnic_nic_template { | 1347 | struct qlcnic_nic_template { |
1349 | int (*get_mac_addr) (struct qlcnic_adapter *, u8*); | ||
1350 | int (*config_bridged_mode) (struct qlcnic_adapter *, u32); | 1348 | int (*config_bridged_mode) (struct qlcnic_adapter *, u32); |
1351 | int (*config_led) (struct qlcnic_adapter *, u32, u32); | 1349 | int (*config_led) (struct qlcnic_adapter *, u32, u32); |
1352 | int (*start_firmware) (struct qlcnic_adapter *); | 1350 | int (*start_firmware) (struct qlcnic_adapter *); |