BugLink: https://bugs.launchpad.net/bugs/1789436
The net/pmtu.sh self test is hanging due to a dangling reference
to a veth device which prevents module unload. We haven't yet
determined the root cause, but given that the problem being fixed
was introduced in 4.1 it should be safe to revert the change as a
temporary measure. So temporarily revert commit
d6990976af7c5d8f55903bfb4289b6fb030bf754 until we have a better
fix.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
goto tx_err_dst_release;
}
+ skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev)));
+ skb_dst_set(skb, dst);
+ skb->dev = skb_dst(skb)->dev;
+
mtu = dst_mtu(dst);
if (skb->len > mtu) {
skb_dst_update_pmtu(skb, mtu);
htonl(mtu));
}
- err = -EMSGSIZE;
- goto tx_err_dst_release;
+ return -EMSGSIZE;
}
- skb_scrub_packet(skb, !net_eq(t->net, dev_net(dev)));
- skb_dst_set(skb, dst);
- skb->dev = skb_dst(skb)->dev;
-
err = dst_output(t->net, skb->sk, skb);
if (net_xmit_eval(err) == 0)
err = pkt_len;