]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: fix dead loop when process interrupted
authorXueming Li <xuemingl@nvidia.com>
Sun, 8 May 2022 14:25:49 +0000 (17:25 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 9 May 2022 19:39:58 +0000 (21:39 +0200)
commit301ef4a18586ae1763206d7e75d9eddb58a7d05e
treebc82c9133821d9034889865396d2f58bc8b7b03d
parent66a439c5d7c166347adc799fcc928058e16ac23d
vdpa/mlx5: fix dead loop when process interrupted

In Ctrl+C handling, sometimes kick handling thread gets endless EGAIN
error and fall into dead lock.

Kick happens frequently in real system due to busy traffic or retry
mechanism. This patch simplifies kick firmware anyway and skip setting
hardware notifier due to potential device error, notifier could be set
in next successful kick request.

Fixes: 62c813706e41 ("vdpa/mlx5: map doorbell")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c