diff options
author | Allen Hubbe <allen.hubbe@amd.com> | 2023-07-11 06:24:33 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-08-10 21:51:45 +0200 |
commit | 0cd2c13b1c15dbbdf1e2ae5b7160537f97df06b5 (patch) | |
tree | f2dacbb9512be6b3fe861591e5996fa8a279d435 /drivers/vdpa/pds/vdpa_dev.h | |
parent | virtio-net: Zero max_tx_vq field for VIRTIO_NET_CTRL_MQ_HASH_CONFIG case (diff) | |
download | linux-0cd2c13b1c15dbbdf1e2ae5b7160537f97df06b5.tar.xz linux-0cd2c13b1c15dbbdf1e2ae5b7160537f97df06b5.zip |
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>
Diffstat (limited to 'drivers/vdpa/pds/vdpa_dev.h')
-rw-r--r-- | drivers/vdpa/pds/vdpa_dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/pds/vdpa_dev.h b/drivers/vdpa/pds/vdpa_dev.h index a1bc37de9537..cf02df287fc4 100644 --- a/drivers/vdpa/pds/vdpa_dev.h +++ b/drivers/vdpa/pds/vdpa_dev.h @@ -39,6 +39,7 @@ struct pds_vdpa_device { u64 req_features; /* features requested by vdpa */ u8 vdpa_index; /* rsvd for future subdevice use */ u8 num_vqs; /* num vqs in use */ + u8 mac[ETH_ALEN]; /* mac selected when the device was added */ struct vdpa_callback config_cb; struct notifier_block nb; }; |