Skip to content

Commit cefc9ba

Browse files
emuslnmstsirkin
authored andcommitted
pds_vdpa: set features order
Fix up the order that the device and negotiated features are checked to get a more reliable difference when things get changed. Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Message-Id: <20231110221802.46841-4-shannon.nelson@amd.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
1 parent dd3b8de commit cefc9ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/vdpa/pds/vdpa_dev.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ static int pds_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 featur
318318
return -EOPNOTSUPP;
319319
}
320320

321-
pdsv->negotiated_features = nego_features;
322-
323321
driver_features = pds_vdpa_get_driver_features(vdpa_dev);
322+
pdsv->negotiated_features = nego_features;
324323
dev_dbg(dev, "%s: %#llx => %#llx\n",
325324
__func__, driver_features, nego_features);
326325

0 commit comments

Comments
 (0)