[PATCH v2] mbuf: improve mbuf comments
Thomas Monjalon
thomas at monjalon.net
Tue Nov 11 13:17:33 CET 2025
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 at smartsharesystems.com>
Applied, thanks.
More information about the dev
mailing list