]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gve: Fix skb truesize underestimation
authorPraveen Kaligineedi <pkaligineedi@google.com>
Wed, 24 Jan 2024 16:10:25 +0000 (08:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Jan 2024 01:08:34 +0000 (17:08 -0800)
commit534326711000c318fe1523c77308450522baa499
tree118ffcf7848e3fa466458f6421d6c77aae11ba41
parentfc836129f708407502632107e58d48f54b1caf75
gve: Fix skb truesize underestimation

For a skb frag with a newly allocated copy page, the true size is
incorrectly set to packet buffer size. It should be set to PAGE_SIZE
instead.

Fixes: 82fd151d38d9 ("gve: Reduce alloc and copy costs in the GQ rx path")
Signed-off-by: Praveen Kaligineedi <pkaligineedi@google.com>
Link: https://lore.kernel.org/r/20240124161025.1819836-1-pkaligineedi@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx.c