Skip to content

Commit

Permalink
i40e: Fix NPAR Tx Scheduler init
Browse files Browse the repository at this point in the history
Recent changes to the driver initialization have caused the BW
configurations to not take effect.  We use a BW configuration read and
write back to "kick" the Tx scheduler into action.

Change-ID: I94ab377c58d3a3986e3de62b6c199be3fd2ee5e6
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Greg Rose authored and Jeff Kirsher committed Mar 5, 2015
1 parent 66d0675 commit c668a12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/ethernet/intel/i40e/i40e_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7576,6 +7576,10 @@ static int i40e_sw_init(struct i40e_pf *pf)

mutex_init(&pf->switch_mutex);

/* If NPAR is enabled nudge the Tx scheduler */
if (pf->hw.func_caps.npar_enable && (!i40e_get_npar_bw_setting(pf)))
i40e_set_npar_bw_setting(pf);

sw_init_done:
return err;
}
Expand Down

0 comments on commit c668a12

Please sign in to comment.