diff options
author | Gautam Dawar <gautam.dawar@xilinx.com> | 2022-03-30 23:33:56 +0530 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-31 12:44:32 -0400 |
commit | 05b6976212d4cffde60ff53716c40809ebdf4aee (patch) | |
tree | 0ba280c5374880b34898496c8531c5652ce95441 /drivers/vdpa/vdpa_sim | |
parent | aaca8373c4b1e010b8d748fc99d929de1bf860b8 (diff) | |
download | linux-stable-05b6976212d4cffde60ff53716c40809ebdf4aee.tar.gz linux-stable-05b6976212d4cffde60ff53716c40809ebdf4aee.tar.bz2 linux-stable-05b6976212d4cffde60ff53716c40809ebdf4aee.zip |
vdpa_sim: advertise VIRTIO_NET_F_MTU
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>
Diffstat (limited to 'drivers/vdpa/vdpa_sim')
-rw-r--r-- | drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c index d5324f6fd8c7..2d1d8c59d0ea 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c @@ -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 |