summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2022-09-29 09:45:55 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-10-07 20:00:44 -0400
commit41a2ad927aa23ef7a2cbf26a1f77fb8ee421ca30 (patch)
tree88002c32465b573172b1c1b4cab595b63c3d35fd /drivers/virtio
parent35b37c33eb75f532606e8d333a4eb63d4c22401b (diff)
downloadlinux-41a2ad927aa23ef7a2cbf26a1f77fb8ee421ca30.tar.bz2
vDPA: conditionally read MTU and MAC in dev cfg space
The spec says: mtu only exists if VIRTIO_NET_F_MTU is set The mac address field always exists (though is only valid if VIRTIO_NET_F_MAC is set) So vdpa_dev_net_config_fill() should read MTU and MAC conditionally on the feature bits. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220929014555.112323-7-lingshan.zhu@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions