Commit 719d959
vdpa/mlx5: update mlx_features with driver state check
Add logic in mlx5_vdpa_set_attr() to ensure the VIRTIO_NET_F_MAC
feature bit is properly set only when the device is not yet in
the DRIVER_OK (running) state.
This makes the MAC address visible in the output of:
vdpa dev config show -jp
when the device is created without an initial MAC address.
Signed-off-by: Cindy Lu <lulu@redhat.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260126094848.9601-2-lulu@redhat.com>1 parent 72ecf75 commit 719d959
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4046 | 4046 | | |
4047 | 4047 | | |
4048 | 4048 | | |
4049 | | - | |
| 4049 | + | |
4050 | 4050 | | |
4051 | 4051 | | |
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
4055 | 4055 | | |
4056 | 4056 | | |
4057 | | - | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
4058 | 4066 | | |
4059 | 4067 | | |
4060 | 4068 | | |
4061 | 4069 | | |
4062 | 4070 | | |
4063 | 4071 | | |
| 4072 | + | |
4064 | 4073 | | |
4065 | 4074 | | |
4066 | 4075 | | |
| |||
0 commit comments