vhost_net: Add NetClientInfo stop callback
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:30:31 +0000 (20:30 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (10:22 +0800)
commitc5e5269d8a955a0f924218911c2f4a0b34e87a21
tree0a78a43253e46288cb85467ac9c78a48689d6a84
parenteb92b75380fc0f2368e22be45d1e2d1e2cd2f79c
vhost_net: Add NetClientInfo stop callback

Used by the backend to perform actions after the device is stopped.

In particular, vdpa net use it to unmap CVQ buffers to the device,
cleaning the actions performed in prepare().

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