Hi, > -----Original Message----- > From: Slava Ovsiienko <viachesl...@nvidia.com> > Sent: Thursday, August 11, 2022 8:51 AM > To: dev@dpdk.org > Cc: ferruh.yi...@intel.com; Matan Azrad <ma...@nvidia.com>; Raslan > Darawsheh <rasl...@nvidia.com>; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix check for orphan wait descriptor > > The mlx5 PMD supports send scheduling feature, it allows > to send packets at specified moment of time, to do that > PMD pushes special wait descriptor (WQE) to the hardware > queue and then pushes descriptor for packet data as usual. > If queue is close to be full or there is no enough elts > buffers to store mbufs being sent the data descriptors might > be not pushed and the orphan wait WQE (not followed by the > data) might reside in queue on tx_burst routine exit. > > To avoid orphan wait WQEs there was the check for enough > free space in the queue WQE buffer and enough amount of the > free elts in queue mbuf storage. This check was incomplete > and did not cover all the cases for Enhanced Multi-Packet > Write descriptors. > > Fixes: 2f827f5ea6e1 ("net/mlx5: support scheduling on send routine > template") > Cc: sta...@dpdk.org > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@nvidia.com> Patch applied to next-net-mlx,
Kindest regards, Raslan Darawsheh