Commit 8ea853fd0b721f14eacff1a5b364fe3e60d2dd82
Committed by
David S. Miller
1 parent
ed3770a9cd
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
net/core: fix comment in skb_try_coalesce
It should be the skb which is not cloned Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
net/core/skbuff.c
... | ... | @@ -3502,7 +3502,9 @@ |
3502 | 3502 | if (!skb_cloned(from)) |
3503 | 3503 | skb_shinfo(from)->nr_frags = 0; |
3504 | 3504 | |
3505 | - /* if the skb is cloned this does nothing since we set nr_frags to 0 */ | |
3505 | + /* if the skb is not cloned this does nothing | |
3506 | + * since we set nr_frags to 0. | |
3507 | + */ | |
3506 | 3508 | for (i = 0; i < skb_shinfo(from)->nr_frags; i++) |
3507 | 3509 | skb_frag_ref(from, i); |
3508 | 3510 |