aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/fm10k/fm10k_pf.c
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-03 16:27:04 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-14 18:37:42 -0400
commitded8b20d5f236f5850f000b4da5f3b4bfa00262d (patch)
treeec79546c4755b34a93af0d166322bb132acc8961 /drivers/net/ethernet/intel/fm10k/fm10k_pf.c
parente05546ec05d854b540d9f39b32f40c3bda34f6cc (diff)
fm10k: Set PF queues to unlimited bandwidth during virtualization
When returning virtualization queues from the VF back to the PF, do not retain the VF rate limiter. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Todd Russell <todd.a.russell@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>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k/fm10k_pf.c')
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_pf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pf.c b/drivers/net/ethernet/intel/fm10k/fm10k_pf.c
index 159cd8463800..a92b58dd1c78 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_pf.c
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_pf.c
@@ -676,7 +676,8 @@ static s32 fm10k_iov_assign_resources_pf(struct fm10k_hw *hw, u16 num_vfs,
676 /* loop through unallocated rings assigning them back to PF */ 676 /* loop through unallocated rings assigning them back to PF */
677 for (i = FM10K_MAX_QUEUES_PF; i < vf_q_idx; i++) { 677 for (i = FM10K_MAX_QUEUES_PF; i < vf_q_idx; i++) {
678 fm10k_write_reg(hw, FM10K_TXDCTL(i), 0); 678 fm10k_write_reg(hw, FM10K_TXDCTL(i), 0);
679 fm10k_write_reg(hw, FM10K_TXQCTL(i), FM10K_TXQCTL_PF | vid); 679 fm10k_write_reg(hw, FM10K_TXQCTL(i), FM10K_TXQCTL_PF |
680 FM10K_TXQCTL_UNLIMITED_BW | vid);
680 fm10k_write_reg(hw, FM10K_RXQCTL(i), FM10K_RXQCTL_PF); 681 fm10k_write_reg(hw, FM10K_RXQCTL(i), FM10K_RXQCTL_PF);
681 } 682 }
682 683