Patch "vdpasim: fix MAC address configuration" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    vdpasim: fix MAC address configuration

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     vdpasim-fix-mac-address-configuration.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit beb087ac5ecb37cb08a459d13a7250fa18c69a53
Author: Laurent Vivier <lvivier@xxxxxxxxxx>
Date:   Thu Oct 29 13:20:49 2020 +0100

    vdpasim: fix MAC address configuration
    
    [ Upstream commit 4a6a42db53aae049a8a64d4b273761bc80c46ebf ]
    
    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: jasowang@xxxxxxxxxx
    Signed-off-by: Laurent Vivier <lvivier@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201029122050.776445-2-lvivier@xxxxxxxxxx
    Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
    Acked-by: Jason Wang <jasowang@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_sim/vdpa_sim.c
index 62d6403271450..01ef22d03a8c1 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim.c
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c
@@ -60,7 +60,8 @@ struct vdpasim_virtqueue {
 
 static u64 vdpasim_features = (1ULL << VIRTIO_F_ANY_LAYOUT) |
 			      (1ULL << VIRTIO_F_VERSION_1)  |
-			      (1ULL << VIRTIO_F_ACCESS_PLATFORM);
+			      (1ULL << VIRTIO_F_ACCESS_PLATFORM) |
+			      (1ULL << VIRTIO_NET_F_MAC);
 
 /* State of each vdpasim device */
 struct vdpasim {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux