Commit 3aefd7d6 authored by Yi Li's avatar Yi Li Committed by Jakub Kicinski

net: core: Use skb_is_gso() in skb_checksum_help()

No functional changes, just minor refactoring.
Signed-off-by: default avatarYi Li <yili@winhong.com>
Link: https://lore.kernel.org/r/20201027055904.2683444-1-yili@winhong.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 585bd812
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment