X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fipv4%2Fip_forward.c;h=bd1c5baf69bef5c3511a787284cf8a7b4b1b9ef0;hb=1be75cdee36300afb5bee3300cbba7e419878bc0;hp=98d7e53d2afde4e68585631e0f20b193ee2ecd3c;hpb=5a526a33b6b3d7b4c703adcbb6e30212cd10482e;p=firefly-linux-kernel-4.4.55.git diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 98d7e53d2afd..bd1c5baf69be 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -42,12 +42,12 @@ static bool ip_may_fragment(const struct sk_buff *skb) { return unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0) || - !skb->local_df; + skb->local_df; } static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) { - if (skb->len <= mtu || skb->local_df) + if (skb->len <= mtu) return false; if (skb_is_gso(skb) && skb_gso_network_seglen(skb) <= mtu)