gve: Fix skb truesize underestimation
authorPraveen Kaligineedi <pkaligineedi@google.com>
Wed, 24 Jan 2024 16:10:25 +0000 (08:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:34 +0000 (20:14 +0000)
commitf08daa806ba78a1458dd7589a4857213cab426d9
tree1a1b9afaf0aae8557080c8dbe155c31947be0abd
parentbaa3f8b28185a30a9cc8a1599b13184707b1247c
gve: Fix skb truesize underestimation

[ Upstream commit 534326711000c318fe1523c77308450522baa499 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/google/gve/gve_rx.c