Commit 11f920d2 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller

net: Use helper function ip_is_fragment()

Use helper function ip_is_fragment() to check ip fragment.
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47260ba9
...@@ -4853,7 +4853,7 @@ static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate) ...@@ -4853,7 +4853,7 @@ static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate)
if (err < 0) if (err < 0)
goto out; goto out;
if (ip_hdr(skb)->frag_off & htons(IP_OFFSET | IP_MF)) if (ip_is_fragment(ip_hdr(skb)))
fragment = true; fragment = true;
off = ip_hdrlen(skb); off = ip_hdrlen(skb);
......
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