vdpa/mlx5: make MTU/STATUS presence conditional on feature bits
authorSi-Wei Liu <si-wei.liu@oracle.com>
Mon, 6 Feb 2023 23:12:03 +0000 (15:12 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:27:00 +0000 (19:27 -0500)
commit033779a708f0b0aa89d3a9ad937fb1a97a06a10c
tree4f0a6792e1c3ff572e5e8c85da48487c6e64c0bb
parentdbb6f1c42ade73f2c1652bf167d48f20f98bb834
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>
drivers/vdpa/mlx5/net/mlx5_vnet.c