diff options
author | Paolo Abeni <pabeni@redhat.com> | 2022-02-04 12:28:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-05 16:13:52 +0100 |
commit | 7881453e4adf497cf9109c84fa21eedda9ac6164 (patch) | |
tree | b3d6dd7816e624cd7554ebef1608612e4dbf0e80 /net/core/gro.c | |
parent | net: dsa: qca8k: check correct variable in qca8k_phy_eth_command() (diff) | |
download | linux-7881453e4adf497cf9109c84fa21eedda9ac6164.tar.xz linux-7881453e4adf497cf9109c84fa21eedda9ac6164.zip |
net: gro: avoid re-computing truesize twice on recycle
After commit 5e10da5385d2 ("skbuff: allow 'slow_gro' for skb
carring sock reference") and commit af352460b465 ("net: fix GRO
skb truesize update") the truesize of the skb with stolen head is
properly updated by the GRO engine, we don't need anymore resetting
it at recycle time.
v1 -> v2:
- clarify the commit message (Alexander)
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/core/gro.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/gro.c b/net/core/gro.c index a11b286d1495..d43d42215bdb 100644 --- a/net/core/gro.c +++ b/net/core/gro.c @@ -634,7 +634,6 @@ static void napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb) skb->encapsulation = 0; skb_shinfo(skb)->gso_type = 0; - skb->truesize = SKB_TRUESIZE(skb_end_offset(skb)); if (unlikely(skb->slow_gro)) { skb_orphan(skb); skb_ext_reset(skb); |