Hi,

> -----Original Message-----
> From: Suanming Mou <suanmi...@mellanox.com>
> Sent: Thursday, May 28, 2020 12:22 PM
> To: Slava Ovsiienko <viachesl...@mellanox.com>; Matan Azrad
> <ma...@mellanox.com>; dev@dpdk.org
> Cc: Raslan Darawsheh <rasl...@mellanox.com>; sta...@dpdk.org
> Subject: [PATCH v2] net/mlx5: fix interrupt installation timing
> 
> Currently, the DevX counter query works asynchronously with Devx
> interrupt handler return the query result. When port closes, the
> interrupt handler will be uninstalled and the Devx comp obj will
> also be destroyed. Meanwhile the query is still not cancelled.
> 
> In this case, counter query may use the invalid Devx comp which
> has been destroyed, and query failure with invalid FD will be
> reported.
> 
> Adjust the shared interrupt install and uninstall timing to make
> the counter asynchronous query stop before interrupt uninstall.
> 
> Fixes: f15db67 ("net/mlx5: accelerate DV flow counter query")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Suanming Mou <suanmi...@mellanox.com>
> Acked-by: Matan Azrad <ma...@mellanox.com>
> ---
> v2: fix by adjusting the interrupt install timing.
> ---
>  drivers/net/mlx5/mlx5.c         | 101 +++++++++++++----
>  drivers/net/mlx5/mlx5.h         |   5 -
>  drivers/net/mlx5/mlx5_ethdev.c  | 243 
> ----------------------------------------
>  drivers/net/mlx5/mlx5_trigger.c |  17 ++-
>  4 files changed, 97 insertions(+), 269 deletions(-)


Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh

Reply via email to