]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gve: support unreadable netmem
authorMina Almasry <almasrymina@google.com>
Mon, 18 Aug 2025 21:05:07 +0000 (21:05 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Aug 2025 00:42:43 +0000 (17:42 -0700)
commit62d7f40503bc6ac645784e35d4b1a48381237fe3
treefe9c302a9bddc78295654b97515dd8da0b9f6260
parentc3439666d1bd788b47fcba5edd42fed034caaaf2
gve: support unreadable netmem

Declare PP_FLAG_ALLOW_UNREADABLE_NETMEM to turn on unreadable netmem
support in GVE.

We also drop any net_iov packets where header split is not enabled.
We're unable to process packets where the header landed in unreadable
netmem.

Use page_pool_dma_sync_netmem_for_cpu in lieu of
dma_sync_single_range_for_cpu to correctly handle unreadable netmem
that should not be dma-sync'd.

Disable rx_copybreak optimization if payload is unreadable netmem as
that needs access to the payload.

Signed-off-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20250818210507.3781705-1-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_buffer_mgmt_dqo.c
drivers/net/ethernet/google/gve/gve_rx_dqo.c