Hi, > -----Original Message----- > From: Dmitry Kozlyuk <[email protected]> > Sent: Tuesday, December 28, 2021 11:21 AM > To: [email protected] > Cc: Slava Ovsiienko <[email protected]>; [email protected]; Matan > Azrad <[email protected]> > Subject: [PATCH] net/mlx5: relax headroom assertion > > A debug assertion in Single-Packet Receive Queue (SPRQ) mode required all > Rx mbufs to have a 128 byte headroom, based on the assumption that > rte_pktmbuf_init() sets it. > However, rte_pktmbuf_init() may set a smaller headroom if the dataroom is > insufficient, e.g. this is a natural case for split buffer segments. The > headroom can also be larger. > Only check the headroom size when vectored Rx routines are used because > they rely on it. Relax the assertion to require sufficient headroom size, not > an > exact one. > > Fixes: a0a45e8af723 ("net/mlx5: configure Rx queue for buffer split") > Cc: [email protected] > Cc: [email protected] > > Signed-off-by: Dmitry Kozlyuk <[email protected]> > Acked-by: Matan Azrad <[email protected]>
Patch rebased and applied to next-net-mlx, Kindest regards, Raslan Darawsheh

