summaryrefslogtreecommitdiff
path: root/net/core/gro.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-01 22:37:37 +0300
committerPaolo Abeni <pabeni@redhat.com>2024-03-05 15:30:11 +0300
commit93e16ea025d234d0ed01d9dc9c819257a2159bb6 (patch)
tree9e8191fedfa92d780b9b9dc90008576ebaf1483a /net/core/gro.c
parent9452c8b459f4641156a09c2212a835a6df2a137e (diff)
downloadlinux-93e16ea025d234d0ed01d9dc9c819257a2159bb6.tar.xz
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/core/gro.c')
-rw-r--r--net/core/gro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/gro.c b/net/core/gro.c
index 0759277dc14e..927ccf681490 100644
--- a/net/core/gro.c
+++ b/net/core/gro.c
@@ -700,7 +700,7 @@ static struct sk_buff *napi_frags_skb(struct napi_struct *napi)
skb_reset_mac_header(skb);
skb_gro_reset_offset(skb, hlen);
- if (unlikely(skb_gro_header_hard(skb, hlen))) {
+ if (unlikely(!skb_gro_may_pull(skb, hlen))) {
eth = skb_gro_header_slow(skb, hlen, 0);
if (unlikely(!eth)) {
net_warn_ratelimited("%s: dropping impossible skb from %s\n",