mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
vdpa: Add eventfd for the vdpa callback
Add eventfd for the vdpa callback so that user can signal it directly instead of triggering the callback. It will be used for vhost-vdpa case. Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Message-Id: <20230323053043.35-9-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
66640f4a6f
commit
5e68470f4e
@@ -13,10 +13,16 @@
|
||||
* struct vdpa_calllback - vDPA callback definition.
|
||||
* @callback: interrupt callback function
|
||||
* @private: the data passed to the callback function
|
||||
* @trigger: the eventfd for the callback (Optional).
|
||||
* When it is set, the vDPA driver must guarantee that
|
||||
* signaling it is functional equivalent to triggering
|
||||
* the callback. Then vDPA parent can signal it directly
|
||||
* instead of triggering the callback.
|
||||
*/
|
||||
struct vdpa_callback {
|
||||
irqreturn_t (*callback)(void *data);
|
||||
void *private;
|
||||
struct eventfd_ctx *trigger;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user