ixgbevf: Use mac_ops instead of trying to identify NIC type
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 22 Apr 2016 17:18:26 +0000 (13:18 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2016 07:24:31 +0000 (00:24 -0700)
commit2f8214fe6811a246265629d81af2313695c63f4d
tree18e31bed9f41c01e8ae23c9597a67f3473921dc1
parent33b0eb15961393d8c60e7c4bddd23da53cd1c2e4
ixgbevf: Use mac_ops instead of trying to identify NIC type

This change makes it so that we can just use function pointers instead of
having to identify if a given VF is running on a Linux or Windows PF.  By
doing this we can avoid having to pull too much information out of the
lower layers and can instead just make use of the mac_ops pointers since
they should differ between the two types of VFs anyway.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c
drivers/net/ethernet/intel/ixgbevf/vf.h