Re: [PATCH v3 13/19] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-15 Thread Stefano Garzarella
On Wed, Dec 9, 2020 at 12:07 PM Stefano Garzarella wrote: > On Mon, Dec 07, 2020 at 01:29:17PM +0800, Jason Wang wrote: > > > >On 2020/12/4 上午1:05, Stefano Garzarella wrote: > >>The get_config callback can be used by the device to fill the > >>config structure. > >>The callback will be invoked

Re: [PATCH v3 13/19] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-06 Thread Jason Wang
On 2020/12/4 上午1:05, Stefano Garzarella wrote: The get_config callback can be used by the device to fill the config structure. The callback will be invoked in vdpasim_get_config() before copying bytes into caller buffer. Move vDPA-net config updates from vdpasim_set_features() in the new

[PATCH v3 13/19] vdpa_sim: add get_config callback in vdpasim_dev_attr

2020-12-03 Thread Stefano Garzarella
The get_config callback can be used by the device to fill the config structure. The callback will be invoked in vdpasim_get_config() before copying bytes into caller buffer. Move vDPA-net config updates from vdpasim_set_features() in the new vdpasim_net_get_config() callback. Signed-off-by: