ixgbevf: Support Windows hosts (Hyper-V)
On Hyper-V, the VF/PF communication is a via software mediated path as opposed to the hardware mailbox. Make the necessary adjustments to support Hyper-V. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
b4363fbd8d
commit
c6d45171d7
@@ -450,9 +450,13 @@ enum ixbgevf_state_t {
|
||||
|
||||
enum ixgbevf_boards {
|
||||
board_82599_vf,
|
||||
board_82599_vf_hv,
|
||||
board_X540_vf,
|
||||
board_X540_vf_hv,
|
||||
board_X550_vf,
|
||||
board_X550_vf_hv,
|
||||
board_X550EM_x_vf,
|
||||
board_X550EM_x_vf_hv,
|
||||
};
|
||||
|
||||
enum ixgbevf_xcast_modes {
|
||||
@@ -467,6 +471,12 @@ extern const struct ixgbevf_info ixgbevf_X550_vf_info;
|
||||
extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_info;
|
||||
extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops;
|
||||
|
||||
extern const struct ixgbevf_info ixgbevf_82599_vf_hv_info;
|
||||
extern const struct ixgbevf_info ixgbevf_X540_vf_hv_info;
|
||||
extern const struct ixgbevf_info ixgbevf_X550_vf_hv_info;
|
||||
extern const struct ixgbevf_info ixgbevf_X550EM_x_vf_hv_info;
|
||||
extern const struct ixgbe_mbx_operations ixgbevf_hv_mbx_ops;
|
||||
|
||||
/* needed by ethtool.c */
|
||||
extern const char ixgbevf_driver_name[];
|
||||
extern const char ixgbevf_driver_version[];
|
||||
@@ -484,6 +494,7 @@ void ixgbevf_free_rx_resources(struct ixgbevf_ring *);
|
||||
void ixgbevf_free_tx_resources(struct ixgbevf_ring *);
|
||||
void ixgbevf_update_stats(struct ixgbevf_adapter *adapter);
|
||||
int ethtool_ioctl(struct ifreq *ifr);
|
||||
bool ixgbevf_on_hyperv(struct ixgbe_hw *hw);
|
||||
|
||||
extern void ixgbevf_write_eitr(struct ixgbevf_q_vector *q_vector);
|
||||
|
||||
|
Reference in New Issue
Block a user