[PATCH v8 0/4] support protocol based buffer split
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Thu Oct 6 12:13:13 CEST 2022
On 10/6/22 02:18, Yuan Wang wrote:
> Protocol type based buffer split consists of splitting a received packet
> into several separate segments based on the packet content. It is useful
> in some scenarios, such as GPU acceleration. The splitting will help to
> enable true zero copy and hence improve the performance significantly.
>
> This patchset aims to support protocol header split based on current buffer
> split. When Rx queue is configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT
> offload and corresponding protocol, packets received will be directly split
> into different mempools.
>
> Change log:
> v8:
> Restrict length == 0 and proto_hdr == 0 in another buffer split.
> Add check for proto_hdr == 0 in last segment.
> Use heap instead of stack for array to avoid vulnerabilities.
> Define the proto_hdr for two segments and multi-segments, respectively.
> Separate variable definition and code.
> Refine the doc and commit log.
Overall LGTM, please, process review notes and I think it will
be ready to be accepted.
More information about the dev
mailing list