Jason Wang
2021-Dec-14 03:37 UTC
[PATCH v2 01/10] vdpa: Provide interface to read driver features
On Mon, Dec 13, 2021 at 10:43 PM Eli Cohen <elic at nvidia.com> wrote:> > Provide an interface to read the negotiated features. This is needed > when building the netlink message in vdpa_dev_net_config_fill(). > > Also fix the implementation of vdpa_dev_net_config_fill() to use the > negotiated features instead of the device features. > > To make APIs clearer, make the following name changes to struct > vdpa_config_ops so they better describe their operations: > > get_features -> get_device_features > set_features -> set_driver_features > > Finally, add get_driver_features to return the negotiated features and > add implementation to all the upstream drivers. > > Signed-off-by: Eli Cohen <elic at nvidia.com> > ----- > v1 -> v2: > 1. Fix to call vp_modern_get_driver_features() in > vp_vdpa_get_driver_features() > 2. Improve calback function description > ---Acked-by: Jason Wang <jasowang at redhat.com>