On 9/9/26 12:07 PM, Dave Marquardt via B4 Relay wrote:
> From: Dave Marquardt <[email protected]>
> 
> Refactor async event handling to support both traditional async CRQs and
> new asynchronous sub-queue CRQs.
> 
> Introduce struct ibmvfc_async_crq_event, a tagged union that wraps
> either an ibmvfc_async_crq (main CRQ) or an ibmvfc_async_sub_crq
> (async sub-CRQ), with an enum ibmvfc_async_crq_type discriminator.
> Replace the ibmvfc_async_work bare union and is_subq bool with a
> single event field of this type.
> 
> Modify ibmvfc_handle_async() to accept a struct ibmvfc_async_crq_event *
> instead of a void * plus a bool flag. Update ibmvfc_process_async_work()
> to dispatch based on event.type.
> 
> Add ibmvfc_full_fpin_to_desc() to convert full FPIN messages from async
> sub-queue format to fc_els_fpin structures. Update FPIN processing logic
> to extract WWPN, node_name, and scsi_id from the appropriate union member
> based on event type.
> 
> Update KUnit tests to use struct ibmvfc_async_crq_event arrays at call
> sites.
> 
> Signed-off-by: Dave Marquardt <[email protected]>
> ---
Acked-by: Tyrel Datwyler <[email protected]>

Reply via email to