diff options
author | Eric Dumazet <edumazet@google.com> | 2024-03-01 20:37:37 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-03-05 13:30:11 +0100 |
commit | 93e16ea025d234d0ed01d9dc9c819257a2159bb6 (patch) | |
tree | 9e8191fedfa92d780b9b9dc90008576ebaf1483a /net/ipv4/tcp_offload.c | |
parent | Merge branch 'mt7530-dsa-subdriver-improvements-act-iii' (diff) | |
download | linux-93e16ea025d234d0ed01d9dc9c819257a2159bb6.tar.xz linux-93e16ea025d234d0ed01d9dc9c819257a2159bb6.zip |
net: gro: rename skb_gro_header_hard()
skb_gro_header_hard() is renamed to skb_gro_may_pull() to match
the convention used by common helpers like pskb_may_pull().
This means the condition is inverted:
if (skb_gro_header_hard(skb, hlen))
slow_path();
becomes:
if (!skb_gro_may_pull(skb, hlen))
slow_path();
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ipv4/tcp_offload.c')
-rw-r--r-- | net/ipv4/tcp_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index 8311c38267b5..875456efc92d 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c @@ -204,7 +204,7 @@ struct sk_buff *tcp_gro_receive(struct list_head *head, struct sk_buff *skb) goto out; hlen = off + thlen; - if (skb_gro_header_hard(skb, hlen)) { + if (!skb_gro_may_pull(skb, hlen)) { th = skb_gro_header_slow(skb, hlen, off); if (unlikely(!th)) goto out; |