projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585bd81
)
net: core: Use skb_is_gso() in skb_checksum_help()
author
Yi Li
<yili@winhong.com>
Tue, 27 Oct 2020 05:59:04 +0000
(13:59 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 28 Oct 2020 00:36:11 +0000
(17:36 -0700)
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>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 9499a414d67e1021f976b31579ecbad9920044c0..55f66e1080590e335536ef0db2bc591d9933e0f3 100644
(file)
--- 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;
}