[Intel-wired-lan] [net-next 09/25] fm10k: use hw->mac.max_queues for stats

Singh, Krishneil K krishneil.k.singh at intel.com
Tue Apr 14 19:47:27 UTC 2015



-----Original Message-----
From: Kirsher, Jeffrey T 
Sent: Friday, April 3, 2015 2:03 PM
To: intel-wired-lan at lists.osuosl.org
Cc: Keller, Jacob E; Singh, Krishneil K
Subject: Re: [net-next 09/25] fm10k: use hw->mac.max_queues for stats

On Fri, 2015-04-03 at 13:26 -0700, Jeff Kirsher wrote:
> Even though it shouldn't strictly matter, don't count queue stats 
> higher than the max_queues value stored for this mac. This ensures 
> that we don't attempt to check queues which don't belong to use in 
> VFs. This shouldn't be a visible change, as the VFs should see zero 
> for queues which don't belong to them.
> 
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher at intel.com>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Acked-by: Matthew Vick <matthew.vick at intel.com>
> ---
>  drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 18
> +++++++++++-------
>  drivers/net/ethernet/intel/fm10k/fm10k_pci.c     |  2 +-
>  2 files changed, 12 insertions(+), 8 deletions(-)

I have applied to my queue.
--
git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git
dev-queue

Tested-by: Krishneil Singh <krishneil.k.singh at intel.com>



More information about the Intel-wired-lan mailing list