[Intel-wired-lan] [PATCH net-next v1] i40e: Add restoration of VF MSI-X state during PCI reset
Nguyen, Anthony L
anthony.l.nguyen at intel.com
Mon May 17 23:25:40 UTC 2021
On Mon, 2021-05-17 at 16:28 +0200, Karen Sornek wrote:
> During a PCI FLR the MSI-X Enable flag in the VF PCI MSI-X capability
> register will be cleared. This can lead to issues when a VF is
> assigned to a VM because in these cases the VF driver receives no
> indication of the PF PCI error/reset and additionally it is incapable
> of restoring the cleared flag in the hypervisor configuration space
> without fully reinitializing the driver interrupt functionality.
>
> Since the VF driver is unable to easily resolve this condition on its
> own,
> restore the VF MSI-X flag during the PF PCI reset handling.
>
> Signed-off-by: Slawomir Laba <slawomirx.laba at intel.com>
> Signed-off-by: Nick Nunley <nicholas.d.nunley at intel.com>
> Signed-off-by: Karen Sornek <karen.sornek at intel.com>
> ---
<snip>
> +/**
> + * i40_restore_all_vfs_msi_state - restore VF MSI state after PF FLR
> + * @pdev: pointer to a pci_dev structure
> + *
> + * Called when recovering from a PF FLR to restore interrupt
> capability to
> + * the VFs.
> + */
> +void i40e_restore_all_vfs_msi_state(struct pci_dev *pdev)
Header function name doesn't match:
./drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:163: warning:
expecting prototype for i40_restore_all_vfs_msi_state(). Prototype was
for i40e_restore_all_vfs_msi_state() instead
More information about the Intel-wired-lan
mailing list