vdpa_sim_net: Add the support of set mac address
authorCindy Lu <lulu@redhat.com>
Wed, 31 Jul 2024 03:16:02 +0000 (11:16 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Sep 2024 06:51:48 +0000 (02:51 -0400)
commit218bb7ec17f1f66a63cb7421fb8a1d48032988e8
treef482b1af537af3b5d5694408331d02056debf120
parent2f87e9cf0c9e21ab9be1fb2ba8520a1525359497
vdpa_sim_net: Add the support of set mac address

Add the function to support setting the MAC address.
For vdpa_sim_net, the driver will write the MAC address
to the config space, and other devices can implement
their own functions to support this.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20240731031653.1047692-3-lulu@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_net.c