aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@intel.com>2015-02-27 04:15:26 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-03-07 07:59:45 -0500
commit58ce51753faa5287106e87b942e9563156595a31 (patch)
tree9020fa947b057ddd916009a01fd319a7303507f5 /drivers/net/ethernet/intel/i40e
parent386a0afa709931e0037bb2e812df62230e8af370 (diff)
i40e: print port stats only on partition 1
Only print the port and veb stats if this is the first partition of a multiplexed port. Change-ID: I7ce0c323cdee5cfd2e54d8bea5b0b9102987e671 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index e045de133251..01c811c99ff7 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -1224,7 +1224,7 @@ static int i40e_get_sset_count(struct net_device *netdev, int sset)
1224 case ETH_SS_TEST: 1224 case ETH_SS_TEST:
1225 return I40E_TEST_LEN; 1225 return I40E_TEST_LEN;
1226 case ETH_SS_STATS: 1226 case ETH_SS_STATS:
1227 if (vsi == pf->vsi[pf->lan_vsi]) { 1227 if (vsi == pf->vsi[pf->lan_vsi] && pf->hw.partition_id == 1) {
1228 int len = I40E_PF_STATS_LEN(netdev); 1228 int len = I40E_PF_STATS_LEN(netdev);
1229 1229
1230 if (pf->lan_veb != I40E_NO_VEB) 1230 if (pf->lan_veb != I40E_NO_VEB)
@@ -1297,7 +1297,7 @@ static void i40e_get_ethtool_stats(struct net_device *netdev,
1297 i += 2; 1297 i += 2;
1298 } 1298 }
1299 rcu_read_unlock(); 1299 rcu_read_unlock();
1300 if (vsi != pf->vsi[pf->lan_vsi]) 1300 if (vsi != pf->vsi[pf->lan_vsi] || pf->hw.partition_id != 1)
1301 return; 1301 return;
1302 1302
1303 if (pf->lan_veb != I40E_NO_VEB) { 1303 if (pf->lan_veb != I40E_NO_VEB) {
@@ -1370,7 +1370,7 @@ static void i40e_get_strings(struct net_device *netdev, u32 stringset,
1370 snprintf(p, ETH_GSTRING_LEN, "rx-%u.rx_bytes", i); 1370 snprintf(p, ETH_GSTRING_LEN, "rx-%u.rx_bytes", i);
1371 p += ETH_GSTRING_LEN; 1371 p += ETH_GSTRING_LEN;
1372 } 1372 }
1373 if (vsi != pf->vsi[pf->lan_vsi]) 1373 if (vsi != pf->vsi[pf->lan_vsi] || pf->hw.partition_id != 1)
1374 return; 1374 return;
1375 1375
1376 if (pf->lan_veb != I40E_NO_VEB) { 1376 if (pf->lan_veb != I40E_NO_VEB) {