i40e: factor out queue control from i40e_vsi_control_(tx|rx)
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 13 Apr 2017 08:45:47 +0000 (04:45 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Apr 2017 00:13:56 +0000 (17:13 -0700)
commitc768e490640dbb928d1c8a5f7b437a334d0cde44
treeac840a01f879402574d3c764219a113f2a60a48f
parent024b05f4246e281ef50e019eff0fc53aedf069ac
i40e: factor out queue control from i40e_vsi_control_(tx|rx)

A future patch will need to be able to handle controlling queues without
waiting until all VSIs are handled. Factor out the direct queue
modification so that we can easily re-use this code. The result is also
a bit easier to read since we don't embed multiple single-letter loop
counters.

Change-ID: Id923cbfa43127b1c24d8ed4f809b1012c736d9ac
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c