]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc70b3ecc47d8e8ad8e9558fa560dbe07c1f062a
tree5f1ad48560c39d0ed63e9a73353bb0616421c3ac
parent548255bd7e366b63959dd4ebd730231831d7cfa4
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