be2net: Do not call get_die_temperature cmd for VF

This is a chip wide value and the PFs already report it.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Vasundhara Volam 2013-08-06 09:27:16 +05:30 committed by David S. Miller
parent b971f847cd
commit d696b5e26c
1 changed files with 2 additions and 1 deletions

View File

@ -4144,7 +4144,8 @@ static void be_worker(struct work_struct *work)
be_cmd_get_stats(adapter, &adapter->stats_cmd); be_cmd_get_stats(adapter, &adapter->stats_cmd);
} }
if (MODULO(adapter->work_counter, adapter->be_get_temp_freq) == 0) if (be_physfn(adapter) &&
MODULO(adapter->work_counter, adapter->be_get_temp_freq) == 0)
be_cmd_get_die_temperature(adapter); be_cmd_get_die_temperature(adapter);
for_all_rx_queues(adapter, rxo, i) { for_all_rx_queues(adapter, rxo, i) {