[PATCH v4] net/gve: allocate RX QPL pages using malloc
Stephen Hemminger
stephen at networkplumber.org
Thu Jan 30 19:42:18 CET 2025
On Thu, 9 Jan 2025 11:46:38 -0800
Joshua Washington <joshwash at google.com> wrote:
> Kaligineedi <pkaligineedi at google.com>
>
> Allocating QPL for an RX queue might fail if enough contiguous IOVA
> memory cannot be allocated. This can commonly occur when using 2MB huge
> pages because the 1024 4K buffers are allocated for each RX ring by
> default, resulting in 4MB for each ring. However, the only requirement
> for RX QPLs is that each 4K buffer be IOVA contiguous, not the entire
> QPL. Therefore, malloc will be used to allocate RX QPLs instead.
>
> Note that TX queues require the entire QPL to be IOVA contiguous, so it
> will continue to use the memzone-based allocation.
>
> v2: Updated RX path to use malloc exclusively
>
> v3: Changed commit description to match updated code
>
> v4: Add fixes tag to allow 2M hugepages to be used on older versions of
> DPDK
>
> Fixes: a46583cf43c8 ("net/gve: support Rx/Tx")
> Cc: junfeng.guo at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Praveen Kaligineedi <pkaligineedi at google.com>
> Signed-off-by: Joshua Washington <joshwash at google.com>
> ---
The standard practice is to put revision information below the cut line "---"
so it doesn't end up in the commit message.
I fixed that and applied it to next-net
More information about the dev
mailing list