]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/ip_output.c
netfilter: fix netns dependencies with conntrack templates
[karo-tx-linux.git] / net / ipv4 / ip_output.c
index 55f3c2e943572fd907fa26ed7eea2e80b6ff7e12..6bf89a6312bc1c71da41ad0a1ebdbf819504367d 100644 (file)
@@ -549,10 +549,6 @@ int ip_do_fragment(struct sock *sk, struct sk_buff *skb,
 
        hlen = iph->ihl * 4;
        mtu = mtu - hlen;       /* Size of data space */
-#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
-       if (skb->nf_bridge)
-               mtu -= nf_bridge_mtu_reduction(skb);
-#endif
        IPCB(skb)->flags |= IPSKB_FRAG_COMPLETE;
 
        /* When frag_list is given, use it. First, check its validity: