OSDN Git Service

fm10k: simplify reading PFVFLRE register
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 10 Jul 2017 20:23:09 +0000 (13:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 Oct 2017 15:04:57 +0000 (08:04 -0700)
commit4abf01b43b62525e4f1a20dd1a2bc4a1967d8928
treef096264712e5ee1cf096405cfb206fea4663c464
parent8bac58be1700dab3cac8cb53ed0651da40777024
fm10k: simplify reading PFVFLRE register

We're doing a really convoluted bitshift and read for the PFVFLRE
register. Just reading the PFVFLRE(1), shifting it by 32, then reading
PFVFLRE(0) should be sufficient.

Signed-off-by: Jacob Keller <jacob.e.keller@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_iov.c