if (device_pasid_enabled(idxd))
desc->hw->pasid = idxd->pasid;
- /*
- * On host, MSIX vecotr 0 is used for misc interrupt. Therefore when we match
- * vector 1:1 to the WQ id, we need to add 1
- */
- if (wq->ie->int_handle == INVALID_INT_HANDLE)
- desc->hw->int_handle = wq->id + 1;
- else
- desc->hw->int_handle = wq->ie->int_handle;
-
return desc;
}
*/
if (desc->hw->flags & IDXD_OP_FLAG_RCI) {
ie = wq->ie;
+ if (ie->int_handle == INVALID_INT_HANDLE)
+ desc->hw->int_handle = ie->id;
+ else
+ desc->hw->int_handle = ie->int_handle;
+
llist_add(&desc->llnode, &ie->pending_llist);
}