diff options
author | Yi Li <yili@winhong.com> | 2020-10-27 08:59:04 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-28 03:36:11 +0300 |
commit | 3aefd7d6ea05a1a573a26c20e474d36c218016cd (patch) | |
tree | 05b6c56ec24e0a3976aaefca07e41adbb2f1ee85 /net | |
parent | 585bd812de4eb0e412e504da81d2554fb03ae652 (diff) | |
download | linux-3aefd7d6ea05a1a573a26c20e474d36c218016cd.tar.xz |
net: core: Use skb_is_gso() in skb_checksum_help()
No functional changes, just minor refactoring.
Signed-off-by: Yi Li <yili@winhong.com>
Link: https://lore.kernel.org/r/20201027055904.2683444-1-yili@winhong.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 9499a414d67e..55f66e108059 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3205,7 +3205,7 @@ int skb_checksum_help(struct sk_buff *skb) if (skb->ip_summed == CHECKSUM_COMPLETE) goto out_set_summed; - if (unlikely(skb_shinfo(skb)->gso_size)) { + if (unlikely(skb_is_gso(skb))) { skb_warn_bad_offload(skb); return -EINVAL; } |