OSDN Git Service

iavf: Add helper function to go from pci_dev to adapter
authorKaren Sornek <karen.sornek@intel.com>
Wed, 15 Sep 2021 06:41:23 +0000 (08:41 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 29 Oct 2021 20:11:53 +0000 (13:11 -0700)
commit247aa001b72b6c8a89df9d108a2ec6f274a6b64d
tree2908423d35c74cb74f881411c2f63807d11ed443
parent4a15022f82ee0f2e14a7f953b7bbc0f5c983b663
iavf: Add helper function to go from pci_dev to adapter

Add helper function to go from pci_dev to adapter to make work simple -
to go from a pci_dev to the adapter structure and make netdev assignment
instead of having to go to the net_device then the adapter.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Karen Sornek <karen.sornek@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c