pds_vdpa: reset to vdpa specified mac
authorAllen Hubbe <allen.hubbe@amd.com>
Tue, 11 Jul 2023 04:24:33 +0000 (21:24 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 10 Aug 2023 19:51:45 +0000 (15:51 -0400)
commit0cd2c13b1c15dbbdf1e2ae5b7160537f97df06b5
treef2dacbb9512be6b3fe861591e5996fa8a279d435
parent2c507ce90e02cd78d00fd4b0fe26c8641873c13f
pds_vdpa: reset to vdpa specified mac

When the vdpa device is reset, also reinitialize it with the mac address
that was assigned when the device was added.

Fixes: 151cc834f3dd ("pds_vdpa: add support for vdpa and vdpamgmt interfaces")
Signed-off-by: Allen Hubbe <allen.hubbe@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Message-Id: <20230711042437.69381-2-shannon.nelson@amd.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/pds/vdpa_dev.c
drivers/vdpa/pds/vdpa_dev.h