Searched hist:c0e61781a8cb1c5d1b092a4d9776dbefe799444e (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_ethtool.c | diff c0e61781a8cb1c5d1b092a4d9776dbefe799444e Fri Apr 03 15:26:59 CDT 2015 Jeff Kirsher <jeffrey.t.kirsher@intel.com> fm10k: use hw->mac.max_queues for stats
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@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Acked-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
|
H A D | fm10k_pci.c | diff c0e61781a8cb1c5d1b092a4d9776dbefe799444e Fri Apr 03 15:26:59 CDT 2015 Jeff Kirsher <jeffrey.t.kirsher@intel.com> fm10k: use hw->mac.max_queues for stats
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@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Acked-by: Matthew Vick <matthew.vick@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
|