Messages in this thread | | | Date | Fri, 10 Mar 2023 13:18:29 -0400 | From | Jason Gunthorpe <> | Subject | Re: [PATCH v8 2/5] hisi_acc_vfio_pci: extract public functions for container_of |
| |
On Fri, Feb 17, 2023 at 04:48:28PM +0800, Longfang Liu wrote: > In the current driver, vdev is obtained from struct > hisi_acc_vf_core_device through the container_of function. > This method is used in many places in the driver. In order to > reduce this repetitive operation, I extracted a public function > to replace it. > > Signed-off-by: Longfang Liu <liulongfang@huawei.com> > --- > .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 21 ++++++++++--------- > 1 file changed, 11 insertions(+), 10 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Jason
| |