i40evf: virtual channel interface
authorGreg Rose <gregory.v.rose@intel.com>
Sat, 21 Dec 2013 06:13:01 +0000 (06:13 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 1 Jan 2014 00:01:28 +0000 (16:01 -0800)
commit62683ab51e487fb6b761ac15b9c0b78c7c3ad431
treee2b50021cd61101eec179a83c247da15bc9ef790
parentfbb7ddfef253970ec6f29f5931db4d5aa0c28d28
i40evf: virtual channel interface

This PCI-E SR-IOV virtual function (VF) driver is dependant upon the
physical function (PF) driver (i40e) for nearly all of its hardware
configuration. Requests from the VF driver are passed to the PF using
the hardware's Admin Queue.

This patch contains the functionality for communicating with the PF
driver. Because of the delay inherent in this communications channel,
most of the replies from the PF driver are handled asynchronously. The
exceptions are the "send API version" and "get VF config" messages,
which busy-wait because they are done so early during init that
interrupts are not yet configured.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h [new file with mode: 0644]
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c [new file with mode: 0644]