Commit 033779a
vdpa/mlx5: make MTU/STATUS presence conditional on feature bits
The spec says:
mtu only exists if VIRTIO_NET_F_MTU is set
status only exists if VIRTIO_NET_F_STATUS is set
We should only present MTU and STATUS conditionally depending on
the feature bits.
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Message-Id: <1675725124-7375-6-git-send-email-si-wei.liu@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>1 parent dbb6f1c commit 033779a
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3046 | 3046 | | |
3047 | 3047 | | |
3048 | 3048 | | |
| 3049 | + | |
| 3050 | + | |
3049 | 3051 | | |
3050 | 3052 | | |
3051 | 3053 | | |
| |||
3155 | 3157 | | |
3156 | 3158 | | |
3157 | 3159 | | |
3158 | | - | |
3159 | | - | |
3160 | | - | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
3161 | 3164 | | |
3162 | | - | |
| 3165 | + | |
| 3166 | + | |
3163 | 3167 | | |
3164 | | - | |
3165 | | - | |
3166 | | - | |
3167 | | - | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
3168 | 3174 | | |
3169 | 3175 | | |
3170 | 3176 | | |
| |||
0 commit comments