vhost_net: add NetClientState->load() callback
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:30:35 +0000 (20:30 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (10:22 +0800)
commit539573c317dc0b8d50a128db60550f2f2898d2fc
tree4feb1d596fa4513ee1ea950bc4e8d753d8b7fedb
parentbe4278b65fc1be8fce87e1e7c01bc52602d304eb
vhost_net: add NetClientState->load() callback

It allows per-net client operations right after device's successful
start. In particular, to load the device status.

Vhost-vdpa net will use it to add the CVQ buffers to restore the device
status.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/vhost_net.c
include/net/net.h