Skip to content

Commit

Permalink
pds_vdpa: set features order
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
  • Loading branch information
emusln authored and mstsirkin committed Dec 1, 2023
1 parent dd3b8de commit cefc9ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/vdpa/pds/vdpa_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,8 @@ static int pds_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 featur
return -EOPNOTSUPP;
}

pdsv->negotiated_features = nego_features;

driver_features = pds_vdpa_get_driver_features(vdpa_dev);
pdsv->negotiated_features = nego_features;
dev_dbg(dev, "%s: %#llx => %#llx\n",
__func__, driver_features, nego_features);

Expand Down

0 comments on commit cefc9ba

Please sign in to comment.