mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
be2net: variable name change
change occurances of stats_ioctl_sent to stats_cmd_sent Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4ee772144f
commit
b2aebe6d81
@ -298,7 +298,7 @@ struct be_adapter {
|
|||||||
u32 rx_fc; /* Rx flow control */
|
u32 rx_fc; /* Rx flow control */
|
||||||
u32 tx_fc; /* Tx flow control */
|
u32 tx_fc; /* Tx flow control */
|
||||||
bool ue_detected;
|
bool ue_detected;
|
||||||
bool stats_ioctl_sent;
|
bool stats_cmd_sent;
|
||||||
int link_speed;
|
int link_speed;
|
||||||
u8 port_type;
|
u8 port_type;
|
||||||
u8 transceiver;
|
u8 transceiver;
|
||||||
|
@ -81,7 +81,7 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
|
|||||||
be_dws_le_to_cpu(&resp->hw_stats,
|
be_dws_le_to_cpu(&resp->hw_stats,
|
||||||
sizeof(resp->hw_stats));
|
sizeof(resp->hw_stats));
|
||||||
netdev_stats_update(adapter);
|
netdev_stats_update(adapter);
|
||||||
adapter->stats_ioctl_sent = false;
|
adapter->stats_cmd_sent = false;
|
||||||
}
|
}
|
||||||
} else if ((compl_status != MCC_STATUS_NOT_SUPPORTED) &&
|
} else if ((compl_status != MCC_STATUS_NOT_SUPPORTED) &&
|
||||||
(compl->tag0 != OPCODE_COMMON_NTWK_MAC_QUERY)) {
|
(compl->tag0 != OPCODE_COMMON_NTWK_MAC_QUERY)) {
|
||||||
@ -1075,7 +1075,7 @@ int be_cmd_get_stats(struct be_adapter *adapter, struct be_dma_mem *nonemb_cmd)
|
|||||||
sge->len = cpu_to_le32(nonemb_cmd->size);
|
sge->len = cpu_to_le32(nonemb_cmd->size);
|
||||||
|
|
||||||
be_mcc_notify(adapter);
|
be_mcc_notify(adapter);
|
||||||
adapter->stats_ioctl_sent = true;
|
adapter->stats_cmd_sent = true;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
spin_unlock_bh(&adapter->mcc_lock);
|
spin_unlock_bh(&adapter->mcc_lock);
|
||||||
|
@ -1873,7 +1873,7 @@ static void be_worker(struct work_struct *work)
|
|||||||
goto reschedule;
|
goto reschedule;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!adapter->stats_ioctl_sent)
|
if (!adapter->stats_cmd_sent)
|
||||||
be_cmd_get_stats(adapter, &adapter->stats_cmd);
|
be_cmd_get_stats(adapter, &adapter->stats_cmd);
|
||||||
|
|
||||||
be_tx_rate_update(adapter);
|
be_tx_rate_update(adapter);
|
||||||
|
Loading…
Reference in New Issue
Block a user