[PATCH] net/memif: fix descriptor flags corruption in multi-segment TX

Stephen Hemminger stephen at networkplumber.org
Tue Mar 3 17:13:46 CET 2026


On Tue, 3 Mar 2026 12:01:52 +0100
Sriram Yagnaraman <sriram.yagnaraman at ericsson.com> wrote:

> The memif TX path was using |= to set descriptor flags, which could
> leave stale flag bits from previous ring iterations. This caused
> descriptor corruption when the ring wrapped around, leading to
> malformed packet chains and RX failures.
> 
> Initialize d0->flags to 0 before setting MEMIF_DESC_FLAG_NEXT to
> ensure clean descriptor state on each transmission.
> 
> Fixes: 43b815d88188 ("net/memif: support zero-copy slave")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman at ericsson.com>
> ---

Applied to next-net


More information about the dev mailing list