Hi, > -----Original Message----- > From: Spike Du <[email protected]> > Sent: Wednesday, November 2, 2022 1:44 PM > To: Matan Azrad <[email protected]>; Slava Ovsiienko > <[email protected]>; Ori Kam <[email protected]>; NBU-Contact- > Thomas Monjalon (EXTERNAL) <[email protected]>; Shahaf Shuler > <[email protected]> > Cc: [email protected]; Raslan Darawsheh <[email protected]>; > [email protected] > Subject: [PATCH v2] mlx5/testpmd: fix crash on quit with avail thresh enabled > > When testpmd quit with mlx5 avail_thresh enabled, a rte timer handler > delays to reconfigure rx queue to re-arm this event. However at the same > time, testpmd is destroying rx queues. > It's never a valid use case for mlx5 avail_thresh. Before testpmd quit, > user should disable avail_thresh configuration to not handle the events. > This is documented in mlx5 driver guide. > > To avoid the crash in such use case, check port status, if it is not > RTE_PORT_STARTED, don't process the avail_thresh event. > > Fixes: f41a5092e6ae ("app/testpmd: add host shaper command") > Cc: [email protected] > > Signed-off-by: Spike Du <[email protected]>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

