summaryrefslogtreecommitdiff
path: root/net/8021q/vlan_mvrp.c
diff options
context:
space:
mode:
authorYi Liu <yi.l.liu@intel.com>2023-07-18 03:55:39 -0700
committerAlex Williamson <alex.williamson@redhat.com>2023-07-25 10:18:02 -0600
commita80e1de93275fbfba0617e6bbea8522ea5329eb5 (patch)
tree729884b8ae34f86dd4a6038ecb1a4fa9e684a95e /net/8021q/vlan_mvrp.c
parentaf949759bad27934b6f242e8a3b1c394e09fb4a3 (diff)
vfio: Add helper to search vfio_device in a dev_set
There are drivers that need to search vfio_device within a given dev_set. e.g. vfio-pci. So add a helper. vfio_pci_is_device_in_set() now returns -EBUSY in commit a882c16a2b7e ("vfio/pci: Change vfio_pci_try_bus_reset() to use the dev_set") where it was trying to preserve the return of vfio_pci_try_zap_and_vma_lock_cb(). However, it makes more sense to return -ENODEV. Suggested-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Tested-by: Yanting Jiang <yanting.jiang@intel.com> Tested-by: Terrence Xu <terrence.xu@intel.com> Tested-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Link: https://lore.kernel.org/r/20230718105542.4138-8-yi.l.liu@intel.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'net/8021q/vlan_mvrp.c')
0 files changed, 0 insertions, 0 deletions