linux-sg2042/drivers/vdpa/ifcvf
Zhu Lingshan beb15de99a vDPA/ifcvf: allocate the adapter in dev_add()
commit 93139037b5 upstream.

The adapter is the container of the vdpa_device,
this commits allocate the adapter in dev_add()
rather than in probe(). So that the vdpa_device()
could be re-created when the userspace creates
the vdpa device, and free-ed in dev_del()

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Cc: stable@vger.kernel.org
Message-Id: <20221125145724.1129962-11-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 13:55:42 +01:00
..
Makefile
ifcvf_base.c vDPA/ifcvf: decouple config space ops from the adapter 2023-03-11 13:55:41 +01:00
ifcvf_base.h vDPA/ifcvf: manage ifcvf_hw in the mgmt_dev 2023-03-11 13:55:42 +01:00
ifcvf_main.c vDPA/ifcvf: allocate the adapter in dev_add() 2023-03-11 13:55:42 +01:00