[PATCH] examples/ntb: remove redundant logic for dev close

Thomas Monjalon thomas at monjalon.net
Wed Jun 28 02:12:12 CEST 2023


14/06/2023 07:14, Junfeng Guo:
> During EAL cleanup stage, all bus devices are cleaned up properly.
> Based on this, there is no need to do extra device close process,
> which may call the dev ops '*dev->dev_ops->dev_close' twice.
> 
> If this dev ops for ntb was called twice, the interrupt handle for
> EAL will be disabled twice and will lead to error for the seconde
> time. Like this: "EAL: Error disabling MSI-X interrupts for fd xx"

You should fix ntb to not disable interrupt twice.




More information about the dev mailing list