diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-08-06 14:57:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-09 00:24:53 +0300 |
commit | 11f920d2aa9d4c2c2d53ccd79f4b5512f2169623 (patch) | |
tree | 753dc25be135da939b8b7750a5be66b4950a5703 /net/core/skbuff.c | |
parent | 47260ba937822cd1a57ee8b520b8789bdda5964e (diff) | |
download | linux-11f920d2aa9d4c2c2d53ccd79f4b5512f2169623.tar.xz |
net: Use helper function ip_is_fragment()
Use helper function ip_is_fragment() to check ip fragment.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 2828f6d5ba89..7e2e502ef519 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -4853,7 +4853,7 @@ static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate) if (err < 0) goto out; - if (ip_hdr(skb)->frag_off & htons(IP_OFFSET | IP_MF)) + if (ip_is_fragment(ip_hdr(skb))) fragment = true; off = ip_hdrlen(skb); |