vdpa: Add reset callback in vdpa_config_ops
This adds a new callback to support device specific reset behavior. The vdpa bus driver will call the reset function instead of setting status to zero during resetting. Signed-off-by:Xie Yongji <xieyongji@bytedance.com> Link: https://lore.kernel.org/r/20210831103634.33-6-xieyongji@bytedance.com Signed-off-by:
Michael S. Tsirkin <mst@redhat.com>
Showing
- drivers/vdpa/ifcvf/ifcvf_main.c 24 additions, 11 deletionsdrivers/vdpa/ifcvf/ifcvf_main.c
- drivers/vdpa/mlx5/net/mlx5_vnet.c 24 additions, 16 deletionsdrivers/vdpa/mlx5/net/mlx5_vnet.c
- drivers/vdpa/vdpa_sim/vdpa_sim.c 15 additions, 3 deletionsdrivers/vdpa/vdpa_sim/vdpa_sim.c
- drivers/vdpa/virtio_pci/vp_vdpa.c 13 additions, 2 deletionsdrivers/vdpa/virtio_pci/vp_vdpa.c
- drivers/vhost/vdpa.c 7 additions, 2 deletionsdrivers/vhost/vdpa.c
- include/linux/vdpa.h 6 additions, 2 deletionsinclude/linux/vdpa.h
Please register or sign in to comment