]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gve: fix zero-length skb frag with header-split
authorJordan Rhee <jordanrhee@google.com>
Fri, 7 Aug 2026 22:43:14 +0000 (22:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Aug 2026 01:26:04 +0000 (18:26 -0700)
commit6bf14575c65569dcded90ef78afb8a6d57323f04
treec5d629a9651adf2e9ef3e3214372de5067552e1f
parentf60b396ee174206fe08ebf997d16cd3801b77b22
gve: fix zero-length skb frag with header-split

When header split is enabled and a header-only packet is
received such as a pure TCP ACK, GVE will indicate an
RX SKB with a zero-length fragment. If this SKB is then
hairpinned and sent back out, the GVE TX path will emit
a zero-length descriptor. Hardware considers this
an illegal descriptor and stops the queue, causing a
TX timeout and interface reset.

Fix it by not adding the zero-length skb frag.

Cc: stable@vger.kernel.org
Fixes: 5e37d8254e7f ("gve: Add header split data path")
Suggested-by: Praveen Kaligineedi <pkaligineedi@google.com>
Co-developed-by: Ziwei Xiao <ziweixiao@google.com>
Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
Signed-off-by: Jordan Rhee <jordanrhee@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Link: https://patch.msgid.link/20260807224315.234152-2-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx_dqo.c