]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
be2net: Do not call get_die_temperature cmd for VF
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 6 Aug 2013 03:57:16 +0000 (09:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:39:05 +0000 (10:39 -0700)
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>
drivers/net/ethernet/emulex/benet/be_main.c

index 4c40e3e3fd0ac955e96597539db2a1ef5484f282..82597e5387f52dfa50f8494787535ce0c5cc638a 100644 (file)
@@ -4144,7 +4144,8 @@ static void be_worker(struct work_struct *work)
                        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);
 
        for_all_rx_queues(adapter, rxo, i) {