Skip to contentSkip to conversation

vDPA: get_vq_irq() should be optional

PATCH New Zhu Lingshan 1 participant 1 message Aug 5, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 vDPA: get_vq_irq() should be optional

get_vq_irq() should be optional, it's required when we need to setup irq offloading, otherwise it‘s OK to be NULL.

---
 include/linux/vdpa.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/vdpa.h +2 -1
index 03aa9f77f192..56c6a03db43b 100644
@@ -87,7 +87,8 @@ struct vdpa_device {
  *				@vdev: vdpa device
  *				@idx: virtqueue index
  *				Returns the notifcation area
- * @get_vq_irq:			Get the irq number of a virtqueue
+ * @get_vq_irq:			Get the irq number of a virtqueue (optional,
+ *				but must implemented if require vq irq offloading)
  *				@vdev: vdpa device
  *				@idx: virtqueue index
  *				Returns int: irq number of a virtqueue,
Signature · 1 line
2.18.4