fm10k: Set PF queues to unlimited bandwidth during virtualization
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 20:27:04 +0000 (13:27 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 14 Apr 2015 22:37:42 +0000 (15:37 -0700)
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>
drivers/net/ethernet/intel/fm10k/fm10k_pf.c

index 159cd8463800bebfd584363013b77526bdb3161f..a92b58dd1c78f684e080444198babe5d7e916382 100644 (file)
@@ -676,7 +676,8 @@ static s32 fm10k_iov_assign_resources_pf(struct fm10k_hw *hw, u16 num_vfs,
        /* loop through unallocated rings assigning them back to PF */
        for (i = FM10K_MAX_QUEUES_PF; i < vf_q_idx; i++) {
                fm10k_write_reg(hw, FM10K_TXDCTL(i), 0);
-               fm10k_write_reg(hw, FM10K_TXQCTL(i), FM10K_TXQCTL_PF | vid);
+               fm10k_write_reg(hw, FM10K_TXQCTL(i), FM10K_TXQCTL_PF |
+                               FM10K_TXQCTL_UNLIMITED_BW | vid);
                fm10k_write_reg(hw, FM10K_RXQCTL(i), FM10K_RXQCTL_PF);
        }