]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:39 +0000 (21:47 -0800)
commita58f823ab537cb86a8aa5ace96e943fa5a47d532
treee338680588873fb425f77c211f91d71bab4c8bd4
parent71a3960c005b80475b3c44e2a2a5c9ed34371a31
ixgbevf: Use mac_ops instead of trying to identify NIC type

Orabug: 24568240

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>
(cherry picked from commit 2f8214fe6811a246265629d81af2313695c63f4d)
Signed-off-by: Brian Maly <brian.maly@oracle.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