Re: [PATCH 0/2] vdpasim: allow to set MAC address

From: Jason Wang
Date: Thu Oct 29 2020 - 21:24:19 EST



On 2020/10/29 下午8:20, Laurent Vivier wrote:
This series starts by fixing a bug:
vdpa_sim generates a MAC address that is never show to
upper layer, and thus virtio-net generates another random
MAC address, that changes each time virtio-net is loaded
(even if vdpa_sim is not unloaded).

Then it adds a parameter to vpa_sim module to allow the user to
set the MAC address. With that we use vdpa_sim with a stable
MAC addres, that doesn't change between reboots.

Laurent Vivier (2):
vdpasim: fix MAC address configuration
vdpasim: allow to assign a MAC address

drivers/vdpa/vdpa_sim/vdpa_sim.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)


Acked-by: Jason Wang <jasowang@xxxxxxxxxx>