Re: [PATCH] PCI: Add vf reset notification for pf

2024-02-05 Thread Zhi Wang
On Sun, 4 Feb 2024 14:12:57 +0800 Emily Deng wrote: > When a vf has been reset, the pf wants to get notification to remove > the vf out of schedule. > > Solution: > Add the callback function in pci_driver sriov_vf_reset_notification. > When vf reset happens, then call this callback function. >

Re: [PATCH] PCI: Add vf reset notification for pf

2024-02-05 Thread Christian König
Am 04.02.24 um 07:12 schrieb Emily Deng: When a vf has been reset, the pf wants to get notification to remove the vf out of schedule. Solution: Add the callback function in pci_driver sriov_vf_reset_notification. When vf reset happens, then call this callback function. Well that doesn't make m

Re: [PATCH] PCI: Add vf reset notification for pf

2024-02-04 Thread Leon Romanovsky
On Sun, Feb 04, 2024 at 02:12:57PM +0800, Emily Deng wrote: > When a vf has been reset, the pf wants to get notification to remove the vf > out of schedule. It is very questionable if this is right thing to do. The idea of SR-IOV is that VFs represent a physical device and they should be treated s

Re: [PATCH] PCI: Add vf reset notification for pf

2024-02-03 Thread Keith Busch
On Sun, Feb 04, 2024 at 02:12:57PM +0800, Emily Deng wrote: > @@ -926,6 +926,7 @@ struct pci_driver { > int (*sriov_configure)(struct pci_dev *dev, int num_vfs); /* On PF */ > int (*sriov_set_msix_vec_count)(struct pci_dev *vf, int > msix_vec_count); /* On PF */ > u32 (*sriov_