i40e/i40evf: find partition_id in npar mode
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 11 Dec 2014 07:06:30 +0000 (07:06 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Jan 2015 19:48:18 +0000 (11:48 -0800)
commit9fee9db5fb6a62ab1340a1dca43aa8e352cf49e2
tree5f1ad48560c39d0ed63e9a73353bb0616421c3ac
parentb2d4d9059ec65e10cde070148207d3b70a596394
i40e/i40evf: find partition_id in npar mode

When in NPAR mode the driver instance might be controlling the base
partition or one of the other "fake" PFs.  There are some things that
can only be done by the base partition, aka partition_id 1.  This code
does a bit of work to find how many partitions are there per port and
what is the current partition_id.

Change-ID: Iba427f020a1983d02147d86f121b3627e20ee21d
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c
drivers/net/ethernet/intel/i40e/i40e_prototype.h
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h