Re: [PATCH v2] mbuf: improve mbuf comments

Thomas Monjalon
2025-11-11T12:17:38Z

07/11/2025 15:36, Morten Brørup:
> Updated the comment preceding the 'rearm_data' fields to reflect that some
> ethdev drivers don't really set the rearm_data fields on Rx descriptor
> rearm, but rather when pulling the packet from the descriptor.
> By doing this, they avoid a store operation into the mbuf when they rearm
> the Rx descriptor, and instead postpone it to later, where it will be
> combined with other store operations into the mbuf.
>
> Updated the comment describing what the second cache line is used for, to
> reflect that there are exceptions, where some fields are set on Rx too.
>
> Updated comments describing what needs to be updated when adding new Rx
> and Tx offload flags.
>
> Signed-off-by: Morten Brørup <mb@smartsharesystems.com>

Applied, thanks.