diff options
author | Felix Fietkau <nbd@nbd.name> | 2024-05-02 10:44:42 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-05-06 11:54:03 +0200 |
commit | 8928756d53d5b99dcd18073dc7738b8ebdbe7d96 (patch) | |
tree | 187ab5374db7308f7f1bc0db91091377c5f1c9f1 /net/ipv4/udp_offload.c | |
parent | net: microchip: lan743x: Reduce PTP timeout on HW failure (diff) | |
download | linux-8928756d53d5b99dcd18073dc7738b8ebdbe7d96.tar.xz linux-8928756d53d5b99dcd18073dc7738b8ebdbe7d96.zip |
net: move skb_gro_receive_list from udp to core
This helper function will be used for TCP fraglist GRO support
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | net/ipv4/udp_offload.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index 8721fe5beca2..f6d3c442e260 100644 --- a/net/ipv4/udp_offload.c +++ b/net/ipv4/udp_offload.c @@ -433,33 +433,6 @@ out: return segs; } -static int skb_gro_receive_list(struct sk_buff *p, struct sk_buff *skb) -{ - if (unlikely(p->len + skb->len >= 65536)) - return -E2BIG; - - if (NAPI_GRO_CB(p)->last == p) - skb_shinfo(p)->frag_list = skb; - else - NAPI_GRO_CB(p)->last->next = skb; - - skb_pull(skb, skb_gro_offset(skb)); - - NAPI_GRO_CB(p)->last = skb; - NAPI_GRO_CB(p)->count++; - p->data_len += skb->len; - - /* sk ownership - if any - completely transferred to the aggregated packet */ - skb->destructor = NULL; - skb->sk = NULL; - p->truesize += skb->truesize; - p->len += skb->len; - - NAPI_GRO_CB(skb)->same_flow = 1; - - return 0; -} - #define UDP_GRO_CNT_MAX 64 static struct sk_buff *udp_gro_receive_segment(struct list_head *head, |