[PATCH v2] raw/ntb: immediate return if no doorbells

Thomas Monjalon thomas at monjalon.net
Wed Sep 24 16:34:55 CEST 2025


31/07/2025 20:31, Tofig Aliev:
> Added immediate return from ntb_dev_intr_handler()
> if no doorbells.

Please could you explain the consequence of this bug?

Should it be backported?

[...
> @@ -158,8 +158,10 @@ ntb_dev_intr_handler(void *param)
>  	}
>  
>  	db_bits = (*hw->ntb_ops->db_read)(dev);
> -	if (!db_bits)
> +	if (!db_bits) {
>  		NTB_LOG(ERR, "No doorbells");
> +		return;
> +	}
>  
>  	/* Doorbell 0 is for peer device ready. */
>  	if (db_bits & 1) {




More information about the dev mailing list