diff options
author | 2020-12-15 15:42:50 +0100 | |
---|---|---|
committer | 2020-12-18 16:14:29 -0500 | |
commit | 65b709586e222fa6ffd4166ac7fdb5d5dad113ee (patch) | |
tree | 1b58b4a05b266770ca51549f408362de28e1c698 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vdpa_sim: make 'config' generic and usable for any device type (diff) | |
download | wireguard-linux-65b709586e222fa6ffd4166ac7fdb5d5dad113ee.tar.xz wireguard-linux-65b709586e222fa6ffd4166ac7fdb5d5dad113ee.zip |
vdpa_sim: add get_config callback in vdpasim_dev_attr
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.
This is safe since in vdpa_get_config() we already check that
.set_features() callback is called before .get_config().
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20201215144256.155342-13-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions