vdpa_sim: advertise VIRTIO_NET_F_MTU
authorGautam Dawar <gautam.dawar@xilinx.com>
Wed, 30 Mar 2022 18:03:56 +0000 (23:33 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:44:32 +0000 (12:44 -0400)
We've already reported maximum mtu via config space, so let's
advertise the feature.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Gautam Dawar <gdawar@xilinx.com>
Message-Id: <20220330180436.24644-17-gdawar@xilinx.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_net.c

index d5324f6fd8c702137b9a0ccc8cbfef9eb8013574..2d1d8c59d0eadbd6f77b6cf34ce641b2113ce681 100644 (file)
@@ -26,7 +26,8 @@
 #define DRV_LICENSE  "GPL v2"
 
 #define VDPASIM_NET_FEATURES   (VDPASIM_FEATURES | \
-                                (1ULL << VIRTIO_NET_F_MAC))
+                                (1ULL << VIRTIO_NET_F_MAC) | \
+                                (1ULL << VIRTIO_NET_F_MTU))
 
 #define VDPASIM_NET_VQ_NUM     2