]> Git Repo - linux.git/commit
vdpasim: fix MAC address configuration
authorLaurent Vivier <[email protected]>
Thu, 29 Oct 2020 12:20:49 +0000 (13:20 +0100)
committerMichael S. Tsirkin <[email protected]>
Fri, 30 Oct 2020 08:04:35 +0000 (04:04 -0400)
commit4a6a42db53aae049a8a64d4b273761bc80c46ebf
tree5583779821b479100e39f4034a791ccd092cdd0f
parente01afe36df1a9e42cacdb9c5b99512ec69a6f14b
vdpasim: fix MAC address configuration

vdpa_sim generates a ramdom MAC address but it is never used by upper
layers because the VIRTIO_NET_F_MAC bit is not set in the features list.

Because of that, virtio-net always regenerates a random MAC address each
time it is loaded whereas the address should only change on vdpa_sim
load/unload.

Fix that by adding VIRTIO_NET_F_MAC in the features list of vdpa_sim.

Fixes: 2c53d0f64c06 ("vdpasim: vDPA device simulator")
Cc: [email protected]
Signed-off-by: Laurent Vivier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
drivers/vdpa/vdpa_sim/vdpa_sim.c
This page took 0.053679 seconds and 4 git commands to generate.