Patchwork [net-next,2/7] be2net: Do not call get_die_temperature cmd for VF

login
register
mail settings
Submitter Sathya Perla
Date Aug. 6, 2013, 3:57 a.m.
Message ID <1375761441-22343-3-git-send-email-sathya.perla@emulex.com>
Download mbox | patch
Permalink /patch/264844/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sathya Perla - Aug. 6, 2013, 3:57 a.m.
From: Vasundhara Volam <vasundhara.volam@emulex.com>

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>
---
 drivers/net/ethernet/emulex/benet/be_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 3df1503..834f77b 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -4143,7 +4143,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) {