Commit 41a2ad9
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>1 parent 35b37c3 commit 41a2ad9
1 file changed
Lines changed: 29 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
821 | 844 | | |
822 | 845 | | |
823 | 846 | | |
| |||
826 | 849 | | |
827 | 850 | | |
828 | 851 | | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | 852 | | |
834 | 853 | | |
835 | 854 | | |
836 | 855 | | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | 856 | | |
842 | 857 | | |
843 | 858 | | |
844 | 859 | | |
845 | 860 | | |
846 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
847 | 868 | | |
848 | 869 | | |
849 | 870 | | |
| |||
0 commit comments