summaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp_offload.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-08 20:21:51 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-08 20:21:51 +0200
commited63ba15d7830c30077dbb33c94242be01e45a18 (patch)
tree8165313975d57f025e640d33768dbc31493ce5b7 /net/ipv6/udp_offload.c
parentscripts/spdxcheck: Add count of missing files to stats output (diff)
parentLinux 6.9-rc7 (diff)
downloadlinux-ed63ba15d7830c30077dbb33c94242be01e45a18.tar.xz
linux-ed63ba15d7830c30077dbb33c94242be01e45a18.zip
Merge 6.9-rc7 into char-misc-testing
We need the char-misc changes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6/udp_offload.c')
-rw-r--r--net/ipv6/udp_offload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index bbd347de00b4..b41152dd4246 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -164,7 +164,8 @@ flush:
INDIRECT_CALLABLE_SCOPE int udp6_gro_complete(struct sk_buff *skb, int nhoff)
{
- const struct ipv6hdr *ipv6h = ipv6_hdr(skb);
+ const u16 offset = NAPI_GRO_CB(skb)->network_offsets[skb->encapsulation];
+ const struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + offset);
struct udphdr *uh = (struct udphdr *)(skb->data + nhoff);
/* do fraglist only if there is no outer UDP encap (or we already processed it) */